Click here to Skip to main content
15,850,360 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have one gridview inside of updatepanel

In grid view i have one dropdown list...

i am selecting id from dropdown list...
and showing other data in other grid view on dropdown select change event...

Data is coming in dataset but not showing in gridview...

Other Grid View Not In Update Panel....

if i remove update panel so its working...
plse solve this problem.....

<asp:ScriptManager ID="ScriptManager1" runat="server">
  <asp:UpdatePanel ID="UP" runat="server">
  <asp:gridview ID="Gridview2" runat="server" ShowFooter="True"
      <asp:TemplateField HeaderText="Supplier Name">
          <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("RowNumber") %>'>
          <asp:DropDownList ID="Drp_Supp" runat="server" AutoPostBack="True"
            <asp:ListItem>Select Supplier
    <asp:TemplateField HeaderText="Reference Number">
        <asp:TextBox ID="Txt_Refr" runat="server">
    <asp:TemplateField HeaderText="Total Amount">
        <asp:TextBox ID="Txt_Tam" runat="server">
    <asp:TemplateField HeaderText="VAT RATE">
        <asp:TextBox ID="Txt_Vat" runat="server">
    <asp:TemplateField HeaderText="Nominal Account">
        <asp:TextBox ID="Txt_NAc" runat="server">
     <asp:TemplateField HeaderText="Paid Amount">
        <asp:TextBox ID="Txt_Pam" runat="server">
    <asp:TemplateField HeaderText="Save">
        <asp:Button ID="Bt_Save" runat="server" Text="Save" />
      <footerstyle horizontalalign="Right" />
       <asp:Button ID="ButtonAdd" runat="server" Text="Add New Row"
          onclick="ButtonAdd_Click" />

Updated 20-Sep-11 3:19am

1 solution


You said you are showing data in another gridview which is not present in update panel right?

dropdownlist is in update panel so you can not update controls which are not present in update panel with dropdownlist events

Try to learn Jquery.

you can retrieve html data from server in asynchronous requests.

If you want to learn follow this links


Step into can get best experience with Jquery in webapplications

coming to you question ...

you said by removing update panel it was working.

The reason is just In said can achieve this without full page refreshing using only with Jquery.

All the Best
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900