Javascript update before page loads in ASP.NET

Posted by user204588 on Stack Overflow See other posts from Stack Overflow or by user204588
Published on 2010-05-29T16:18:41Z Indexed on 2010/05/29 16:22 UTC
Read the original article Hit count: 180

Filed under:
|

Hello,

I'm trying to update values from a xml file into textboxes. I have this javascript being called in the Page_Load event

this.Page.ClientScript.RegisterStartupScript(this.GetType(), "Script", sb.ToString(), true);

I click the continue button which does a post back but the values are not updated until I refresh the page again which makes me think the js isn't being run until after the page is returned. I'm wondering how to have the values updated when the page is refreshed after the button postback.

thanks

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript