Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get QueryString from inside a WebControl

I have a page which contains a dynamic number of custom WebControls. What I want to do is get the containing page's query string via "Request.QueryString".

If I understand the problem correctly I need the containing page's HttpRequest object?

Is there a way to do this?

I probably should point out that I don't want to pass the QueryString from the containing page to the WebControl. I want to access the QueryString directly from the WebControl.

like image 807
tohereknowswhen Avatar asked Dec 28 '22 13:12

tohereknowswhen


1 Answers

Consider the following link:

HttpContext.Current.Request.QueryString

like image 179
Muhammad Hasan Khan Avatar answered Dec 30 '22 01:12

Muhammad Hasan Khan