Link to home
Start Free TrialLog in
Avatar of newbie27
newbie27Flag for United Kingdom of Great Britain and Northern Ireland

asked on

how to refresh a gridview - asp.net


from the code behind i am updating the status of the registration
====================
case "new"
RegistrationPersonalisedClassics.UPdatePCRegistrationDetails(GiftCodeID, "ARRIVED", "", UserID, UserTypeID)
=========================          
soon the status gets updated i wanted to show that record in the grid below to get all the records with the status="ARRIVED"

however the grid not showing the result instantly, until i refresh the page.

please can someone advise how can i get the grid to refresh the results and show the latest record as well, without actually refreshing a page


<asp:Panel ID="pnlShowRegistrations" runat="server" Visible="True">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="GiftCodeID" DataSourceID="dsRegistrations" AllowPaging="True" CellPadding="3" CellSpacing="3" PageSize="15">
        <Columns>
            <asp:TemplateField HeaderText="GiftCode ID" InsertVisible="False" SortExpression="GiftCodeID">
                <EditItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiftCodeID") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "SearchRegistrationResults.aspx?OrderID=" & Eval("GiftCodeID") %>'
                        Text='<%# Eval("GiftcodeID") %>'></asp:HyperLink>
                </ItemTemplate>
 </asp:GridView>

any helps is greatly appreciated.
thanks
SOLUTION
Avatar of charlie324
charlie324

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial