?
Solved

C# Refresh ASP Data

Posted on 2012-04-08
6
Medium Priority
?
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 750 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 29

Assisted Solution

by:sammySeltzer
sammySeltzer earned 750 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

762 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