ritao
June 5th, 2007, 08:36 AM
Hi,
I'm trying to redirect to a page during runtime within a button click event. I am however getting a javascript error as shown below:
<input type="submit" name="ctl00$MainContent$btnGetRequest" value="Get Request" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContent$btnGetRequest", "", true, "", "", false, false))" id="ctl00_MainContent_btnGetRequest" style="z-index: 101; left: 408px; position: absolute;
top: 24px" />
Response.Redirect("~/GoToRequest.aspx")
After displaying the js error message, it simply goes to the default page and stops there. I have checked the pages view source and there is a reference there to "WebResource.axd" so, I am really at a loss as to why it's behaving like that.
Has anyone come across this behaviour before or know what the problem might be?
TIA
ritao
I'm trying to redirect to a page during runtime within a button click event. I am however getting a javascript error as shown below:
<input type="submit" name="ctl00$MainContent$btnGetRequest" value="Get Request" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$MainContent$btnGetRequest", "", true, "", "", false, false))" id="ctl00_MainContent_btnGetRequest" style="z-index: 101; left: 408px; position: absolute;
top: 24px" />
Response.Redirect("~/GoToRequest.aspx")
After displaying the js error message, it simply goes to the default page and stops there. I have checked the pages view source and there is a reference there to "WebResource.axd" so, I am really at a loss as to why it's behaving like that.
Has anyone come across this behaviour before or know what the problem might be?
TIA
ritao