This post describes how detect for ASP.Net page postback from Javascript. I needed to know if it was the first launch of the page or a postback from Javascript. I did this by adding a hidden field to the page: … Continue reading →
This post describes how to prevent submitting an ASP.Net form twice. I stumbled across a rather neat and handy way to achieve this by the following: public void PreventMultipleClicks(Button button, Page page) { button.Attributes.Add(“onclick”, “if(Page_ClientValidate()){this.disabled=true;this.value=’Processing Request…’;” + page.ClientScript.GetPostBackEventReference(button, String.Empty).ToString() + … Continue reading →
I had an ASP.Net form whereby when a dropdown list entry was changed, it would cause a post back and different form elements would show or hide depending upon the value. What I noticed is that when a user had … Continue reading →