Ask a Question related to ASP.NET General, Design and Development.
-
VB Programmer #1
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
-
<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"... -
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... -
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? -
"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,... -
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)... -
bruce barker #2
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...dynamically> 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> (by manipulated the PARAM value)?
>
> Thanks,
> Robert
>
>
bruce barker Guest
-
VB Programmer #3
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...I> 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...> control> > 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> simple> > 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> > > 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".HTML> > > need to set this value dynamically through my webform. Here's theas> > > 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> a>> > dynamically> > > "PARAM"?
> > > 2. In my webform how can I change the value of the user control> >> > > (by manipulated the PARAM value)?
> > >
> > > Thanks,
> > > Robert
> > >
> > >
> >
>
VB Programmer Guest



Reply With Quote

