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

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

Joe
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
Dec 10 '07 #1
3 1348
On Dec 9, 7:30 pm, "Joe" <jbassk...@noemail.noemailwrote:
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.
A flash player is client side, not server side.

Do you mean that you've put your user control IN a templatefield?
Dec 10 '07 #2
Joe
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>
"Larry Bud" <la**********@yahoo.comwrote in message
news:cc**********************************@18g2000h sf.googlegroups.com...
On Dec 9, 7:30 pm, "Joe" <jbassk...@noemail.noemailwrote:
>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.

A flash player is client side, not server side.

Do you mean that you've put your user control IN a templatefield?


Dec 10 '07 #3
Joe
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.
"Joe" <jb*******@noemail.noemailwrote in message
news:ug****************@TK2MSFTNGP06.phx.gbl...
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

Dec 10 '07 #4

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

Similar topics

1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
4
by: Michael | last post by:
Dear all .. If I want to use develop a user control and declare a public property which the type is System.Windows.Forms.GridTableStylesCollection For example : Public Class LookAndView...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
1
by: clickon | last post by:
For testing purposes i have got a 2 step WizardControl. Eqach step contains a text box, TextBox1 and TextBox2 respectively. If i put the following code in the respective activate event handlers for...
9
by: abprules | last post by:
Can somehow tell me the best way for multi user development to occur in MS Access? The situation is: We are creating a new database for a small company. There are 2 of us who want to...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
4
by: Tomasz | last post by:
Hello Developers, Here is interesting problem I just came across: how do I wire a GridView control programmatically? Here is my sample code using Object Data Source: protected void...
0
by: cmrchs | last post by:
Hi, I'm trying out Databinding to a Data Acces Layer using a GridView and ObjectDataSource-control The Update works fine but the Delete-method doesn't ??? <asp:GridView ID="GridView1"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.