473,763 Members | 8,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Captio n = 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 3930
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="<%=myVal ue%>">
</OBJECT>

"VB Programmer" <gr*********@ go-intech.com> wrote in message
news:OM******** ******@TK2MSFTN GP12.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.Captio n = 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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP10.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="<%=myVal ue%>">
</OBJECT>

"VB Programmer" <gr*********@ go-intech.com> wrote in message
news:OM******** ******@TK2MSFTN GP12.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.Captio n = 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
1093
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" VALUE="jars/myapp.jar"> line completely vanishes. Click to HTML view again, and the applet just does not load or work (as would be expected!). Re-add the vanishing line and all is well again.
4
1686
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" stored procedure, where I add a user to the database. I insert the record, and return the user's ID. I can run it just fine and it does execute the code because the user is being inserted successfully. But I can't receive any output values.
4
1954
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 the LIKE part of the test by surrounding my textbox field value with a leading and closing %.
15
1902
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 = cmd.ExecuteReader()) while (reader.Read()) { // grab values from query }
2
2513
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 are not provided, this application will default to having the uid and gid of the user and group who created it.
2
1829
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
1782
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 value (or clone, copy)? Current result: value1 value2
1
2160
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) and I URL encode the value and then explictly replace "," with "%2C". So far so good. But when i retrive this QS param value, "%2C" has already been replaced with ",". Client side brings the use to the page by setting path on window.location as...
3
2100
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
10148
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5406
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.