Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 March 25th, 2008, 04:31 PM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Values in Containers

All,

I want to get a value out of a container, e.g. dataview,formview,gridview etc

and place it straight into a variable outside of the container

any help would be appreciated

regards
DD
 
Old March 25th, 2008, 04:44 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi DD,

Not sure if I really understand the question? Surely this is not a task?

Get the value via the relevant objects properties, and then place it in the variable?!?!

e.g.
string x = dataView1[0][0].ToString(); //first row, first column.
FormView (Not too familiar with web, but I am sure it has its own object model for retrieving contained values.
string x = form1.Controls["textBox1"].Text;

etc.

Rob
The Developing Developer
Currently Working Towards: MCAD C#
My Blog: http://www.robzyc.spaces.live.com
<center>"Nothing can stop the man with the right mental attitude from achieving his goal;
nothing on earth can help the man with the wrong mental attitude".

Thomas Jefferson</center>





Similar Threads
Thread Thread Starter Forum Replies Last Post
get the values of form field values crmpicco Perl 2 March 16th, 2007 10:57 AM
Placing controls in containers at run time. HotBlue VB How-To 2 October 13th, 2006 05:58 PM
Where have all the values gone? clandestine XML 1 June 29th, 2005 10:10 AM
loop values and text box values move mateenmohd Classic ASP Basics 2 April 5th, 2005 11:33 PM
why don't i see all my values? monstermash Classic ASP Basics 6 July 18th, 2003 11:44 AM





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