-1

I need to work with querystring but i'm not sure when i shoud use. Permissions in my page depend of querystring.

I know, i can use in page_load but i need to be sure this is a best practice.

[EDIT]

If I use querystring to permissons in my page when i shoud use querystring?

Example: Show some controls hide others.

[/EDIT]

Sorry my bad english!

Thanks!

user1671697
  • 271
  • 1
  • 2
  • 9
  • In `page_load` event. `string v = Request.QueryString["param"]; if (v != null) { .... }` http://stackoverflow.com/questions/3207611/best-practices-for-passing-data-between-pages – Avijit Dec 26 '14 at 16:11
  • if my answer helped you make it as correct. – mybirthname Dec 28 '14 at 10:06

1 Answers1

1

If the query string name is ID

this.Request.Params["ID"]

will return the query string in the page as string value. You can use it whatever you want

mybirthname
  • 17,949
  • 3
  • 31
  • 55