<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
GRID-------------
<asp:TextBox ID="txtname" runat="server" Width="181px" AutoPostBack="True"
Height="15px"></asp:TextBox>
<asp:Button runat="server" ID="btn_getname" OnClick="btn_getname_Click" Text="" />
<asp:ListBox ID="listbox1" runat="server" Height="252px" SelectionMode="Multiple"
Width="141px"></asp:ListBox>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btn_getname" />
</Triggers>
</asp:UpdatePanel>
issue 1
------------
on grid header click a javasscript function getdetails() is executed which has
document.getElementById('<%=btn_getname.ClientID %>').click();
in server side code of btn_getname event
i have code for making either txtname or listbox1 visible true depending on some condition
but with below
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btn_getname" />
</Triggers>
1) i need to write alert in javascript function getdetails() to hit the btn_getname event
without it in IE it doesnot work
2) the user after clicking one grid header cell , if clicked another header cell than function getdetails() doesnot get initated
but if i remove
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btn_getname" />
</Triggers>
and place <asp:Button runat="server" ID="btn_getname" OnClick="btn_getname_Click" Text="" />
outside the update panel the above 2 points 1) & 2) does work properly
even without alert the btn_getname event gets executed in IE
issue2
-----------
on grid header click a javasscript function getdetails() is executed and a control is made visible
i have a javascript function ESCpress
which has
document.getElementById('<%=btnclear.ClientID %>').click();
in its server side i have code for making the controls visibe false and its works propely but postback happens
if i do the same in cleint side (without postback ) ie writing the script in javascript function ESCpress() instead of
document.getElementById('<%=btnclear.ClientID %>').click();
it does server the puropse but on every postback of the page the controls becomes visible true
which i dont want
i need the controls to be visible only when the grid header cell is clicked
i checked with function getdetails() but without header cell clik function getdetails() does not get initated
i hope i am clear with full process