How to get the requested url name in the lablel text
I am having a lablel on my masterpage and links of the various pages like
this
<ul id="navigation">
<li><span class="active">Overview</span></li>
<li><a href="AdminHome.aspx">Home</a></li>
<li><a href="LoginInfo.aspx">Register</a></li>
<li><a href="ProductCategory.aspx">Category</a></li>
<li><a href="ProductSubCategory.aspx">Sub-Category</a></li>
<li><a href="ProductSubCategory2.aspx">Sub-Category2</a></li>
<li><a href="CompanyInfo.aspx">Company</a></li>
<li><a href="ProductInfo.aspx">Product</a></li>
<li><a href="ProductStock.aspx">Stock</a></li>
<li><a href="ProductPhoto.aspx">Photo</a></li>
</ul>
<div id="content" class="container_16 clearfix">
<div class="grid_16">
<h2>
<asp:Label ID="lblpagename" runat="server"
Text=""></asp:Label> </h2>
<p class="error">
Something went wronk.</p>
</div>
</div>
Now i want that whenever i click on any link the page name like "Home" ,
"Register"... get appear in the label text
No comments:
Post a Comment