Refreshing / requerying GridView control when page is submitted?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi All,

I have an ASP.NET page that is used to insert records into an SQL
Server table (see previous post). I also have a GridView on the same
page that displays the results of a query on the same table the records
are inserted into when the page is submitted.

I'm wondering if there's a way to requery / refresh the records being
displayed by the GridView when the page is submitted?

Currently when I submit the page, which inserts a record, the GridView
doesn't refresh / requery to display the newly inserted record.

Can anyone point me at what I should be doing in the page submit code
to make sure the GridView also displays the record just inserted?

Many thanks in advance!

Much warmth,

planetthoughtful
---
"Lost in thought"
http://www.planetthoughtful.org

.



Relevant Pages

  • RE: VS2005 DataList with Nested GridView using ObjectDataSource
    ... you're wantting to display some data on the ASP.NET ... web page through the DataList control, and since those data records can ... category items in the DataList and in each DataList item, use a GridView ... | customer number in a grid (call it QUERY A). ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Different DetailsView templates for items in a GridView. Is it possible?
    ... One field should really have one meaning, not dependent on the values of other fields, like the meaning of content depends on content type in this example. ... if I a filename is selected in the 'parent' GridView I'd like the DetailsView display a short text box and have a corresponding validator attached to it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: subheaders with totals for each
    ... As for displaying sub total row, there does exists some article demonstrate ... How to Display Sum Total in the Footer of the GridView Control ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: subheaders with totals for each
    ... so with this how can i add totals for each subheader/group? ... on adding sum total footer in GridView or datagrid: ... How to Display Sum Total in the Footer of the GridView Control ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: 2nd Post - {0:c} causes deletes to fail!
    ... For the problem, in the previous thread, as I didn't get the same gridview ... display, I think it maybe caused by the culture setting which control the ... I get an Input String Was Not In Correct Format ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)