Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

text field in gridview asp.net 2.0

I have a column whcih is a text field in gridview. I would like to disply only the part of text ( i.e  Priter is not working because...) ,and if the user put a cursor on that text column, the whole message will be displayed.. How can I do this using C# and java script?

0
jung1975
Asked:
jung1975
1 Solution
 
REA_ANDREWCommented:
here you go, when making the textboxes assign the full value into the tooltip and the truncated value into the text part, the javascript then switches them

<asp:TextBox ToolTip="Testing Testing" ID="TextBox1" runat="server" Text="Testing" onfocus="this.value = this.title;"> </asp:TextBox>
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now