Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 December 1st, 2004, 12:39 PM
Authorized User
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to datagram Send a message via AIM to datagram
Default Textbox1.Refresh() NOT WORKING

I am using Intersoft's WebGrid to grab leads from a database and display them. My subroutine Webgrid1_ButtonClick in the VB codebehind sends the information from the cells to a webform below that has textbox's in it. I need to use the textbox1.refresh() command, but it says "refresh is not a member of System.Web.UI.Webcontrols.Textbox".
The reason I need a refresh is when the user clicks the button in the Webgrid, its supposed to populate the textbox fields in the web form below, but its not updating the textbox's.
 
Old December 1st, 2004, 02:00 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You must make sure that the ButtonClick event triggers a post back, otherwise you will not see the values.

 
Old December 1st, 2004, 02:31 PM
Authorized User
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to datagram Send a message via AIM to datagram
Default

Hello, thank you for your reply. I changed the "OnTheFly" post back to "Full Page Post Back" and it works fine. Why wont it work OnTheFly????
 
Old December 1st, 2004, 05:36 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You have to post back to the server in order to show the values.... you can only doit on the fly if you use client side code like Java Script


 
Old December 1st, 2004, 05:50 PM
Authorized User
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to datagram Send a message via AIM to datagram
Default

Thank you very much for clearing this up, I am new to ASP.NET.
:):):):):):):):)

 
Old December 2nd, 2004, 01:10 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

not a problem :) that's why the forum is here. I think we are all learning something new each day no matter how long we have used it. Good luck!

 
Old December 2nd, 2004, 09:23 AM
Authorized User
 
Join Date: Dec 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to datagram Send a message via AIM to datagram
Default

Im glad, because Im sure I will have a lot more questions ;)







Similar Threads
Thread Thread Starter Forum Replies Last Post
Refresh GridView Using Refresh Button msbsam ASP.NET 2.0 Professional 0 December 6th, 2006 05:57 AM
Web.Config..Working or Not Working peace95 ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 06:53 AM
Show text from Form3 Textbox1 to Form2 Textbox1 peterasimpson VB How-To 5 December 19th, 2005 06:41 PM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM





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