Click here to Skip to main content
12,074,808 members (57,730 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
I have one Gridview.when click on Gridview image button, outside Gridview controls are fillup,which means other controls are inside one panel. problem is that, when click on Gridview controls are fill up inside panel. but page refresh.
Can anyone please help me to avoid flickering(Refresh) the asp.net page.
Code below describe.Thanks in advance.Please try to give me easy and understanding code as i am very new in the system.

<asp:GridView ID="displaygrid" runat="server" Width="100%" DataKeyNames="ncode" AllowCustomPaging="True" AllowPaging="True" AutoGenerateColumns="False"
AllowSorting="True" onrowediting="displaygrid_RowEditing">
<SelectedRowStyle ForeColor="Blue" CssClass="td" />
<AlternatingRowStyle Height="17px" CssClass="tdbox2" />
  <RowStyle Height="17px" CssClass="tdbox" />
     <HeaderStyle Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" CssClass="tdbox1" />
                                              <Columns>
                                                 <asp:ButtonField Text="&lt;img alt=Edit border=0  src=./images/edit_icon.gif&gt;"  HeaderText="Edit" CommandName="Edit" >
                                                  <HeaderStyle Width="3%" />
                                                  <ItemStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="Black" VerticalAlign="Middle"></ItemStyle>
                                                 </asp:ButtonField>
 
                                                  <asp:ButtonField Text="&lt;img alt=Delete border=0  src=./images/delete_icon.gif&gt;" HeaderText="Delete" CommandName="Delete">
                                                        <HeaderStyle Width="3%"></HeaderStyle>
                                                        <ItemStyle Font-Bold="True" Wrap="False" HorizontalAlign="Center" ForeColor="Black"></ItemStyle>
                                                    </asp:ButtonField>
                                                    <asp:ButtonField Text="&lt;img alt=View border=0  src=./images/view_icon.gif&gt;" HeaderText="View" CommandName="Cancel">
                                                        <HeaderStyle Width="3%"></HeaderStyle>
                                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                                                    </asp:ButtonField>
                                                    <asp:TemplateField HeaderText="User Full Name">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblUserFullName" runat="server" Text='<%# Bind("UserFullName") %>'></asp:Label>
                                                        </ItemTemplate>
 
                                                  </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Config Item">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblConfigItemVal" runat="server" Text='<%# Bind("ConfigItem") %>'>
Posted 7-Sep-12 0:44am
Edited 7-Sep-12 0:49am
v2
Comments
cpsglauco 7-Sep-12 6:00am
   
what do you mean by "page refresh"? the page is reloaded? it's normal
Karthik_J, Coimbatore 7-Sep-12 8:18am
   
Use Update panel

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 7 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100