M
Martin Eyles
Hi,
I want to have an <object> tag in my .aspx file, so that it is shown as part
of my webpage. I want to add data to the "data" attribute using server side
code, so I thought I would add the runat="server" attribute. In order for
ASP.net to treat this as a generic html control, I have declared it in my
..aspx.vb codebehind file as
Protected WithEvents myObjectTag As
System.Web.UI.HtmlControls.HtmlGenericControl
Unfortunatley I get the following error when I run the code
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: An object tag must contain a Class, ClassID or ProgID
attribute.
Does anyone have any idea how to prevent this happening?
Thanks,
Martin
I want to have an <object> tag in my .aspx file, so that it is shown as part
of my webpage. I want to add data to the "data" attribute using server side
code, so I thought I would add the runat="server" attribute. In order for
ASP.net to treat this as a generic html control, I have declared it in my
..aspx.vb codebehind file as
Protected WithEvents myObjectTag As
System.Web.UI.HtmlControls.HtmlGenericControl
Unfortunatley I get the following error when I run the code
Parser Error
Description: An error occurred during the parsing of a resource required to
service this request. Please review the following specific parse error
details and modify your source file appropriately.
Parser Error Message: An object tag must contain a Class, ClassID or ProgID
attribute.
Does anyone have any idea how to prevent this happening?
Thanks,
Martin