473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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
Nov 17 '05 #1
3 1722
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
Nov 17 '05 #2
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/de...thor/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/de...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.

Nov 17 '05 #3
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
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul | last post by:
Seems like this should be easy to do-need to set the position and size of a web form that is opened from a hyperlink column in a datagrid. I was guessing I could set properties in the webform...
18
by: fleemo17 | last post by:
My organization is developing a set of "standards" for websites built inhouse. The first question that comes to mind is what would be a good standard default size for <p> text? 12 point? Which...
1
by: Erik Hendrix | last post by:
Hi, I have a question here regarding setting the prefetch size. So far we took the rule that for OLTP, prefetchsize = extent size and for DSS prefetchsize = extent size * number. However,...
1
by: Zoury | last post by:
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...
1
by: Newton | last post by:
Hi, I am working with ASP.NET using C#. I put some labels, buttons and editboxes on a webform. But i need how to change a background color of the webform from the source code. In windows...
2
by: mg | last post by:
window.open (URLTarget, windowName, height=720,width=975,resizable=yes, ... lets me open a new WebForm with a specified size using JavaScript. Is there a way of doing this from code behind;...
6
by: Andre Ranieri | last post by:
I'm trying to create a login page for customers to log into our corporate website, our presidents naturally wants the user and password fields to populate from a cookie so the customer doesn't have...
3
by: ton | last post by:
How can I in VB.NET set the width of a label or textbox depending on the length of the string and/or the font size. In my control I'm showing a textbox in a tablecell, which is added to a table...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.