I am currently using <a> tag to click and navaigate as mentioned in below code.I want to navigate the below code in c# tag in page_prerender event based on id selected.could any one help on this?
<li><a href="#" rel="cat1">Category 1</a></li>
<li><a href="#" rel="cat2">Category 2</a></li>
<div id="cat1">
Content goes here
</div>
<div id="cat2">
Content goes here
</div>
something like if url doesn’t contain ‘#’ then
is that what you’re looking for?
clicking on the
<a>in html is really the same as just adding#Cat2to the end of the URL , the browser knows what to do from there