Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Datagrid Driving Me Up The Wall


Message #1 by "Daniel Klemm" <daniel_klemm@b...> on Fri, 15 Nov 2002 08:38:29 -0000
Hi all,

I have a .net page with a datagrid and button,
When I click the button it adds a new record to a database.
However the datagrid does not display the last record added.
I know the grid is being refreshed as when I add the next record the
previous record added is shown.

e.g.
Add Record 1 New Record NOT Seen.
Add Record 2 - Record 1 is now displayed.
Add Record 3 - Record 2 is now displayed.
etc, etc.............

This is now starting to be a major milestone in my project.

Can anyone help me

Thanks in advance

Daniel.



Message #2 by "Paul Riley" <rilez@t...> on Fri, 15 Nov 2002 08:43:37 -0000
Sounds like there's something slightly wrong with the order of what you
are doing. Can you post some code please for people to have a good look
at it?

-----Original Message-----
From: Daniel Klemm [mailto:daniel_klemm@b...] 
Sent: 15 November 2002 08:38
To: ASP.NET
Subject: [aspx] Datagrid Driving Me Up The Wall

Hi all,

I have a .net page with a datagrid and button,
When I click the button it adds a new record to a database.
However the datagrid does not display the last record added.
I know the grid is being refreshed as when I add the next record the
previous record added is shown.

e.g.
Add Record 1 New Record NOT Seen.
Add Record 2 - Record 1 is now displayed.
Add Record 3 - Record 2 is now displayed.
etc, etc.............

This is now starting to be a major milestone in my project.

Can anyone help me

Thanks in advance

Daniel.





Message #3 by "Daniel Klemm" <daniel_klemm@b...> on Mon, 18 Nov 2002 11:28:58 -0000
I think I have solved my problem now,

Can someone confirm this

If you Click on the button that runs some code is it executed after the
page_load event or before ?

Thanks
Daniel


----- Original Message -----
From: "Paul Riley" <rilez@t...>
To: "ASP.NET" <aspx@p...>
Sent: Friday, November 15, 2002 8:43 AM
Subject: [aspx] RE: Datagrid Driving Me Up The Wall


> Sounds like there's something slightly wrong with the order of what you
> are doing. Can you post some code please for people to have a good look
> at it?
>
> -----Original Message-----
> From: Daniel Klemm [mailto:daniel_klemm@b...]
> Sent: 15 November 2002 08:38
> To: ASP.NET
> Subject: [aspx] Datagrid Driving Me Up The Wall
>
> Hi all,
>
> I have a .net page with a datagrid and button,
> When I click the button it adds a new record to a database.
> However the datagrid does not display the last record added.
> I know the grid is being refreshed as when I add the next record the
> previous record added is shown.
>
> e.g.
> Add Record 1 New Record NOT Seen.
> Add Record 2 - Record 1 is now displayed.
> Add Record 3 - Record 2 is now displayed.
> etc, etc.............
>
> This is now starting to be a major milestone in my project.
>
> Can anyone help me
>
> Thanks in advance
>
> Daniel.
>
>
>
>
>
>
>


  Return to Index