Professional Web Applications Themes

Setting the size of a webform - ASP.NET General

Hi there! :O) I'm looking for way to set the size of a webform. It would like it to work similarly to the ScaleHeight and ScaleWidth properties in VB. Those properties actually set the size of the working area *in* the form, excluding the window frame and toolbars et menus. I've tried this : <script language="javascript">window.resizeTo(300, 400)</script> but it set the window size to 300 x 400 regardless of the frame, toolbars and menus dimension... I would also like to make the webform unsizable and modal if possible... is there a way? any help would be much appreciated :O) -- ...

  1. #1

    Default Setting the size of a webform

    Hi there! :O)

    I'm looking for way to set the size of a webform. It would like it to work
    similarly to the ScaleHeight and ScaleWidth properties in VB. Those
    properties actually set the size of the working area *in* the form,
    excluding the window frame and toolbars et menus.

    I've tried this :

    <script language="javascript">window.resizeTo(300, 400)</script>

    but it set the window size to 300 x 400 regardless of the frame, toolbars
    and menus dimension...

    I would also like to make the webform unsizable and modal if possible... is
    there a way?

    any help would be much appreciated :O)

    --
    Best Regards
    Yanick Lefebvre


    Zoury Guest

  2. #2

    Default Re: Setting the size of a webform

    Thanks for the quick reply John! :O)

    I'm actually trying to implement a DialogBox... and i'm affraid this is a
    little more complicated than I thoughts. Have you done this kind of stuff
    before?

    I'll also take a look at the javascript group as you suggested.

    Thanks again

    --
    Best Regards
    Yanick Lefebvre


    Zoury Guest

  3. #3

    Default Re: Setting the size of a webform

    Hi Yanick,

    Based on my research and experience, I think that what you want is
    window.showModalDialog. Please refer to the following URL for the detailed
    informaiton:

    http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
    erence/methods/showmodaldialog.asp

    The Page.RegisterStartupScript method allows ASP.NET server controls to
    emit client-side script blocks in the Page. Please refer to the following
    URL for the detailed informaiton:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
    frlrfsystemwebuipageclassregisterstartupscripttopi c.asp

    Does it answer your question? If I have misunderstood your concern, please
    let me know.

    Best regards,

    Jacob Yang
    Microsoft Online Partner Support
    <MCSD>
    Get Secure! C www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    Jacob Guest

  4. #4

    Default Re: Setting the size of a webform

    Hi Jacob! :O)

    Thanks for the help. I'll run some test and give you feed back then, but it
    seems to be interresting. ;O)


    --
    Best Regards
    Yanick Lefebvre


    Zoury Guest

Similar Threads

  1. Setting page size to artboard size?
    By bongoman@adobeforums.com in forum Adobe Illustrator Macintosh
    Replies: 4
    Last Post: February 10th, 10:05 PM
  2. Setting the image as a certain size
    By javashackgirl in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 6
    Last Post: September 24th, 09:09 AM
  3. Setting size of targeted window
    By ron_at_belyea webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 1
    Last Post: September 9th, 11:16 PM
  4. Setting total db size to a variable.
    By Jason Martyn in forum PHP Development
    Replies: 8
    Last Post: July 22nd, 11:49 AM
  5. Setting shared pool size and Java pool size on 9i
    By Howard J. Rogers in forum Oracle Server
    Replies: 1
    Last Post: December 11th, 09:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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