Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to get control id from content page

Status
Not open for further replies.

kss444

Programmer
Sep 19, 2006
306
US
First of all, I am using a 3rd party graphing control.
I am using vs 2008.

The control actual renders as a activex control, the control is in my content page, this page also has some vbscripting on it, that tracks the users mouse movements when hovering over the graph tool.

The page comes up just fine but when you move your mouse over the tool I get a vbscripting error saying it can't find the controls ID.

This is what is renderd: <OBJECT CLASSID ="clsid:31B42C4B-E28C-4E46-95C2-472203402550" DATA="ShowMeter2.aspx?Volume=1&Strength=1&Stoke=1&Symbol=MSFT&ChartSize=1" ID="PegoWeb1" HEIGHT="350" WIDTH="550"></OBJECT></td>

My id is PegoWeb1 and this is what the vbscript is looking for but I get an error saying Object required: 'PegoWeb1'

I have tried putting ct100_ in front of the name but still get the same error.

It all runs just fine if it's not in a content page, just a regular page.

Thanks for any help or ideas,
K

Ordinary Programmer
 
Yea sorry I have tried that:

In the vbscript I did <%= PegoWeb1.ClientID %>

That's what gave me ct100_contentplaceholder_

I'm beginning to think it's the control itself.
But I don't know why the code works if it's not in a content page, but a regular page.

Ordinary Programmer
 
You will have to talk to the vendor of the control to answer that question.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top