.net - how do i add a title attribute to a panel (div) in the c# code behind file? -


ASP.NET C #

How do I add a title attribute (div) to a panel? The file behind the code

add runat = "server" attribute to your div, then you can access This is like any other ASP.NET control.

Markup:

  & lt; Div id = "myDiv" runat = "server" & gt; & Lt; / Div & gt;  

Code-Back:

  myDiv.Attributes ["title"] = "some title";  

Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -