473,385 Members | 1,907 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,385 software developers and data experts.

find control

Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("insertitemtemplate.checkbox list1")

this doesnt' work.

what's wrong

finding the control is even harder than finding help in this group
Dec 1 '06 #1
2 1825

Mr. SweatyFinger wrote:
Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("insertitemtemplate.checkbox list1")

this doesnt' work.

what's wrong

finding the control is even harder than finding help in this group
Hi

First switch the Formview's defaultmode to insertmode
and then try your code except you dont need to set the templete name
before your contro

''in page load
FormView1.DefaultMode = FormViewMode.Insert;

''where you want to find....
Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("icheckboxlist1")
Thanks

Masudur
Kaz Software Ltd.
www.kaz.com.bd

Dec 1 '06 #2
You are a king thanks for helping
i hope it works

"Masudur" <mu*****@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
>
Mr. SweatyFinger wrote:
>Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("insertitemtemplate.checkbo xlist1")

this doesnt' work.

what's wrong

finding the control is even harder than finding help in this group

Hi

First switch the Formview's defaultmode to insertmode
and then try your code except you dont need to set the templete name
before your contro

''in page load
FormView1.DefaultMode = FormViewMode.Insert;

''where you want to find....
Dim checkboxlist1 As CheckBoxList =
FormView1.FindControl("icheckboxlist1")
Thanks

Masudur
Kaz Software Ltd.
www.kaz.com.bd

Dec 1 '06 #3

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

Similar topics

8
by: Yasutaka Ito | last post by:
Hi, Is there a way to find to which control the current control is docked against? For example, let's say I have panel1 and panel2 docked to left within a form. The panel1 is the first one on...
1
by: bill yeager | last post by:
I have a datagrid control within a datalist control. When I try and do a "Find" on the control, the object comes back with nothing and then my pgm crashes. I am 100% sure that my datagird inside...
2
by: Jim Heavey | last post by:
I am trying to figure out what the difference is between these 2 commands and which I should be using...what the difference is... I placed this tag on my form... <div id="fred"...
2
by: TM | last post by:
What is the method used to find all asp.net server controls (run at server) such as TextBox, ListBox, CheckBox... currently defined on an Asp.Net page at run time. I need it inside of a controlled...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
5
by: sck10 | last post by:
Hello, I am using the code below to set the values of a DetailsView template field using FindControl. My question is how would you find a control if its a Boundfield control? For example,...
13
by: usenet | last post by:
How and where can one find out about the basics of VB/Access2003 syntax? I am a died in the wool C/C++/Java Linux/Unix programmer and I am finding it difficult to understand the program format...
1
by: Salim | last post by:
Hi, I'm trying to get UniqueID of a linkbutton. I have 2 web user controls. And a master page. In fisrst web user control there is a datalist. In datalist ItemCreated event, I try to find...
5
by: gnewsgroup | last post by:
In my user control, I would like to find a Label control in the parent page (the page that uses my user control). I need to update that Label.Text when something happens in the user control. I...
6
by: DC | last post by:
Hi, our cms (asp.net 2.0) dynamically inserts controls into asp.net pages, sometimes 50 and more per page, and if we run into a performance bottleneck we have a hard time finding out which...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.