How can I get the URL and Querystring? vb.net
request, url, vb.net
Solution
Try this:
so.Cpage = "ContractChange.aspx?" & Request.RawUrl.Split("?")(1)
Problem
I am refactoring some legacy code. The app was not using querystrings. The previous developer was hard coding some variables that the app uses in other places. Like this using VB.NET ``` so.Cpage = "ContractChange.aspx" ``` My question is can I programatically set this value and include the current querystring? I want `so.Cpage` to be something like `ContractChange.aspx?d=1&b=2` Can I do this with the request object or something? Note, I don't need the domain.