Showing posts with label size. Show all posts
Showing posts with label size. Show all posts

Saturday, March 31, 2012

Set bold, italic, font type etc on the textbox(multiple)?

I have problem to find the code to bold, italic, get the font type or set the size of font on the texbox. i develop forum site. when user want to send message, they need to fulfill the title and content. what i want to do same like in hotmail.com (the flexible textbox when to submit message). ThanksHi, seethis site.

set browser window size

I am trying to display my form in a fixed browser window so the user cannot change it's size, cannot minimize/maximize the window. The aspx form is for user input, and I want each user to see the same thing. (it's an internal form and everyone has the same browser). Where do I make these changes, or what code do I need? I figured it would be in the properties menu for the form, but the page margins do not make the changes I need. Any ideas on what to do?

Thanks.You can set thewindow properties from the client (i.e. note, no "runat" attribute in the script tag), only after the first page is loaded:

<SCRIPT for="window" event="onload">
window.dialogHeight = 100;
window.dialogLeft = 100;
window.dialogTop = 100;
window.dialogWidth = 100;
</SCRIPT>

Thursday, March 22, 2012

Set Label Font?

Hello,

I want to set a label text from my vb code. Something like:

MyLabel Text Font = "verdana, arial,..."
MyLabel Text Size = "12px"
MyLabel Text Bold = True

How can I do this?

Thanks,
MiguelMyLabel.CssClass="myLabelStyle"

and define the font properties in myLabelStyle css rule.

Eliyahu

"Shapper" <mdmoura*NOSPAM*@.gmail.*DELETE2SEND*com> wrote in message
news:O8C96YczFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I want to set a label text from my vb code. Something like:
> MyLabel Text Font = "verdana, arial,..."
> MyLabel Text Size = "12px"
> MyLabel Text Bold = True
> How can I do this?
> Thanks,
> Miguel
"ASP.NET Server Controls and CSS Styles"

http://msdn.microsoft.com/library/d...lscssstyles.asp

"Shapper" wrote:

> Hello,
> I want to set a label text from my vb code. Something like:
> MyLabel Text Font = "verdana, arial,..."
> MyLabel Text Size = "12px"
> MyLabel Text Bold = True
> How can I do this?
> Thanks,
> Miguel
>
MyLabel.Font.Names = "Verdana, Arial"
MyLabel.Font.Size = 10
MyLabel.Font.Bold = True

"Shapper" <mdmoura*NOSPAM*@.gmail.*DELETE2SEND*com> wrote in message
news:O8C96YczFHA.3408@.TK2MSFTNGP09.phx.gbl...
Hello,

I want to set a label text from my vb code. Something like:

MyLabel Text Font = "verdana, arial,..."
MyLabel Text Size = "12px"
MyLabel Text Bold = True

How can I do this?

