Jul 13, 2012, 3:19 PM
[CLOSED] Tooltip not being set in the Codebehind...
I'm trying to Add a tooltip in the codebehind, but its not being set.
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void UpdateToolTip(object sender, DirectEventArgs e)
{
var t = new ToolTip()
{
ID = "Tooltip1",
Target = Button2.ClientID,
Title = @"Comments Added:",
Html = "It works...",
};
Controls.Add(t);
t.Render();
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Simple Form Panel - Ext.NET Examples</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Button ID="Button2" ArrowAlign="Right" Icon="Accept" Text="Update" OnDirectClick="UpdateToolTip"
runat="server" />
</body>
</html>
Last edited by Daniil; Jul 13, 2012 at 6:58 PM.
Reason: [CLOSED]