Aligning asp Listbox (again!)
Okay I got an answer on this once, and I have been trying it again, but it
doesn't work! I thought it did (it does for textboxes but NOT for Listbxes)
here is the HTML: (the listbox is in an html table...
<td colspan="3" align="center">
<asp:ListBox id="lst_exist_fleet" runat="server"
Here is the code that I have tried and am trying in VB.net code-behind:
I've tried this both on PreRender and on PageLoad and tried both ways...
lst.Attributes.Add("style", "text-align: center;")
Neither of these works for a listbox. Please, can anyone help?
|All times are GMT. The time now is 06:35 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.