Solved

C# Refresh ASP Data

Posted on 2012-04-08
6
201 Views
Last Modified: 2012-05-04
I created my first ASP website with C# and passing parameters from the textboxes to sql database.
After I add the data in the textboxes and hit submit it shows up on sql table but it does not show up when I click Back to the the previous page in the dro downs.
The drop downs are connected to the same table.
The data only shows up on the drop downs ONLY if I stop compiling VS and Compile it again. Then I can see the new information in the drop down.

What C# code I can use to insert a button on the first page that would refresh the data in the drop downs?
Please help this is the only thing that is stopping me to proceed!

Paul
0
Comment
Question by:pauledwardian
  • 3
6 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 250 total points
ID: 37822533
Fill the drop downs at page_load event....

http://asp-net-example.blogspot.in/2009/03/how-to-data-bind-dropdownlist-on-page.html

PS : please modify the code to fetch data from data base and bind the dd to this data
0
 

Author Comment

by:pauledwardian
ID: 37826164
Can you provide a code that would bind data in a Refresh button?
0
 
LVL 28

Assisted Solution

by:sammySeltzer
sammySeltzer earned 250 total points
ID: 37847580
It seems to me that you are confused about dropdowns work.

Can you show the dropdown code you are using?
0
 

Author Comment

by:pauledwardian
ID: 37908697
Basically the dropdowns are connected to the SQLDatasource. I didnt use code to bind the drop downs to the table. I use the sql data source.
0
 

Author Closing Comment

by:pauledwardian
ID: 37931011
Thanks!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now