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. Advertising

  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. Advertising

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,696
    Itai Raz
    Feb 17, 2004
  2. greg
    Replies:
    1
    Views:
    272
    Peter Strøiman
    Oct 28, 2003
  3. Guest
    Replies:
    1
    Views:
    477
    Guest
    Sep 12, 2003
  4. ASPQuicky
    Replies:
    0
    Views:
    112
    ASPQuicky
    Oct 13, 2004
  5. Plotinus
    Replies:
    2
    Views:
    296
    Tad McClellan
    Dec 17, 2004
Loading...

Share This Page