M
mike
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("GalleryWrite1");
but it occur some error..
what's problem?
'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("GalleryWrite1");
but it occur some error..
what's problem?