Suppose I am having an url like: http://localhost:4647/Project/MyList.aspx.
On postback I want add some parameter(pageNo=4) to the url like: http://localhost:4647/Project/MyList.aspx?pageNo=4
Can I add "pageNo=4" to the url on postback as shown above? If yes please tell me how to do this.
You cannot change the client's URL from server-side code without redirecting.
Clients don't normally read URLs from server responses. (An HTTP response doesn't even contain the URL, except when redirecting; see here and here for details.)
Having said that, redirecting after posting is a very good idea anyway - consider using that technique.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With