Thanks,
Miguel
lblName.Attributes.Add("Style","font-face: Arial;font-size:
10pt;font-weight:bold;")

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Shapper" wrote:

> Hello,
> I want to set a label text from my vb code. Something like:
> MyLabel Text Font = "verdana, arial,..."
> MyLabel Text Size = "12px"
> MyLabel Text Bold = True
> How can I do this?
> Thanks,
> Miguel
>

Set Label Font?

Hello,
I want to set a label text from my vb code. Something like:
MyLabel Text Font = "verdana, arial,..."
MyLabel Text Size = "12px"
MyLabel Text Bold = True
How can I do this?
Thanks,
MiguelMyLabel.CssClass="myLabelStyle"
and define the font properties in myLabelStyle css rule.
Eliyahu
"Shapper" <mdmoura*NOSPAM*@.gmail.*DELETE2SEND*com> wrote in message
news:O8C96YczFHA.3408@.TK2MSFTNGP09.phx.gbl...
> Hello,
> I want to set a label text from my vb code. Something like:
> MyLabel Text Font = "verdana, arial,..."
> MyLabel Text Size = "12px"
> MyLabel Text Bold = True
> How can I do this?
> Thanks,
> Miguel
>
"ASP.NET Server Controls and CSS Styles"
http://msdn.microsoft.com/library/d...lscssstyles.asp
"Shapper" wrote:

> Hello,
> I want to set a label text from my vb code. Something like:
> MyLabel Text Font = "verdana, arial,..."
> MyLabel Text Size = "12px"
> MyLabel Text Bold = True
> How can I do this?
> Thanks,
> Miguel
>
MyLabel.Font.Names = "Verdana, Arial"
MyLabel.Font.Size = 10
MyLabel.Font.Bold = True
"Shapper" <mdmoura*NOSPAM*@.gmail.*DELETE2SEND*com> wrote in message
news:O8C96YczFHA.3408@.TK2MSFTNGP09.phx.gbl...
Hello,
I want to set a label text from my vb code. Something like:
MyLabel Text Font = "verdana, arial,..."
MyLabel Text Size = "12px"
MyLabel Text Bold = True
How can I do this?
Thanks,
Miguel
lblName.Attributes.Add("Style","font-face: Arial;font-size:
10pt;font-weight:bold;")
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
"Shapper" wrote:

> Hello,
> I want to set a label text from my vb code. Something like:
> MyLabel Text Font = "verdana, arial,..."
> MyLabel Text Size = "12px"
> MyLabel Text Bold = True
> How can I do this?
> Thanks,
> Miguel
>

Set Maximum Pool Size in web.config

I would like to allow more connection to SQL servers from the web
application.

Do you know what is the code to set maximum pool size in web.config file?

ThanksA sample connection string for SQL Server:
"Data Source=(local);Initial Catalog=pubs;User ID=sa;Password=;Max Pool Size=75;Min Pool Size=5;"

Tiendq,
tien@.tienonsoftware.com
You can set that in SQL Connection String...e.g

"Server=(local); ........; Database=Northwind; Max Pool Size=45; Min Pool Size=10

When a connection is opened and a pool is created, multiple connections are added to the pool to bring the connection count to the configured minimum level. Connections can be subsequently added to the pool up to the configured maximum pool count. When the maximum count is reached, new requests to open a connection are queued for a configurable duration.

Avneesh Kuma
avneesh@.helloprojects.com
Default value of Max Pool size is 100. You can set it to a higher number also so far as performance of the server is not a issue..

A Detailed article for the same can be found at
http://techrepublic.com.com/5100-6329_11-5034285-2.htm

Regard
Avneesh
Is there any issue if I set the maximum to be 1000?

"Do Quyet Tien" <tien@.tienonsoftware.com> wrote in message
news:47D18900-BF7C-4141-9753-452ED3D57EA0@.microsoft.com...
> A sample connection string for SQL Server:
> "Data Source=(local);Initial Catalog=pubs;User ID=sa;Password=;Max Pool
Size=75;Min Pool Size=5;"
> Tiendq,
> tien@.tienonsoftware.com

Tuesday, March 13, 2012

Set Page Size

In VSNET how do you set the overall size of a web form?
WayneYou can open a new window at a specific size using javascript such as this:
a=window.open('MyPage.aspx','MyWindow',"height=200,width=400")
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
news:OAD7GrUOEHA.892@.TK2MSFTNGP09.phx.gbl...
> In VSNET how do you set the overall size of a web form?
> Wayne
>
Thanks Steve;
Does this Script get called from the PageLoad event?
Wayne
"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:%23$9aWtUOEHA.640@.TK2MSFTNGP12.phx.gbl...
> You can open a new window at a specific size using javascript such as
this:
> a=window.open('MyPage.aspx','MyWindow',"height=200,width=400")
> There are all kinds of options for setting window properties such as
window
> size and toolbar visibility.
> Here's more info:
>
http://msdn.microsoft.com/workshop/...hods/open_0.asp
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
> news:OAD7GrUOEHA.892@.TK2MSFTNGP09.phx.gbl...
>
This is client side code that must be executed in the browser, not on the
server.
You could call the code from a click event, or wherever you want in your
client side code.\
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
news:uQJnJEVOEHA.3044@.TK2MSFTNGP10.phx.gbl...
> Thanks Steve;
> Does this Script get called from the PageLoad event?
> Wayne
>
> "Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
> news:%23$9aWtUOEHA.640@.TK2MSFTNGP12.phx.gbl...
> this:
> window
>
http://msdn.microsoft.com/workshop/...hods/open_0.asp
>
OK - Thanks
Wayne
"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:uLPgR3VOEHA.3712@.TK2MSFTNGP10.phx.gbl...
> This is client side code that must be executed in the browser, not on the
> server.
> You could call the code from a click event, or wherever you want in your
> client side code.\
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
> news:uQJnJEVOEHA.3044@.TK2MSFTNGP10.phx.gbl...
>
http://msdn.microsoft.com/workshop/...hods/open_0.asp
>

Set Page Size

In VSNET how do you set the overall size of a web form?

WayneYou can open a new window at a specific size using javascript such as this:
a=window.open('MyPage.aspx','MyWindow',"height=200,width=400")
There are all kinds of options for setting window properties such as window
size and toolbar visibility.
Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
news:OAD7GrUOEHA.892@.TK2MSFTNGP09.phx.gbl...
> In VSNET how do you set the overall size of a web form?
> Wayne
Thanks Steve;
Does this Script get called from the PageLoad event?

Wayne

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:%23$9aWtUOEHA.640@.TK2MSFTNGP12.phx.gbl...
> You can open a new window at a specific size using javascript such as
this:
> a=window.open('MyPage.aspx','MyWindow',"height=200,width=400")
> There are all kinds of options for setting window properties such as
window
> size and toolbar visibility.
> Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
> news:OAD7GrUOEHA.892@.TK2MSFTNGP09.phx.gbl...
> > In VSNET how do you set the overall size of a web form?
> > Wayne
This is client side code that must be executed in the browser, not on the
server.
You could call the code from a click event, or wherever you want in your
client side code.\

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
news:uQJnJEVOEHA.3044@.TK2MSFTNGP10.phx.gbl...
> Thanks Steve;
> Does this Script get called from the PageLoad event?
> Wayne
>
> "Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
> news:%23$9aWtUOEHA.640@.TK2MSFTNGP12.phx.gbl...
> > You can open a new window at a specific size using javascript such as
> this:
> > a=window.open('MyPage.aspx','MyWindow',"height=200,width=400")
> > There are all kinds of options for setting window properties such as
> window
> > size and toolbar visibility.
> > Here's more info:
http://msdn.microsoft.com/workshop/...hods/open_0.asp
> > --
> > I hope this helps,
> > Steve C. Orr, MCSD, MVP
> > http://Steve.Orr.net
> > "Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
> > news:OAD7GrUOEHA.892@.TK2MSFTNGP09.phx.gbl...
> > > In VSNET how do you set the overall size of a web form?
> > > > Wayne
> >
OK - Thanks

Wayne

"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:uLPgR3VOEHA.3712@.TK2MSFTNGP10.phx.gbl...
> This is client side code that must be executed in the browser, not on the
> server.
> You could call the code from a click event, or wherever you want in your
> client side code.\
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
> news:uQJnJEVOEHA.3044@.TK2MSFTNGP10.phx.gbl...
> > Thanks Steve;
> > Does this Script get called from the PageLoad event?
> > Wayne
> > "Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
> > news:%23$9aWtUOEHA.640@.TK2MSFTNGP12.phx.gbl...
> > > You can open a new window at a specific size using javascript such as
> > this:
> > > a=window.open('MyPage.aspx','MyWindow',"height=200,width=400")
> > > There are all kinds of options for setting window properties such as
> > window
> > > size and toolbar visibility.
> > > Here's more info:
> http://msdn.microsoft.com/workshop/...hods/open_0.asp
> > > > --
> > > I hope this helps,
> > > Steve C. Orr, MCSD, MVP
> > > http://Steve.Orr.net
> > > > > "Wayne Wengert" <wayneDONTWANTSPAM@.wengert.com> wrote in message
> > > news:OAD7GrUOEHA.892@.TK2MSFTNGP09.phx.gbl...
> > > > In VSNET how do you set the overall size of a web form?
> > > > > > Wayne
> > > > > >