accessing title attribute in codebehind(C#)
I have a textbox
<ASP:TextBox runat="server" id="txtFirst开发者_开发知识库Name" title="First Name"> </ASP:TextBox>
<ASP:TextBox runat="server" id="txtLastName" title="Last Name"> </ASP:TextBox>
I use Jquery Labelify plugin to show the title text inside the textbox.
Now in code behind i want to add "*" to title text depending up on the settings present in the DB.
So i have to know how i will be able to retrieve/set title attribute of TextBox.
You can write txtFirstName.Attributes["title"] = whatever
.
精彩评论