Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Refreshing Grid View

Posted on 2006-07-01
2
Medium Priority
?
272 Views
Last Modified: 2010-04-23
Hi, I am very new to web development so please go easy if the following question is absurdly simple ;-)

I am using Visual Studio 2005, with VB.Net to develop a web-site, which is utilising a SQL Database.

On one page, I have a search facility which is activated by a button. This search populates a temporary table, which I have bound to a gridview on the same page.

However I do not know how to refresh the gridview when the underlying table changes.

Any help to get me going again would be very much appreciated.

thanks...
...Steve
0
Comment
Question by:swtiley
[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
2 Comments
 
LVL 1

Author Comment

by:swtiley
ID: 17025848
As additional comment - I have played around with the gridview.databind, but I am not sure where to put it.

For the moment it is on pageload, but then the gridview always displays one search behind the current one. Any suggestions of where it should go - or a better way of refreshing ...


... Thanks (again)
Steve
0
 
LVL 5

Accepted Solution

by:
t_itanium earned 2000 total points
ID: 17029051
you can do that by rebinding the data or use the .Refesh of the grid view...but  if you are using ASP.NET  make sure you understand STATEVIEW and ASP.NET page life cycle...

http://www.15seconds.com/Issue/020102.htm
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

604 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