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

active-x controls with runat="server"

Hi,

I have a page that contains the following

<div runat="server" id="Pikea">
<object runat="server" id="PiTV" style="width:560px; height:560px"
classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" VIEWASTEXT>
</object>
</div>

This all worked beautifully without the runat="server", but as soon as I
added that, it started comming up with the error

Parser Error Message: Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Does anyone know what is causing this, and how to fix it?

Thanks,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
(delete NOSPAM. to email)
Nov 19 '05 #1
6 2691
Hi Martin,

I'm afraid this won't work. It seems that the ASPX-Parser recognizes this
tag as a Server object. You can define object-instances this way, I GUESS. At
least "Windows Script Components" use it the way.

Create your own control and you're done.

Regards
Patrick

"Martin Eyles" wrote:
Hi,

I have a page that contains the following

<div runat="server" id="Pikea">
<object runat="server" id="PiTV" style="width:560px; height:560px"
classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" VIEWASTEXT>
</object>
</div>

This all worked beautifully without the runat="server", but as soon as I
added that, it started comming up with the error

Parser Error Message: Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Does anyone know what is causing this, and how to fix it?

Thanks,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
(delete NOSPAM. to email)

Nov 19 '05 #2
"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:<B1**********************************@microso ft.com>...
Hi Martin, I'm afraid this won't work. It seems that the ASPX-Parser recognizes this tag as a Server object.
Ok. If I take out the runat, can I reference it via the <div runat="server"
id="Pikea">

i.e. is there something in Pikea.controls I can use?
You can define object-instances this way, I GUESS. At least "Windows Script Components" use it the way. Create your own control and you're done.


Sorry, don't understand what you mean. The control I am using is an ActiveX
control that I already have, and it is being added client side. All I want
to add server side is the <param> tags.

Thanks,

Martin
Nov 19 '05 #3


"Martin Eyles" wrote:
"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:<B1**********************************@microso ft.com>...
Hi Martin,

I'm afraid this won't work. It seems that the ASPX-Parser recognizes this

tag as a Server object.


Ok. If I take out the runat, can I reference it via the <div runat="server"
id="Pikea">


You can acces the div, but not the child-controls. The ASPX-parser will add
a Literalcontrol for all text between the <div runat="server" ...> and
</div>. Not single controls for each param.

i.e. is there something in Pikea.controls I can use?
You can define object-instances this way, I GUESS. At
least "Windows Script Components" use it the way.


Create your own control and you're done.


Sorry, don't understand what you mean. The control I am using is an ActiveX
control that I already have, and it is being added client side. All I want
to add server side is the <param> tags.


You should write a Server-Control, which renders a <object>-tag on the
client-side. There you can specify all <param>-tags needed for your object.

Thanks,

Martin

Nov 19 '05 #4
"Patrick" <Pa*****@discussions.microsoft.com> wrote:
"Martin Eyles" wrote:
"Patrick" <Pa*****@discussions.microsoft.com> wrote:
I'm afraid this won't work. It seems that the ASPX-Parser recognizes
this
tag as a Server object.
Ok. If I take out the runat, can I reference it via the <div runat="server" id="Pikea">


You can acces the div, but not the child-controls. The ASPX-parser will

add a Literalcontrol for all text between the <div runat="server" ...> and
</div>. Not single controls for each param.
i.e. is there something in Pikea.controls I can use?
You can define object-instances this way, I GUESS. At

least "Windows Script Components" use it the way.

Create your own control and you're done.


Sorry, don't understand what you mean. The control I am using is an ActiveX control that I already have, and it is being added client side. All I want to add server side is the <param> tags.


You should write a Server-Control, which renders a <object>-tag on the
client-side. There you can specify all <param>-tags needed for your

object.

I took out the object tag, leaving just the div tag, and have added this
code to the page's .cs file.

System.Web.UI.HtmlControls.HtmlGenericControl PiTV;
PiTV=new System.Web.UI.HtmlControls.HtmlGenericControl();
PiTV.TagName="object";
PiTV.ID="PiTV";
PiTV.Attributes.Add("classid","clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}"
);
PiTV.Style.Add("width","560px");
PiTV.Style.Add("height","560px");
Pikea.Controls.Add(PiTV);

When you say to put it in a server control, do you mean an .ascx file? What
are the benefits of doing this, over doing the above?

Thanks,
Martin

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 19 '05 #5
Hi

Use classid="{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" or
classid="3DF152A5-521D-4330-A8DC-1424CEB66BAA" not
classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}"

Regards,

Daniel Roth
MCSD.NET


"Martin Eyles" <ma**********@NOSPAM.bytronic.com> wrote in message news:<11************@corp.supernews.com>...
Hi,

I have a page that contains the following

<div runat="server" id="Pikea">
<object runat="server" id="PiTV" style="width:560px; height:560px"
classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" VIEWASTEXT>
</object>
</div>

This all worked beautifully without the runat="server", but as soon as I
added that, it started comming up with the error

Parser Error Message: Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Does anyone know what is causing this, and how to fix it?

Thanks,
Martin

Nov 19 '05 #6
"Daniel Roth" <da********@gmail.com> wrote in message
news:71**************************@posting.google.c om...
Hi

Use classid="{3DF152A5-521D-4330-A8DC-1424CEB66BAA}" or
classid="3DF152A5-521D-4330-A8DC-1424CEB66BAA" not
classid="clsid:{3DF152A5-521D-4330-A8DC-1424CEB66BAA}"

Regards,

Daniel Roth
MCSD.NET


This does NOT work. The error goes away, but so does the
<object.......></object> in the output html.

To see what I used as the final solution, look at my last reply to patrick
in this thread.

Cheers,
ME

--
Martin Eyles
ma**********@NOSPAM.bytronic.com
Nov 19 '05 #7

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

Similar topics

1
by: Steve Jenkins | last post by:
Hi, Wonder if anyone can help. I have a client who would like to have a form-to-mail on their website, but, are concerned about the security of emails sent by such a form. In the passed I...
1
by: d.jpr | last post by:
running the following script (bottom mail) results after a few minutes in an timeout error Error Type: Active Server Pages, ASP 0113 (0x80004005) The maximum amount of time for a script to...
0
by: chan fookmun via .NET 247 | last post by:
Hi everyone, i have an ADAM(Active Directory Application Mode) instance inwindows xp. However when i want to create a new attribute andupdate into the disk eg. using the CommitChanges() method,...
5
by: Bruce Schechter | last post by:
I just started to develop an ASP.NET application in vs.net 2003 . But each time I try to execute the application (which is basically empty so far), I get a dialog box titled "Microsoft Development...
20
by: Wes Groleau | last post by:
I was doing update statements in SQL Server 2000. I have a table with over 16 million rows. It came from several hundred delimited text files, and two of the columns are file ID (int) and Line...
2
by: Dave Strydom | last post by:
Hi, I'm getting the following error in my event log: ============ Event Type: Error Event Source: Active Server Pages Event Category: None Event ID: 5 Date: 2007/03/09 Time: 11:50:48 AM
0
by: Glenn | last post by:
Hi All: I have written an Users Registration system that is working just fine when I point to an Active Directory running within a local VMWare instance. It's a very basic AD schema. But, when...
13
by: Kevin Liebowicz | last post by:
Yes, I wasted the past two days trying to fix this. Yes, this is on a Win2003 Server. Yes, this machine is a domain controller. Yes, I seen the dozens of KB articles like this one:...
0
by: Shadow of Socrates | last post by:
For AD Programing See below for Vista The error message &quot;A referral was returned from the server.&quot; means that the account, group, container or OU can not be found in the specified active...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.