473,396 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Accesing textboxs inside a table.

Accessing textboxes inside a table.

I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls(0)

but asp.net says
customerLastSales.Rows(i).Cells(j).Controls(0) does not have property called
text.

How can I them with out knowing their individual ID's?
Jul 31 '06 #1
6 1234
You need to typecast customerLastSales.Rows(i).Cells(j).Controls(0) to a
textbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
Accessing textboxes inside a table.

I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls(0)

but asp.net says
customerLastSales.Rows(i).Cells(j).Controls(0) does not have property
called text.

How can I them with out knowing their individual ID's?

Jul 31 '06 #2
I tried this,

dim tb as Textbox
tb = customerLastSales.Rows(i).Cells(j).Controls(0)

xxx = tb.text

but did not work

Ok just occurred to me you mean like this
dim tb as Textbox
tb = cType( customerLastSales.Rows(i).Cells(j).Controls(0),tex tbox)
xxx = tb.text

I will give that a try at work Wednesday
"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
You need to typecast customerLastSales.Rows(i).Cells(j).Controls(0) to a
textbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
>Accessing textboxes inside a table.

I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls(0)

but asp.net says
customerLastSales.Rows(i).Cells(j).Controls(0) does not have property
called text.

How can I them with out knowing their individual ID's?


Jul 31 '06 #3
Yes, something like this. I am not with vb, so I can't confirm the exact
syntax.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:ek**************@TK2MSFTNGP06.phx.gbl...
>I tried this,

dim tb as Textbox
tb = customerLastSales.Rows(i).Cells(j).Controls(0)

xxx = tb.text

but did not work

Ok just occurred to me you mean like this
dim tb as Textbox
tb = cType( customerLastSales.Rows(i).Cells(j).Controls(0),tex tbox)
xxx = tb.text

I will give that a try at work Wednesday
"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
>You need to typecast customerLastSales.Rows(i).Cells(j).Controls(0) to a
textbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
>>Accessing textboxes inside a table.

I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls(0)

but asp.net says
customerLastSales.Rows(i).Cells(j).Controls(0) does not have property
called text.

How can I them with out knowing their individual ID's?



Jul 31 '06 #4
made a demo, it worked fine

"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
Yes, something like this. I am not with vb, so I can't confirm the exact
syntax.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:ek**************@TK2MSFTNGP06.phx.gbl...
>>I tried this,

dim tb as Textbox
tb = customerLastSales.Rows(i).Cells(j).Controls(0)

xxx = tb.text

but did not work

Ok just occurred to me you mean like this
dim tb as Textbox
tb = cType( customerLastSales.Rows(i).Cells(j).Controls(0),tex tbox)
xxx = tb.text

I will give that a try at work Wednesday
"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
>>You need to typecast customerLastSales.Rows(i).Cells(j).Controls(0) to a
textbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
Accessing textboxes inside a table.

I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls(0 )

but asp.net says
customerLastSales.Rows(i).Cells(j).Controls(0 ) does not have property
called text.

How can I them with out knowing their individual ID's?



Jul 31 '06 #5
thanks

"Slim" <me@here.comwrote in message
news:uj**************@TK2MSFTNGP05.phx.gbl...
made a demo, it worked fine

"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
>Yes, something like this. I am not with vb, so I can't confirm the exact
syntax.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:ek**************@TK2MSFTNGP06.phx.gbl...
>>>I tried this,

dim tb as Textbox
tb = customerLastSales.Rows(i).Cells(j).Controls(0)

xxx = tb.text

but did not work

Ok just occurred to me you mean like this
dim tb as Textbox
tb = cType( customerLastSales.Rows(i).Cells(j).Controls(0),tex tbox)
xxx = tb.text

I will give that a try at work Wednesday
"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
You need to typecast customerLastSales.Rows(i).Cells(j).Controls(0) to
a textbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
Accessing textboxes inside a table.
>
I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls( 0)
>
but asp.net says
customerLastSales.Rows(i).Cells(j).Controls( 0) does not have property
called text.
>
How can I them with out knowing their individual ID's?
>




Jul 31 '06 #6

"Slim" <me@here.comwrote in message
news:uj**************@TK2MSFTNGP05.phx.gbl...
made a demo, it worked fine

"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
>Yes, something like this. I am not with vb, so I can't confirm the exact
syntax.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:ek**************@TK2MSFTNGP06.phx.gbl...
>>>I tried this,

dim tb as Textbox
tb = customerLastSales.Rows(i).Cells(j).Controls(0)

xxx = tb.text

but did not work

Ok just occurred to me you mean like this
dim tb as Textbox
tb = cType( customerLastSales.Rows(i).Cells(j).Controls(0),tex tbox)
xxx = tb.text

I will give that a try at work Wednesday
"Eliyahu Goldin" <re*************@monarchmed.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
You need to typecast customerLastSales.Rows(i).Cells(j).Controls(0) to
a textbox.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]

"Slim" <me@here.comwrote in message
news:uV**************@TK2MSFTNGP06.phx.gbl...
Accessing textboxes inside a table.
>
I am trying to access controls in a table like this
customerLastSales.Rows(i).Cells(j).Controls( 0)
>
but asp.net says
customerLastSales.Rows(i).Cells(j).Controls( 0) does not have property
called text.
>
How can I them with out knowing their individual ID's?
>




Jul 31 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeroen Ceuppens | last post by:
Hi, I have a problem accesing h, when i want to do h.Run() after the if else structure, i get the following error: (see below for code) C:\Documents and Settings\Eindwerk\Mijn...
3
by: julian_m | last post by:
A short piece of code which i'm having problems with: class ClsX{ var $F_name; var $F_array_of_obj= array(); function ClsX(&$obj, $name){ //Here I add an object reference to an array. Note...
2
by: ras26 | last post by:
I have a WebSite "App1" which has an external assembly "Lib1". Inside this external assembly we have developed some classes that derive from "System.Web.UI.Page". One of these pages is called...
4
by: lakshman1820 | last post by:
Hi Friends, I am able to access a table created by USER2 when i write some select query. But when i use the same select query inside a Package iam getting a error that table or view does not...
0
by: =?Utf-8?B?QW5u?= | last post by:
I have a formview with templates. I want to hide certain labels or textboxes according to the user's role membership. I can do this in a sub routine as long as it's not inside a template, is it...
16
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and...
2
by: Doug | last post by:
I have a form with a clients info. There is a subform with messages (date field and a textbox). There can be multiple messages per client. The row height of the message text box in the subform is...
2
by: kethireddy | last post by:
Hi .This is Aruna..Am working on ASP...Now am facing on a problem.. In the asp form i took 5 textboxs and one search button...when a write record name in a last textbox from database and click...
0
by: ganesh22 | last post by:
Hi Iam using below code for creating dynamically textboxs bt the below code is creating only one vertical row for textboxs now i want 3 vertical rows can u give a code?? using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.