vendredi 17 avril 2015

Get HTML Label For Value From Code Behind C#

I am using HTML Label Control



<label for="Cat" id="lblCatMenu" runat="server">Category</label>
<label for="Cat" id="lblCatGrid" runat="server">Category</label>


I want to get HTML Label for Value in CodeBehind C#


Like



protected void Page_Load(object sender, EventArgs e)
{
// Here i want 'Cat'
}


Is this possible ? actually i am new for html control using in asp.net with C# ...Basic use for this to change inner text of all labels for 'Cat' rather than with ids...if i want to change category into some another language... all labels for cat will be changed....


Aucun commentaire:

Enregistrer un commentaire