How to display rich text in tooltip ASP.Net ?

Posted by mokokamello on Stack Overflow See other posts from Stack Overflow or by mokokamello
Published on 2011-01-05T10:23:09Z Indexed on 2011/01/05 10:54 UTC
Read the original article Hit count: 274

Filed under:
|
|

Experts !

i use the following code to display a tooltip

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="ID" DataSourceID="AccessDataSource1">
    <Columns>
        <asp:CommandField ShowEditButton="True" />
        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
            ReadOnly="True" SortExpression="ID" />
        <asp:BoundField DataField="datefu" HeaderText="date" 
            SortExpression="datefu" />
        <asp:TemplateField HeaderText="title" SortExpression="titlefu">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("titlefu") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>

        <a href="#" title="<asp:Literal ID="Label1" runat="server" Text='<%# Eval("fu") %>'/>"/>



        <asp:Label ID="NamePatientLabel" runat="server" Text='<%# Eval("titlefu") %>' />

            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>

display the following result

alt text

however when i edit the text as follows (making it bold and red in another gridview containing rich text editor)

alt text

i get the following (as a formatting result in the second grid view)

alt text

however when i view in the first gridview to display the tooltip i get the following reult

alt text

i really need your help to display the tooltip as rich text

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about tooltip