Click here to Skip to main content
15,902,299 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
GeneralRe: How to secure web.config file Pin
Christian Graus22-Jul-09 16:19
protectorChristian Graus22-Jul-09 16:19 
QuestionWeb.config file modified Pin
Elena200622-Jul-09 14:14
Elena200622-Jul-09 14:14 
AnswerRe: Web.config file modified Pin
Christian Graus22-Jul-09 15:14
protectorChristian Graus22-Jul-09 15:14 
AnswerRe: Web.config file modified Pin
N a v a n e e t h22-Jul-09 15:44
N a v a n e e t h22-Jul-09 15:44 
AnswerRe: Web.config file modified Pin
koolprasad200322-Jul-09 21:17
professionalkoolprasad200322-Jul-09 21:17 
QuestionTextBox event handling inside a datalist on a WebForm Pin
MacIntyre22-Jul-09 13:17
MacIntyre22-Jul-09 13:17 
AnswerRe: TextBox event handling inside a datalist on a WebForm Pin
Herman<T>.Instance22-Jul-09 23:12
Herman<T>.Instance22-Jul-09 23:12 
GeneralRe: TextBox event handling inside a datalist on a WebForm Pin
MacIntyre23-Jul-09 5:38
MacIntyre23-Jul-09 5:38 

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.