Solved

C# Refresh ASP Data

Posted on 2012-04-08
6
203 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

867 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

12 Experts available now in Live!

Get 1:1 Help Now