trying to understand postback

  • Thread starter Thread starter jim
  • Start date Start date
J

jim

My web page is very complex, contains 2 user controls and
many web/html controls, repeater, datagrid and more. In
order not to load this heavy page every time the user
clicks on a button I used the "if not ispostback then...".
The page works ALMOST great. The problem is - when the
user changes some data, and click submit, the data changes
in the sql server, but the page still show the old data.
What am I missing here??

Thanks
 
You may need to call MyDatagrid.DataBind to update the bindging between the
new datasource and the data grid.

Datagrids and other data-bound controls are manually bound by data.
Changing data in the database will not automatically update the data
displayed in the datagrid.

Hope this helps!

Joel Cade, MCSD
Fig Tree Solutions, LLC
http://www.figtreesolutions.com
 

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

Back
Top