I have a page that calls another page with some query string parameters. I want to return back to that page after clicking on a button.
I have to mention that I write that code in a user control and I don’t know what page called that second page.
Is there something like Back button in browsers?
You could look at Cross Page Posting.
Alternatively, if you are generating the link programatically you could include the returnUrl in the url e.g.
http://localhost/secondpage.aspx?returnurl=firstpage.aspxYou can then read this querystring parameter in the secondpage and perform as redirect back once your work is done.