LinkButton OnClick working on local IIS but not on remote server

mew

New Member
On a page I have \[code\]DropDownList\[/code\] and a \[code\]LinkButton\[/code\] with the following code:\[code\]<asp:LinkButton ID="linkButton1" OnClick="FormSubmit" Text="CLICK ME" runat="server" />\[/code\]Code behind:\[code\]protected void FormSubmit(object sender, EventArgs e){ Response.Redirect("/location.aspx?dropDownValue="http://stackoverflow.com/questions/15497700/+ this.dropDownList.SelectedValue);}\[/code\]The purpose of which is for the user to select a value from the drop down list and be forwarded to a new page with a query string relating to that value.On my local IIS this works find and redirects to localhost/location.aspx with the appropriate query string, however, on the remote server all that happens is that the page refreshes.We've recently had a server outage and some settings on the server (e.g. firewall) have changed which may have thrown this out, but I cannot confirm for definite whether this is a problem that existed before.So the question is: what would cause this difference in behaviour between my local IIS and the remote IIS?Some more details: Both are IIS 7 running .NETv2I have tried http://stackoverflow.com/a/13498195/1185053 and http://stackoverflow.com/a/1953651/1185053
 
Back
Top