Question: "PARAM" value issue

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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


    VB Programmer Guest

  2. Similar Questions and Discussions

    1. <param name="filename" value="file:///C:/...."
      Hello, got a problem with the next code trying to load the swf from the client pc: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"...
    2. SMTP: "to" or/and "recipient" question.
      Dear Experts, I am looking at codes somebody wrote long ago and found strange codes. As I know the "to" method is just a synonym for the...
    3. firefox: <param name="menu" value="false" /> !!!
      why isn't this working in firefox to prevent menu (i.e. print) ?? Is there something I can do?
    4. "replace pages" / "rotate pages" orientation issue
      in Adobe acrobat you can open a PDF file and "replace pages" (some or all) with pages from another PDF file. it used to be that when I did this,...
    5. Question about "Public Sub" vs "Private Sub" vs "Sub"
      In my INCLUDE.INC file I have noticed that I can create subs three ways... Public Sub Test1(x) response.write(x) End Sub Private Sub Test2(x)...
  3. #2

    Default Re: Question: "PARAM" value issue

    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" <growNO-SPAM@go-intech.com> wrote in message
    news:OMZcSslRDHA.2116@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
    >
    >

    bruce barker Guest

  4. #3

    Default Re: Question: "PARAM" value issue

    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" <growNO-SPAM@go-intech.com> wrote in message
    news:epR5PAuRDHA.2316@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" <nospam_brubar@safeco.com> wrote in message
    > news:Ob11EBoRDHA.2676@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" <growNO-SPAM@go-intech.com> wrote in message
    > > news:OMZcSslRDHA.2116@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
    > > >
    > > >
    > >
    > >
    >
    >

    VB Programmer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139