AJ

AJ

  • NA
  • 6
  • 0

refreshing a gridview object

Jun 8 2008 2:15 PM

All,

I'm using Visual Studio 2008/C# and Sql Server 2005 express. I have a dropdownlist which is connected to a SqlDataSource that queries a Names table to display a name. Also, there's a text box and a GridView. The idea is the user selects his name from the dropdownlist, enters some text in the texbox and clicks on a button called 'Check In'. This button sends an 'Insert' statement to SS2005 and logs it the a table called Events. The GridView is connected to the Events table via a SqlDataSource Connection. Everything works but is there a way to have the GridView automatically refresh (postback?) itself after the user clicks on the Check In button?

cheers!


Answers (2)