I know you can do this with the following
ClientScript.RegisterStartupScript
But is there a cleaner way to do this. I heard this is a messy way of calling jscript functions and i should never do it. Is this true?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ClientScript.RegisterStartupScriptis the clean way of doing this.I think that outputting javascript directly to the page (
Response.Write) or onto aLiteralcontrol is messier.