Ask a Question related to ASP.NET General, Design and Development.
-
Harry #1
Setting textbox width from server side
Hi
I'm trying to set the width of a textbox from the server side. I've tried
dim tb as new Textbox()
tb.width = "80"
but this gives me an error saying that the
"value of string cannot be converted to 'System.Web.UI.WebControls.Unit'"
How would I set the width? I've also tried
tb.width.pixels(80) and that does not seem to change the width.
Thanks
Harry
Harry Guest
-
Client-Side Validation of asp:TextBox with Javascript
Hi - I'm trying to do client-side validation of the text in a Asp.Net textbox control using javascript. My page has the following: <form... -
Programmatically setting 100% width
Is there a way to set a width of 100% for dynamically created components? ... -
ASP:TextBox Width doesn't work with Firefox 1.0
I created a Web Form in VS2003 with some ASP:TextBox components on it. In Windows with IE6, everything looks great. However, when I tested the... -
How to stop font width expanding when textbox is resized
How to stop font width expanding when textbox is resized Hi, I am new to this Forum and to Fireworks MX. I am trying to create buttons and... -
runat="server"....a simple html textbox or a webform server textbox...that is the question.
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the... -
Onur Bozkurt #2
Re: Setting textbox width from server side
dim tb as new Textbox()
tb.width = system.web.ui.webcontrols.unit.pixel(80)
"Harry" <NoSpam_shao_lin_monk@yahoo.com> wrote in message
news:#MDPVe$ODHA.1624@tk2msftngp13.phx.gbl...> Hi
>
> I'm trying to set the width of a textbox from the server side. I've tried
>
> dim tb as new Textbox()
> tb.width = "80"
>
> but this gives me an error saying that the
> "value of string cannot be converted to 'System.Web.UI.WebControls.Unit'"
>
> How would I set the width? I've also tried
>
> tb.width.pixels(80) and that does not seem to change the width.
>
> Thanks
> Harry
>
>
>
>
Onur Bozkurt Guest
-
Harry #3
Re: Setting textbox width from server side
Thanks!
"Onur Bozkurt" <onur.bozkurt@softhome.net> wrote in message
news:uXiJaj$ODHA.1552@TK2MSFTNGP10.phx.gbl...tried> dim tb as new Textbox()
> tb.width = system.web.ui.webcontrols.unit.pixel(80)
>
>
> "Harry" <NoSpam_shao_lin_monk@yahoo.com> wrote in message
> news:#MDPVe$ODHA.1624@tk2msftngp13.phx.gbl...> > Hi
> >
> > I'm trying to set the width of a textbox from the server side. I've'System.Web.UI.WebControls.Unit'"> >
> > dim tb as new Textbox()
> > tb.width = "80"
> >
> > but this gives me an error saying that the
> > "value of string cannot be converted to>> >
> > How would I set the width? I've also tried
> >
> > tb.width.pixels(80) and that does not seem to change the width.
> >
> > Thanks
> > Harry
> >
> >
> >
> >
>
Harry Guest



Reply With Quote

