开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