borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Using an old DLL)Next Topic (how to iterate in all the cell of calender control of asp.net?) New Topic New Poll Post Reply
AndreaVB Forum : ASP.Net : how to make my web page persistent in asp.net?
Poster Message
tri_inn
Level: Regular User
Registered: 26-08-2002
Posts: 395

icon how to make my web page persistent in asp.net?

i develop a web page in the way that at runtime i generate a instance of calender
control and add that control to the page and i also attach a event called DayRender dynamically
to the calender control and  in the DayRender event i add checkbox to the all the cell of calender control
at runtime when i checked the check box inside the cell of calender control and press button then after
postback the all checkboxes are going to be uncheck.i could not understand the problem that why the
webpage losing its state.that is why please help me some one that how could write the code in such a way
that after postback the state of the page will be persistent as a result after postback i can read the
value of control.please help me anyone with concept and sample code.

26-04-2005 at 05:43 AM
View Profile Send Email to User Show All Posts | Quote Reply
zimcoder
Level: VB Lord


Registered: 27-10-2003
Posts: 225
icon Re: how to make my web page persistent in asp.net?

You can maintain state across multiple request by makin a few additions to your page and control declarations

for page level add this attribute to html page declaration
<%@ Page EnableViewState="true" %>

For control level viewstate eg checkbox add
<asp:CheckBox id="chkYesNo" runat="server" EnableViewState="true" />


for further information on View State
State Management in ASP.NET

____________________________
BrainBench ADO.NET and ASP.NET Certified Developer

04-05-2005 at 09:01 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ASP.Net : how to make my web page persistent in asp.net?
Previous Topic (Using an old DLL)Next Topic (how to iterate in all the cell of calender control of asp.net?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder