Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

QueryString function and Panel Show/Hide

$
0
0

Hi Guys,

Here's a question that someone out there will be able to answer quickly. I have a page with mulitple Panels that are hidden and then I require to show based on the querystring so for ecample if the query string looks like this: /pages/page.aspx?view=true&id=a1234 the 'view' panel needs to be visible, where as if the querystring looks like this /page/page.aspx?list=true&catid=987 the 'list' panel needs to be visible.

What would be the best way to go about this? I have thought about using an if statement but was wondering if there is a better way of completing this task.

There are 4 other panels located on the page that have different querystrings that will trigger them.

Any suggestion would be great!

Kind Regards


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>