Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
What is the order of page events? I have a weborm with three textboxes and when the page finishes loading it displays the values I sent to them via javascript on the "body load event". However, I can't seem to find any event that has the textboxes containing these values. I'm need the values to send parameters to sql. Unless there's some way to send the java values the the routine in codebehind page. I know about attributes.add but I want the query to fire when the page is opened.
Posted
I mean at some point textbox1.text="whatevervalue" but If I check what textbox1.text equals on the load, prerender, init events it returns "" instead of "whatevervalue"
Posted

In ASP.NET, Viewstate will keep value of controls and Page_Init/Load event will fire before any others, these are the elements something quite confuse to programmers.

 

If I am not mistaken, you need to check your textbox value in Page_Init/Load events before your actual event, your value may vary between those events...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...