I have the following code on my Page_Load method:
protected void Page_Load(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "$('#sd').slideToggle(200);", true);
}
This is a jQuery call to toggle the visibility of a div with the id #sd. This seems to work only when this.Page.IsPostBack == true?
I have a simple form on that page that works as expected. The form contains an input field that gets processed and returns the result. That works.
However, now i would like to add an option to access the page with the (input) parameter in GET, so processsing could be done on first visit.
What is wrong and why is it not working on first visit?
` tag so it doesn't clog the UI loading.
– Stan Oct 27 '13 at 15:17