Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

User control is GridView causing Object doesn't support this property or method exception

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joe - 10 Dec 2007 00:30 GMT
I'm trying to use my UserControl as a TemplateField in a GridView but I'm
getting the exception:
"Object doesn't support this property or method exception".

The user control has a flash player in it. I'm thinking this might be
causing the problem but I can't really debug it to find out exactly what it
is complaining about.

Any suggestions?

-Joe
Larry Bud - 10 Dec 2007 00:45 GMT
> I'm trying to use my UserControl as a TemplateField in a GridView but I'm
> getting the exception:
[quoted text clipped - 3 lines]
> causing the problem but I can't really debug it to find out exactly what it
> is complaining about.

A flash player is client side, not server side.

Do you mean that you've put your user control IN a templatefield?
Joe - 10 Dec 2007 00:51 GMT
Yes. I have my user control which has an object tag for the flash player.
I'm using the user control in a template field:
<ItemTemplate>
   <user:MyControl/>
</ItemTemplate>

>> I'm trying to use my UserControl as a TemplateField in a GridView but I'm
>> getting the exception:
[quoted text clipped - 8 lines]
>
> Do you mean that you've put your user control IN a templatefield?
Joe - 10 Dec 2007 01:03 GMT
Well I sort of have it working now. I had a script to update the movie and
it seems there may have been some type of a conflict.

> I'm trying to use my UserControl as a TemplateField in a GridView but I'm
> getting the exception:
[quoted text clipped - 7 lines]
>
> -Joe

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.