basic code stuff

mikem

Member
Joined
Aug 29, 2005
Messages
10
Programming Experience
1-3
why wont my machine accept the following:
(listboxname).width=226 px
 
basic stuff

Let me ask you some serious stuff.
I working on my first web site in vb net
1- how do I access a code module on the site
2-can I databind a file I created with streamwriter (txt) as opposed to mdp
lets start there
I'm being called to diner so I pick this up later
thanks mikem
 
I tried your format and got the following error
value of type 'integer' cannot be converted to 'system.web.ui.webcontrols.unit'
 
Try this...

ListBox1.Width = New System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Pixel)

you can probably also just do...

ListBox1.Width = New System.Web.UI.WebControls.Unit(100)

I think the pixel is the default unittype

jglobe
 
thanks for the
ListBox1.Width = New System.Web.UI.WebControls.Unit(100, System.Web.UI.WebControls.UnitType.Pixel)

but what does it mean, and why does it work

mikem
 
Back
Top