Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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 February 2nd, 2009, 02:36 AM
Authorized User
 
Join Date: Jan 2009
Posts: 25
Thanks: 3
Thanked 1 Time in 1 Post
Default Refresh Page

I am sure this is a simple answer, but could not seem to find it anywhere. I have a page with several differnt views on it and I want to refresh the whole page after I enter data onto on of the fields. Is the a simple way to just REFRESH on update somewhere?
 
Old February 4th, 2009, 06:30 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You could enable autopostback on the field you wish to trigger an update. That will at least trigger a postback. You can then use that to refresh the views.
__________________
-Peter
compiledthoughts.com
twitter/peterlanoie
 
Old February 7th, 2009, 03:02 AM
Authorized User
 
Join Date: Jan 2009
Posts: 25
Thanks: 3
Thanked 1 Time in 1 Post
Default Not working

That doesn't really work. I have a data entry box on my page and a gridview holding a history of the data. When I enter a new 'note' in the text box I want it to refresh the gridview below. Any ideas?
 
Old February 7th, 2009, 03:10 AM
Authorized User
 
Join Date: Jan 2009
Posts: 43
Thanks: 0
Thanked 2 Times in 2 Posts
Default from dinesh

hi mashype,

why dont you redirect to the same page when the textbox event occurs.
__________________
dinesh s
 
Old February 10th, 2009, 05:20 AM
Authorized User
 
Join Date: Dec 2004
Posts: 69
Thanks: 0
Thanked 5 Times in 5 Posts
Send a message via Yahoo to whiterainbow
Thumbs up Try out this

Use a separate function (a private function) in your code behind in which the grid will be populated and if you already have data in your dataset call the function in the !ispostback event when the page is loading. And after the update of the data from the input box, just call the private function and so ur grid is updated.

Very simple.
__________________
Thanks in advance.

Regards,

Senthil Kumar M.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Parent Page Refresh crmProg Visual Studio 2005 1 February 9th, 2007 09:56 AM
How to refresh parent page amolpayal Javascript How-To 1 August 2nd, 2006 05:03 AM
Need to "Refresh" page fskilnik Dreamweaver (all versions) 3 October 20th, 2005 10:49 AM
page Refresh skicrud PHP How-To 2 August 25th, 2004 04:03 AM





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