html
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<grid>.....................</grid>
textbox1.text
listbox1
4 hidden fields
<asp:Button runat="server" ID="button1" OnClick="button1_Click" Text=""/>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="button1" />
</Triggers>
</asp:UpdatePanel>
on gridheader click
function getHname()
{
document.getElementById('HCELLVAL')= gridheadercell.value;
document.getElementById('<%=button1.ClientID %>').click();
//////alert(document.getElementById('H_TYPE').value);
}
protected void button1_Click(object sender, EventArgs e)
{
string cellval= HCELLVAL.value
sql for getting type from database
H_TYPE.Value = ds.Tables[0].Rows[0]["TYPE"].ToString();
depding on type either textbox1.text is displayed or listbox1 is displayed
}
is this correct flow till now???
if yes how can i get the H_TYPE.Value in the script getHname()
with normal document.getElementById('H_TYPE').value i dont get