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

You are currently viewing the ASP.NET 2.0 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 September 18th, 2007, 05:04 PM
Authorized User
 
Join Date: Nov 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. I will continue my investigation and see if I can set the mode programatically if needs be.

I have got this working when the FormView is not in a master page and the FormView works perfectly well when the date is inserted manually, so that should give me some clues.

I don't want to waste any more of your time, but thanks again it has given me somethings to try out.

Andy M

 
Old September 18th, 2007, 05:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You're welcome. Good luck....

Imar

---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
 
Old September 26th, 2007, 11:36 AM
Registered User
 
Join Date: Sep 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Enormity Send a message via Yahoo to Enormity
Default

If you have a formview control (we'll name it "FormView1"), and you have a textbox inside your formview control (which we'll name "TextBox1"). And we want the textbox to display the words, "I did it." To get to it, you would use something like:



Dim formviewtextbox

formviewtextbox = FormView1.FindControl("TextBox1")

formviewtextbox.Text = "I did it!"



I had found this before, and lost it when I needed it. But I just found it again and used it (which it does work. I just tested it). Hope you are able to use it now, too. Let me know if you have any questions.

Enormity





Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlighting a textbox in a formview amatytfc ASP.NET 2.0 Basics 0 October 12th, 2007 03:13 PM
textbox initialization in Formview ekwong ASP.NET 2.0 Basics 2 November 17th, 2006 08:30 PM
Populate a Textbox in a Formview timeware ASP.NET 2.0 Basics 0 September 29th, 2006 10:08 AM
reference textbox values in FORMSVIEW templates alexdcosta ASP.NET 2.0 Basics 0 June 22nd, 2006 05:49 AM
Masked TextBox & formatting TextBox melvik C# 1 September 22nd, 2003 11:01 AM





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