Ask a Question related to ASP.NET General, Design and Development.
-
Tina #1
image webform control
I am trying to adjust the size of an image web control but if I try to say
myimage.height = 200 it says that an integer cannot be converted to a
webcontrol unit. I also tried a ctype cast but that didn't work either. Is
there a way to change the size at run time?
I need to do this because the control distorts the aspect ratio of a .jpg
file to fit the design time size of the control. I'm trying to set it to
the size of the jpg width and height.
Thanks,
T
Tina Guest
-
Help: ASP.NET Webform using VB.NET User Control
I created a VB.NET user control which uses a nonmanaged ActiveX control. I built it as 'mycontrol.dll'. In my ASP.NET webform I'm trying to add... -
How do I make my control show up in the webform?
I built my control. It shows up and works at runtime. But at design time, it does not show up on the page. How do I make it show on the page at... -
does webform control equal to asp.net control?
If no, could you show me the differentia? thanks, ThxBruin -
Including WebForm Image Control in a Webform Table Control
What is the code for including an image control in a Table control of a WebForm ???? regards -
HELP: ActiveX Control on webform
I am going to use an ActiveX control on my webform. 1. How can I set it up so that if a user views the web page and doesn't have the ActiveX... -
Steve C. Orr, MCSD #2
Re: image webform control
Try this:
myimage.height = System.Drawing.Unit.Pixel(200)
Here's more info:
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsunitclasspixeltopic.asp[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Tina" <tinamseaburn@excite.com> wrote in message
news:%23cNkcJ7VDHA.1928@TK2MSFTNGP12.phx.gbl...Is> I am trying to adjust the size of an image web control but if I try to say
> myimage.height = 200 it says that an integer cannot be converted to a
> webcontrol unit. I also tried a ctype cast but that didn't work either.> there a way to change the size at run time?
>
> I need to do this because the control distorts the aspect ratio of a .jpg
> file to fit the design time size of the control. I'm trying to set it to
> the size of the jpg width and height.
> Thanks,
> T
>
>
Steve C. Orr, MCSD Guest



Reply With Quote

