javascript - title attribute to Grid View template field -


i using grid view in have defined "templatefield" , property header text , sortexpression = true.

when viewing in browser see creates anchor element javascript.

how can give title tag anchor in code. want show title attribute "click sort".

but haven't see property this. how can or without javascript or c#.

here code

      <asp:templatefield headertext="username" sortexpression="username">         <edititemtemplate>             <asp:textbox id="txtusername" runat="server"></asp:textbox>         </edititemtemplate>          <itemtemplate>             <asp:label id="label1" runat="server"></asp:label>         </itemtemplate>     </asp:templatefield> 

i have solved problem using jquery.

for have same problem have done following process.

i have created css class header row th , adding title th using jquery following code.

 <script type="text/javascript">     $(document).ready(function () {         $('#content table tr.rowh th a').attr("title", "click sort");     }); </script> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -