Resize a webform automatically

Jan 30, 2007 05:45 · 115 words · 1 minute read captaris captaris workflow

When designing a workflow in Captaris Workflow, one of your options is to use WebForms for all the UI. When doing this, we will usually open the form to some less than useful size and the enduser will usually resize the form to be able to use it. Resizing the form automatically is easy enough to do, but I always forget what the JavaScript should look like to do that. So here it is…just stick this in the PageLoad method and set the size to the right size for that form. Easy… Hopefully next time I need it, I won’t have to search for 10 minutes for this no-brainer…

    "<script language=JavaScript>function resize()