jaseemameer
New member
- Joined
- Apr 24, 2011
- Messages
- 4
- Programming Experience
- 3-5
Its not working for me.
My aspx page:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Button ID="Button1" runat="server" Text="Button" Visible="False" OnClick="Button1_Click" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<asp:TreeView ID="tvCont" runat="server" ShowCheckBoxes="All">
<DataBindings>
<asp:TreeNodeBinding DataMember="Group" SelectAction="Expand" Text="gname"
Value="gid" />
</DataBindings>
</asp:TreeView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
In page load:
tvCont.Attributes.Add("OnClick", "Button1_Click")
and
button click event.
whats wrong in the above code, its not triggering the button click event?
My aspx page:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Button ID="Button1" runat="server" Text="Button" Visible="False" OnClick="Button1_Click" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<asp:TreeView ID="tvCont" runat="server" ShowCheckBoxes="All">
<DataBindings>
<asp:TreeNodeBinding DataMember="Group" SelectAction="Expand" Text="gname"
Value="gid" />
</DataBindings>
</asp:TreeView>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click"/>
</Triggers>
</asp:UpdatePanel>
In page load:
tvCont.Attributes.Add("OnClick", "Button1_Click")
and
button click event.
whats wrong in the above code, its not triggering the button click event?
Last edited by a moderator: