Problem with DataBind Late in Event?

P

poi

In my Page_Load, I check for IsPostBack and fetch some data and bind
ASP.NET page template textboxes to some columns. I also show a DataGrid
on the page. In the _ItemCommand event of the grid, I catch the ID
column of the grid. Now I re-fetch data, but it appears to be too late
in the page lifecycle process to update the textboxes (again) with the
new values.


Can I make the page Server.Transfer to itself somehow from within the
grid event? If I just do a plain "Server.Transfer" I get a
NullReferenceException.

Can I make the event "back up" to the Page_Load and reload itself?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top