Hi all, I am using asp:UpdatePanel and asp:ScriptManager pair to prevent my page postback between in-page changes. I have several pages and these two work perfect on all pages but one page. On this page at the top there are several buttons and at the top there is a form. But when I click one of the buttons to send the page a parameter in the URL bar the page postbacks. No other pages do that. The only code related to the buttons is the following one. Why do you think that might fail to convert postback to callback please?
Regards:
My code:
1 protected void ButtonClick(object sender, EventArgs e)
2 {
3 Button btnA = (Button)sender;
4 string btnName = btnA.ID;
5 btnName = btnName.Replace("btn", "");
6 string currentPath = Request.Url.AbsoluteUri;
7 string[] pathsVars = currentPath.Split('?');
8 currentPath = pathsVars[0].ToString();
9 Response.Redirect(currentPath + "?title=" + btnName);
10 }