maintaining the status

 hi all,

 im a novice to dis asp.net,so pls bear with me... i have created two .aspx files (first.aspx & second.aspx) .

with the help of link button ,im navigatin frm first.aspx to second.aspx.Again when i click 'back' button in the second.aspx it is coming to first.aspx but it s not displaying the 'gridview '.i want to resume the status as it was before when i click 'back' button in the second.aspx...

pls help me to fix dis problem ASAP....

 

regards

Ragul

0
ragul
5/4/2009 11:19:53 AM
asp.net.state-management 8807 articles. 0 followers. Follow

2 Replies
768 Views

Similar Articles

[PageSpeed] 13

 Use both page !IsPostback like this . 

 protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
            // write code here for load data from database or set session or check session
        }
        
    }

 
hopefully it will solve ur issue

thnx


Md. Parves Kawser


Please remember to click,
remember to click

"Mark As Answer"

on the post that helps you.
0
rezakawser
5/4/2009 12:31:01 PM

ragul:
with the help of link button ,im navigatin frm first.aspx to second.aspx.Again when i click 'back' button in the second.aspx it is coming to first.aspx but it s not displaying the 'gridview '.i want to resume the status as it was before when i click 'back' button in the second.aspx...

Can you show us page_Load code of first.aspx



My Blog


"Don't be afraid to be wrong; otherwise you'll never be right."
0
budugu
5/4/2009 1:37:26 PM
Reply:

Similar Artilces:

State Management; .Net Profiler
Here is the situation with the customized profiler. I got a profiler class called SSOProfileProvider inheriting from ProfileProvider. I've implemented the Initilization, GetPropertyValues and SetPropertyValues. The Get... and Set.. are making a call to the database to store profile into the database. This class has been stored in the separate DLL called "Security.DLL" and there is a web site that is using this dll. The web.Config for this website is as follow:<profile enabled="true" inherits="AppProfileBase" defaultProvider="SSO" automat...

Proposal to add a status-firefox & status-b2g18 flag state of question mark status
Hi Everyone, I'd like to propose we add a new state to the status flags that has the sta= tus of "?." This flag would be set if someone wants to know what status val= ue of a status flag is, but doesn't know what the status is. Here's an exam= ple: I find a bug a Firefox 22 with X feature. I know X feature is enabled in Fi= refox 21 and want to know if Firefox 21 is affected, but haven't tested mys= elf to determine if Firefox 21 is affected. In this case, I set the status-= firefox21 flag to ?. The goal of introducing this extra state for the status fl...

Microsoft Chart control for .NET Framework about state management and serialization problem, it works OK with one XML file but fails with another XML file
I use Microsoft Chart control for .NET Framework , you can see details at http://blogs.msdn.com/alexgor/archive/2008/10/27/microsoft-chart-control-for-net-framework-released.aspx The Chart1 is load data from a xml and save to ViewStateData, so even if after I click Reload button, the chart1 still display OK! I'm very strange that the chart1 works well after click Reload button if it's loaded from Chart1.Serializer.Load(HttpContext.Current.Server.MapPath("~/Template/1.xml"));but chart1 don't display fter click Reload button if it's loaded from Chart1.Serializer.Loa...

Easy explanation on Stateless management and State management
Hi,  Till now, me still confuse to understand Stateless management and State management. Can anybody explain to me in an easy understand with example? stateless - you cannot persist any values on frequent page request and response. state mgmt - you can retain values on subsequent calls. have a look at this http://articles.techrepublic.com.com/5100-10878_11-1049585.html"Never underestimate the power of stupid people in large groups" hi, The World Wide Web, on the other hand, is intrinsically stateless because each request for a new Web page is processed without any kn...

What is managed and un managed code in .net 2.0
Hi all what is the differnce between Managed and un Managed code in .net 2.0 can any body suggest me the article regarding use of Interfaces in .net 2.0   Best regards Rameezwaheedlife is name of learning!Mark as an answer if it helps Check out this link   http://www.eggheadcafe.com/community/aspnet/2/10034664/managed-vs-unmanaged-code.aspx  Thanks,santosh_maharajaPlease mark as answer if you got expected solution.  Hi,    The code can be executed by .net CLR is Managed Code, code which can't be are unmanaged code Refer...Managed / UnManage...

Managing Users over .NET Management Website on different PCs
Hi,we are using Wed Developer Express 2005 on one PC to develop our website. The user and role management we are doing over the .NET website.No we hae installed Web Developer Express 2008 on another PC and also the other user should be able to manage the users and roles. But we always get a connection error to the Rsa provider.Can you please give me an idea what to do? Greetz, Chris  You dont tell us how you are running the site is it on a local iis or a hosted server and the same with the sql database? I take it that each machine has the website loaded in vwd and then you are u...

