473,320 Members | 2,133 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,320 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 1822

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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.