Simple Image resizing - work on stand alone, not on third party se

Discussion in 'ASP .Net Web Controls' started by ASPQuicky, Oct 13, 2004.

  1. ASPQuicky

    ASPQuicky Guest

    Trying to resize an image in the page_load, image1.width="400".

    It works when I run it on my stand alone web matrix run, but if I load the
    code on a my third party server, the code has a compiler error,

    BC30311: Value of type 'String' cannot be converted to
    'System.Web.UI.WebControls.Unit'

    Help!
     
    ASPQuicky, Oct 13, 2004
    #1
    1. Advertisements

  2. Try image1.width=Unit.Pixel(400)

    Ken


    "ASPQuicky" wrote:

    > Trying to resize an image in the page_load, image1.width="400".
    >
    > It works when I run it on my stand alone web matrix run, but if I load the
    > code on a my third party server, the code has a compiler error,
    >
    > BC30311: Value of type 'String' cannot be converted to
    > 'System.Web.UI.WebControls.Unit'
    >
    > Help!
     
    Ken Cox [Microsoft MVP], Oct 13, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Punya Narra
    Replies:
    5
    Views:
    1,976
    Itai Raz
    Feb 17, 2004
  2. greg
    Replies:
    1
    Views:
    385
    Peter Strøiman
    Oct 28, 2003
  3. Tom Hartnett

    how to create stand-alone page in VS

    Tom Hartnett, Nov 7, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    2,026
    Keith
    Nov 7, 2003
  4. Brian J. Sayatovic
    Replies:
    2
    Views:
    415
  5. Guest
    Replies:
    1
    Views:
    586
    Guest
    Sep 12, 2003
  6. ASPQuicky
    Replies:
    0
    Views:
    197
    ASPQuicky
    Oct 13, 2004
  7. Donald Canton

    Third party cookies...how do they work?

    Donald Canton, Aug 23, 2003, in forum: Javascript
    Replies:
    2
    Views:
    239
    Randell D.
    Sep 5, 2003
  8. Plotinus
    Replies:
    2
    Views:
    462
    Tad McClellan
    Dec 17, 2004
Loading...