Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GridView - tooltip text for link button?
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01307060
Message ID:
01307091
Vues:
8
>Hi everybody,
>
>How can I add a tooltip to the Link button inside a GridView?
>
>Also why changind display from block to none makes control to be displayed left-aligned?
>
>Thanks a lot in advance.

Ok, since nobody wants to help, I would have to help myself.

This works quite nicely:
  link.ToolTip = "Remove " +
                    e.Row.DataItem.ToString() + " from the " +
                    this.drpSelRole.SelectedValue + " role";

                link.Attributes["onclick"] =
                    "SetValue('" +
                    this.HiddenField1.ClientID + "','" +
                    e.Row.DataItem.ToString() +
                    "');HideElement('" + this.lblProfStat.ClientID +
                    "');return confirm('Do you want to remove " +
                    e.Row.DataItem.ToString() + " from role " +
                    this.drpSelRole.SelectedValue + "?' );";
                link.CommandArgument = "RemUser";
Getting there..., though quite slowly...

The center problem still remains, though, so perhaps somebody wants to give it a shot?

Thanks in advance.

BTW, the problem only shows in FireFox. When I switch display to IE (in FireFox), the combo and grid are centered correctly.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform