Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 27th, 2006, 02:35 PM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Refreshing VB .NET web form

We've been using the following line of code in our VB.NET apps to refresh our Web forms that are pulling real-time data from a SQL database:
Response.AppendHeader("Refresh", "10")

But when this is done the form always flickers. That's the 1st problem.

The second problem is that I have a form that I want to refresh some of the data, but don't want to re-run the whole form because I need to retain the user's last selection on the form. I wanted to just re-run the parts of the code that I wanted updated by using a Timer (System.Timers.Timer), but as I'm sure most of you know that won't work because my web form does not refresh to show the new data. I have a label and a datagrid that I'm trying to refresh this way. Is there any way to make this work?

Any input on either issues is greatly appreciated.


 
Old November 27th, 2006, 02:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...
looks like a work for ajax... did you try it?? look at it at ajax.asp.net.. but it's still in beta form...

HTH

Gonzalo





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set a form as startup form in vb.net 2.0 mallikalapati .NET Framework 2.0 1 February 21st, 2008 09:19 AM
Urgent VB form Migration to VB.net form kvenkat_2k1 Pro VB.NET 2002/2003 1 December 7th, 2005 04:58 PM
Refreshing a sub-form from another sub-from lguzman Access VBA 1 November 29th, 2004 05:07 PM
Web Programming using VB.net and Vis Studio.net anglospice Wrox Book Feedback 3 August 21st, 2003 08:02 AM
Web Programming using VB.net and Vis Studio.net anglospice VS.NET 2002/2003 0 August 20th, 2003 05:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.