Can a GET request cause IsPostBAck to be true ?
I never tried it but I read that it (somewhere) that it can be done If I add _ViewState , _EventValidation and form params.
It it true ? Can this cause a PostBack ?
Thanks.
edit
I found it here
edit 2 after testing – it does WORKING
I didnt’t find even one topic about this in the web.
here it is :
I make a new answer after the update of the question. Actually I make a working example, and I confirm the question, that is can be done !
http://www.planethost.gr/SOPostBackTest.rar
What I do:
I make an aspx page, render it, then get and make an html with the render page, and just change the method from
posttogetthen I open the html page, and make a
getto the aspx page ! and the aspx page is actually see it as IsPostBack.The results is surprise me. The Flag IsPostBack is set to TRUE, you can see and test it by your self. I do not know how to consider this – BUG, or feature that asp.net work so good that what ever you send them on the form is make it work.
And yes the
Request.HttpMethodcan show more accurate if is GET or POST command.