Blog Archives

Howto: Set page focus to message after Ajax update

There are so many good things about AJAX but we need to tweak it some times to make it even user experience. Let me explain my situation first.  I have a datagrid that has a edit button tied to each

Posted in Microsoft Technology Tagged with: ,

why does Modalpopup close on postback?

ads: Watch Indian TV Serials Online I thought modalpopup control is very easy to use but it’s not.  It took me whole day to figure it out why ModalPopup Extender closes down during page postback. You should have to keep

Posted in Microsoft Technology Tagged with: ,

Response.Redirect() throws an error when called inside Update Panel

When I tried to call Response.Redirect() inside a UpdatePanel, it was throwing me an AJAX error. Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls

Posted in Microsoft Technology Tagged with: ,

Run JavaScript when Ajax modal popup opens

Let’s say if you want to run some JavaScript method right after Ajax modal popup opens, we probably think injecting JavaScript method into page like this. if (!Page.IsStartupScriptRegistered(“PickerInit”)) Page.RegisterStartupScript(“pickerInit”,javascriptString); The JavaScript we inject using above method will be called on

Posted in Client Side Scripting, Microsoft Technology Tagged with: ,

Ads