473,325 Members | 2,805 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,325 software developers and data experts.

Question: "PARAM" value issue

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
2 3917
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michael | last post by:
After trying to load my java applet from <OBJECT> tag (rather than <APPLET> tag), it renders fine, except when you click between the DESIGN view then back to HTML view, the <PARAM NAME="ARCHIVE"...
4
by: Tifer | last post by:
Hello, I'm still new to the whole .Net thing and I'm having a problem with something that should be so simple -- executing a query and returning an output parameter. It's a standard "Add"...
4
by: mosscliffe | last post by:
I have been messing with the above all afternoon. I must just be thick I am using an AccessDataSource I have tried modifying the select but I can not find the right syntax to concatenate...
15
by: wizofaus | last post by:
I have a chunk of code which is essentially IDbCommand cmd = db.CreateCommand(); cmd.CommandText = "SELECT X, Y, Count(*) FROM Foo WHERE Z = 1 GROUP BY X, Y"; using (IDataReader reader =...
2
by: georgeryoung | last post by:
I'm starting to read about twisted and I keep seeing things like: def __init__(self, name, uid=None, gid=None, authorizer=None, authorizer_=None): """Initialize me. If uid and gid arguments...
2
by: vag | last post by:
This is going to be easy for any of you who is experienced. What is wrong with the following query? Select Company from Generalview Where Company Like '%'@search'%'
4
by: Everton Berz | last post by:
Hi, In the follow program I would like to have the parameter "c" in method "doSomething" as a value parameter, but it's running as a reference parameter. Why? How can I get parameter "c" as a...
1
by: N | last post by:
I am passing URL encoded value in query string and then on server side I process this query string. There is one situation that is bugging me. The value from client side can contain "," (commas)...
3
by: HDclubber | last post by:
I got this working script on VB.NET which createobject at remote server. i want to write it in C# - how can it be done ? VB.net code: oObj = CreateObject("aaa.bbb", "10.10.20.30")
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.