asp.net - Can a URL change on postback? -
I just need to parse the URL request. Pinstring on Got, not on postback, right?
if (! Ipostback) {seestate ["magic_number"] = pars (request.) modify the URL in user postback request Can not be expected, or what can they do?
Inspiration for the question - I do not have JavaScript snippets that do postback, so this is something for me blackbox.
Change the URL not It's expected, but remember that each postback is a new example of your page class, so if you do not save the results somewhere on the first scene, then you have to be ready to do it again on the next one, and so on. In case you saved it viewstate, and so it should be okay.
However, I suspect you will not ask questions, unless you see that behavior that you Otherwise doubts happen. So let's think for a moment what might be the reason for breaking things:
- It is possible that is possible that client sees the viewer To modify where you saved your result (although not trivial and insignificant, certainly not recommended).
- You can create a postback before the initial page view.
- You can use javascript to change the posted url.
However, for all of you, you surely know that you have written something to do this.
Comments
Post a Comment