473,320 Members | 1,732 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.

how can i find usercontrol in Formview

Unable to cast object of type 'ASP.gallery_gallerywrite_ascx' to type
'Gallery_GalleryWrite'.
first, error message is like this, Gallery_GalleryWrite is usercontrol that
contained in GalleryList that is another usercontrol
so...in GalleryList class
i'd like to find id of Gallery_GalleryWrite class so i wrote my code like
below.

protected void FormView1_DataBound(object sender, EventArgs e)
{
Gallery_GalleryWrite galleryWrite =
(Gallery_GalleryWrite)FormView1.FindControl("Galle ryWrite1");

but it occur some error..

what's problem?


Nov 20 '05 #1
0 987

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

Similar topics

3
by: sck10 | last post by:
Hello, I am creating a form for users to enter information about a lab and the members of the lab. I have one form (FormView) that they use to enter information about that lab. The keyvalue is...
2
by: Liones | last post by:
Hi, In javascrip i have to find a "Versam20TextBoxEd" in a FormView but i get error of compilation the "Versam20TextBoxEd" is not in the context I can find the FormView...
2
by: Mr. SweatyFinger | last post by:
I have a usercontrol. In the usercontrol i have a formview. in the formview I have a dropdownlist with a sqldatasource why why why why can't i referenct the sqldatasource from the codebehind?" ...
2
by: Chris | last post by:
I have a user control which is dynamically loaded into a placeholder. I have a formview in the user control In the page load event of the user control I wand to find a dropdown in the formview....
0
by: Chris | last post by:
I have a user control which is dynamically loaded on to the page and contains a formview which does an insert. When I do the insert the form clears and if I want I can add another record. However...
1
by: mAbZ | last post by:
I neeed to instantiate an UserControl in an aspx page like this: <MyNamespace:MyControl ID="ctrl1" runat="server" MyParent="<%# this %>" /> where "this" is the current aspx page and should be...
0
by: =?Utf-8?B?RQ==?= | last post by:
The issue is that I have two formviews in a multiview. The second formview's objectdatasource references controls in the first formview. If the query to populate the first formview results in...
1
by: Cirene | last post by:
I have a simple usercontrol with a few controls and a few public functions. It basically is a time control - 1 textbox for Hour, 1 textbox for Minute and 1 dropdown for am/pm. Some public...
0
by: =?Utf-8?B?Sm9l?= | last post by:
I have a user control that is in a FormView using an ObjectDataSource. When the page renders the form correctly displays the data from the data source. When I then change data and hit update, my...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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)...
1
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.