How can i remove a part from the request url inside a button server side click here is my code:
URL:http://localhost:51854/SupportWebsite/Dashboard.aspx?FromForum=T
NewURL:http://localhost:51854/SupportWebsite/Dashboard.aspx
I know that i can use the string properties like remove and replace but i don’t want to use Responce.Redirect(NewUrl) at the end of my button click because it would make no sense why because the button do post back in his default functionality
You could use the Uri.GetLeftPart method: