Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Sep 08, 2010 01:15 PM by blbirajdar02
Oct 13, 2008 06:32 AM|LINK
document.getElementByID is displaying old value.
Things work fine with full postback but are creating above issue with Partial Postback.
Thanks, in Advance....
Oct 13, 2008 09:53 AM|LINK
Even it is partial postback the value will be rendered with the new one if you are rendering the control back...
Oct 13, 2008 09:54 AM|LINK
What do you mean by "Partial postback" ? Is it an update panel? Do you call service web methode?
Is your new value displayed on screen after the partial postback?
Oct 13, 2008 10:01 AM|LINK
Yes my Textbox is within an Updatepanel. And I have changed the value of Textbox behind a Button press event (Button is also within the Updatepanel). Lets us say the initial Text of Textbox (ID=txtTest) was "Initial Text" and I did the following behing the
protected void btnTest_Click(object sender, EventArgs e)
txtTest.Text = "New Text";
Oct 13, 2008 10:03 AM|LINK
//Even it is partial postback the value will be rendered with the new one if you are rendering the control back... //
I am using AJAX toolkit and not doing anything by myself.
Oct 13, 2008 10:06 AM|LINK
Oct 13, 2008 10:09 AM|LINK
I don't think so :S as control is accessible with same ID in "Source" and also ID get changed within some Control or in case of MasterPages. Am I missing something?
Oct 13, 2008 10:12 AM|LINK
Oct 13, 2008 10:16 AM|LINK
PS: If I don't use UpdatePanel then above alert displays correct value. But with Update panel it don't
Oct 13, 2008 10:21 AM|LINK