While running my auto-web test, I received this message :
Response URL Validation The value of the ExpectedResponseUrl properity 'http://localhost:4800/FirstPage.aspx' isn't equal to the effective response URL 'http://localhost:4800/开发者_如何学编程SecondPage.aspx'. The QueryString parameters have been ignored.
Note: for the redirection, I am using:
Response.Redirect(Url2, false);
event while changing the parameter with true, I receive the same message.
I found the solution, and I didn't understand why! but it is Oky :
The solution is to use Server.Transfere() instead of Response.Redirect()
精彩评论