superreview requested: [Bug 244692] Tabs bar, status bar, Download Manager, Extensions Manager and Themes Manager respond to all kinds of double-click (left, middle, right mouse buttons) : [Attachmen
Ian Neal <bugzilla@arlen.demon.co.uk> has asked Ben Goodger <bugs@bengoodger.com> for superreview: Bug 244692: Tabs bar, status bar, Download Manager, Extensions Manager and Themes Manager respond to all kinds of double-click (left, middle, right mouse buttons) http://bugzilla.mozilla.org/show_bug.cgi?id=244692 Attachment 150349: Simplified fix for the tab bar. http://bugzilla.mozilla.org/attachment.cgi?id=150349&action=edit ------- Additional Comments from Ian Neal <bugzilla@arlen.demon.co.uk> Requesting sr for firefox only patch ...

superreview cancelled: [Bug 244692] Tabs bar, status bar, Download Manager, Extensions Manager and Themes Manager respond to all kinds of double-click (left, middle, right mouse buttons) : [Attachmen
Steffen Wilberg <steffen.wilberg@web.de> has cancelled Ian Neal <bugzilla@arlen.demon.co.uk>'s request for superreview: Bug 244692: Tabs bar, status bar, Download Manager, Extensions Manager and Themes Manager respond to all kinds of double-click (left, middle, right mouse buttons) http://bugzilla.mozilla.org/show_bug.cgi?id=244692 Attachment 150349: Simplified fix for the tab bar. http://bugzilla.mozilla.org/attachment.cgi?id=150349&action=edit ------- Additional Comments from Steffen Wilberg <steffen.wilberg@web.de> no sr needed in browser or toolkit ...

state is not maintaining
HiI am createting repeater with check box in item template and binding the data in server side in webuser control.after postback when i check the repeater.items.count is zero. after post back i bind the data and tried  repeater.items.count is three(total number of records is three).but when i checked  wheather check box is checked ot not ,all check boxes are unchecked.But actually i selected two check boxes in the repeater.If anybody have clue please help me.ThanksRPRP Sounds like you're rebinding the repeater on each postback.  You should be binding the repeater o...

maintaining state
I have a usercontrol which houses hyperlinks to other pages. For example, I have a textbox on page1 and when I click on the hyperlink to page2, I want to maintain the state on the textbox on page1. I cannot use viewstate because I'm not posting to the same page. I tried using session state on the text_changed event but that won't work because if I click on the hyperlink to page2 the event never gets fired. I'm sure there is a simple solution, maybe I'm not understanding state management. Please help I'm sure there are a hundred ways of doing this... Maybe try this: page1 - when h...

how to maintain state
i developed a web application .i want to maintain state for that application i want to do by using sessions.if user enters from login page based o his he showld be entered into other pages.  Hi, You can use Application object for storing session information. Can u clearly mention what u want to do? It will be helpful to answer correctly for your question? Regards, R.Raghu    ...

How to maintain the state
I have the following scenario: Default.aspx ---start page (it has got 2 drop down list) Funtionality: By default Dropdown 2 is disabled. When i Select Drop Down 1, drop down 2 will be enabled. As soon as i select any value from Drop Down 2, it will go to next page. Problem: When i click Browser Back button, it is going to Default.aspx page but both the values i selected will be retained-----which is causing me a problem... IS there any way i can manage so that when i click Back button, Default.aspx should again show Drop Down List 1 as Select Value and Drop Down List 2 as disabled (...

how to maintain state
Hi, I am using webdatawindow which retrieves data in grid format , I want to do column sort without re-retrieving data on the click event When I try this, it throws no data, I have set enableviewstate true What could be the problem? Regards Ramesh Set AutoSaveDataCacheOnRetrieve and AutoRestoreDataCache; however, keep in mind that the data is made persistent on the server within a session object, so it could become stale or be a scalability bottleneck if there are large datasets. On 26 May 2005 09:32:13 -0700, "Ramesh" <rameshramamoorthy@ewaksoft.com> wrote...

State Management
I thinking of using the portal to replace an existing application created using webclasses which was created in vb 6 but one of the issues the current application has is state managment. After reading the current documentation on state management for .NET I think that having state stored on the sql server would be best for our organization but I would like to know if anyone has used the portal for a large number of user. Our intended user community is growinig from hundreds to the thousands who will be using the given application continously throughout the day and we are worried about ...

Web resources about - maintaining the status - asp.net.state-management

All sizes - Exercise Plays Vital Role Maintaining Brain Health - Flickr - Photo Sharing!
Flickr is almost certainly the best online photo management and sharing application in the world. Show off your favorite photos and videos to ...

Maintaining Public Safety while Safeguarding Constitutional Rights - YouTube
In today’s video, Attorney General Eric Holder announced that the Bureau of Justice Assistance and the Office of Community Oriented Policing ...

Maintaining status quo enriches the few
Change is necessary. It can't be stopped, except at massive cost to future development and opportunity. Change also represents a problem for ...

IT Technical Account Manager - Managed Services - Maintaining Existing Clients
Computerworld Australia is the leading source of technology news, analysis and tools for IT decision makers, managers and professionals.

Islamic State Backgrounder: How the Caliphate is maintaining its grip - The Courier-Mail Search Search ...
THE Caliph was wounded. His jihadists routed. But if you think Islamic State is on the back foot, you’ve not been paying attention.

Islamic State Backgrounder: How the Caliphate is maintaining its grip - DailyTelegraph Search Search
THE Caliph was wounded. His jihadists routed. But if you think Islamic State is on the back foot, you’ve not been paying attention.

Islamic State Backgrounder: How the Caliphate is maintaining its grip - HeraldSun Search Search
THE Caliph was wounded. His jihadists routed. But if you think Islamic State is on the back foot, you’ve not been paying attention.

Islamic State Backgrounder: How the Caliphate is maintaining its grip
THE Caliph was wounded. His jihadists routed. But if you think Islamic State is on the back foot, you’ve not been paying attention.

Maintaining your privacy on Facebook
While Facebook offers a great way to stay in touch with family and friends, it can quickly turn into a privacy nightmare if you do not know your ...

Infrastructure key to Perth maintaining world-best liveability rating
Core infrastructure must keep pace with Perth's steady growth if WA's capital is to remain on the sought-after list of world's most liveable ...

Resources last updated: 12/5/2015 8:08:33 PM