Click here to Skip to main content
15,917,321 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Cart Pin
Brij22-Jul-09 19:12
mentorBrij22-Jul-09 19:12 
QuestionOpen Masterpage from Frames Pin
yesu prakash22-Jul-09 18:50
yesu prakash22-Jul-09 18:50 
AnswerRe: Open Masterpage from Frames Pin
Brij22-Jul-09 19:45
mentorBrij22-Jul-09 19:45 
GeneralRe: Open Masterpage from Frames Pin
yesu prakash22-Jul-09 23:06
yesu prakash22-Jul-09 23:06 
QuestionSearch Engine Optimization Pin
Member 426027022-Jul-09 18:02
Member 426027022-Jul-09 18:02 
AnswerRe: Search Engine Optimization Pin
N a v a n e e t h22-Jul-09 18:37
N a v a n e e t h22-Jul-09 18:37 
GeneralRe: Search Engine Optimization Pin
Member 426027022-Jul-09 20:46
Member 426027022-Jul-09 20:46 
AnswerRe: Search Engine Optimization Pin
jhnsmith97828-Jan-10 0:46
jhnsmith97828-Jan-10 0:46 
QuestionAccessing code behind method ( of C#) from a javascripts method. Pin
Shahdat Hosain22-Jul-09 17:21
Shahdat Hosain22-Jul-09 17:21 
AnswerRe: Accessing code behind method ( of C#) from a javascripts method. Pin
N a v a n e e t h22-Jul-09 17:23
N a v a n e e t h22-Jul-09 17:23 
AnswerRe: Accessing code behind method ( of C#) from a javascripts method. Pin
Christian Graus22-Jul-09 17:24
protectorChristian Graus22-Jul-09 17:24 
QuestionNested Gridview with UpdatePanel Pin
C#Coudou22-Jul-09 15:18
C#Coudou22-Jul-09 15:18 
QuestionViewstateEnabled=False Pin
Elena200622-Jul-09 14:39
Elena200622-Jul-09 14:39 
AnswerRe: ViewstateEnabled=False Pin
Christian Graus22-Jul-09 15:13
protectorChristian Graus22-Jul-09 15:13 
AnswerRe: ViewstateEnabled=False Pin
N a v a n e e t h22-Jul-09 15:38
N a v a n e e t h22-Jul-09 15:38 
AnswerRe: ViewstateEnabled=False Pin
Abhijit Jana22-Jul-09 20:06
professionalAbhijit Jana22-Jul-09 20:06 
For the answer, first of all you need to know what actually happened during ASP.NET Page life cycle and ViewState.
In the ASP.Net page life cycle, two events related with View State.
1. Load View State : Where view state data is loading for the control and which happened before Page_Load.

2. Save View State : Where control data store in a hidden field before the Page_Render.

Now, If you disable the ViewState for the control it should store the view state data but, you are saying in Textbox, after you disabled the view state , control holds the data after postback,
Here is the Trick,
There is another event fired during Page Life Cycle, which is, Load PostBack Data Smile | :)
ASP.NET controls which implement IPostBackEventHandler will load its value from the appropriate postback data.
This value is not read from view state but from Postback From and this is true for those control which implements the IPostBackEventHandler
and TextBox is one such control Wink

Hope this clears your doubts and This will helps you.

cheers,
Abhijit
CodeProject MVP
Web Site:abhijitjana.net
When you ask a question, remember to click "Good Answer", If the Answer is helps you.

QuestionASP session in ASP.NET page Pin
Elena200622-Jul-09 14:38
Elena200622-Jul-09 14:38 
AnswerRe: ASP session in ASP.NET page Pin
Christian Graus22-Jul-09 15:12
protectorChristian Graus22-Jul-09 15:12 
AnswerRe: ASP session in ASP.NET page Pin
N a v a n e e t h22-Jul-09 15:40
N a v a n e e t h22-Jul-09 15:40 
AnswerSTOP FLOODING THE FORUM.... Pin
leckey22-Jul-09 16:49
leckey22-Jul-09 16:49 
QuestionDifferent server file access Pin
Elena200622-Jul-09 14:36
Elena200622-Jul-09 14:36 
AnswerRe: Different server file access Pin
Christian Graus22-Jul-09 15:14
protectorChristian Graus22-Jul-09 15:14 
QuestionHow to secure web.config file Pin
Elena200622-Jul-09 14:17
Elena200622-Jul-09 14:17 
AnswerRe: How to secure web.config file Pin
Christian Graus22-Jul-09 15:14
protectorChristian Graus22-Jul-09 15:14 
JokeRe: How to secure web.config file Pin
N a v a n e e t h22-Jul-09 15:42
N a v a n e e t h22-Jul-09 15:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.