By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,395 Members | 2,541 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,395 IT Pros & Developers. It's quick & easy.

Question: "PARAM" value issue

P: n/a
I created a VB6 user control with a ActiveX Knob on it. Here's the simple
code:
Public Property Get Value() As Integer
Value = CWKnob.Value
End Property
Public Property Let Value(Value As Integer)
CWKnob.Value = Value
lblValue.Caption = CWKnob.Value
End Property

When I put the user control on a webform and look the HTML I don't see
PARAMs for the "Value" value. All I see is "_ExtentX" and "_ExtentY". I
need to set this value dynamically through my webform. Here's the HTML
portion...
<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
</OBJECT>

1. What do I have to do in the user control so that it will show up as a
"PARAM"?
2. In my webform how can I change the value of the user control dynamically
(by manipulated the PARAM value)?

Thanks,
Robert
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
1) just edit html and add your parameter

<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
<PARAM NAME="Value" VALUE="49">
</OBJECT>

2) there is no direct support in asp.net. you can use a literal html control
and set the inner html or use <%= %>

<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
<PARAM NAME="Value" VALUE="<%=myValue%>">
</OBJECT>

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
I created a VB6 user control with a ActiveX Knob on it. Here's the simple
code:
Public Property Get Value() As Integer
Value = CWKnob.Value
End Property
Public Property Let Value(Value As Integer)
CWKnob.Value = Value
lblValue.Caption = CWKnob.Value
End Property

When I put the user control on a webform and look the HTML I don't see
PARAMs for the "Value" value. All I see is "_ExtentX" and "_ExtentY". I
need to set this value dynamically through my webform. Here's the HTML
portion...
<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
</OBJECT>

1. What do I have to do in the user control so that it will show up as a
"PARAM"?
2. In my webform how can I change the value of the user control dynamically (by manipulated the PARAM value)?

Thanks,
Robert

Nov 17 '05 #2

P: n/a
BTW I'd like to avoid scripting if possible. Can I set the value of a PARAM
through VB.NET code on a webform?

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:ep**************@tk2msftngp13.phx.gbl...
Thanks. I think I recall using InnerHtml or something to set the value of
the PARAM through code. Can someone post an example on how to do this or
just let me know?

"bruce barker" <no***********@safeco.com> wrote in message
news:Ob**************@TK2MSFTNGP10.phx.gbl...
1) just edit html and add your parameter

<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
<PARAM NAME="Value" VALUE="49">
</OBJECT>

2) there is no direct support in asp.net. you can use a literal html control
and set the inner html or use <%= %>

<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
<PARAM NAME="Value" VALUE="<%=myValue%>">
</OBJECT>

"VB Programmer" <gr*********@go-intech.com> wrote in message
news:OM**************@TK2MSFTNGP12.phx.gbl...
I created a VB6 user control with a ActiveX Knob on it. Here's the simple code:
Public Property Get Value() As Integer
Value = CWKnob.Value
End Property
Public Property Let Value(Value As Integer)
CWKnob.Value = Value
lblValue.Caption = CWKnob.Value
End Property

When I put the user control on a webform and look the HTML I don't see
PARAMs for the "Value" value. All I see is "_ExtentX" and "_ExtentY". I need to set this value dynamically through my webform. Here's the HTML portion...
<OBJECT id="ucMyKnob" classid="clsid:7..." name="ucMyKnob" VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="3228">
<PARAM NAME="_ExtentY" VALUE="2937">
</OBJECT>

1. What do I have to do in the user control so that it will show up
as a "PARAM"?
2. In my webform how can I change the value of the user control

dynamically
(by manipulated the PARAM value)?

Thanks,
Robert



Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.