Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page data not updating with database data!!

Status
Not open for further replies.

arodri

Technical User
Jul 9, 2010
121
US
Hello,

I haven't worked with ASP.NET much, but I'm making a couple of changes to our webform and there's one more thing that I have been struggling with for the past few days and I can't seem to get. Any help would be greatly appreciated.

We have a simple site where our managers can log into the sytem, and have access to 8 forms. The data they enter into these forms goes to our sql database, and they are also able to edit this informtation and update those changes in the database.

So, right now we have one form that the mangers fill out, they press "add" and it inputs the data into the database. As soon as I press "add" I check the databast and the data is in fact there. Next, I click on "menu" on the website and it takes me to the main menu with all of our forms. The problem is that when I click on another button to access the form that edits the information I just put in, in the drop down that we have in that form, the information that I just inserted isn't coming up. The only way to get that information to come up is to refresh the page a couple of times, or exit the browser and come back to that edit form.
Is there any way that I can get the information updated on the drop down without having to refresh the page multiple times or exit the page? What I don't understand is that it's in the database as soon as I press "add", and the edit page is calling the database table...so why isn't it showing up?

Thank you guys so much in advance!
 
it's hard to answer your questiong without seeing the code. But my guess would be that after you insert the data, the dropdown list is not being repopulated. In other words, after you hit add, you have to call whatever code you call to get the data that populates the dropdown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top