Dropdown List resize?

Dec 12 2005 12:41 PM
I'm trying to get this drop downlist to have a specific width, but I don't think I'm doing this right, can ya'll provide any assistance on this?

Here is the body of the ASPX page that I'm working on.

 <body>
  <div id="PageBody" runat="server">
   <script language="javascript">
    function gotoDepartment(deptUrl)
    { 
     window.location.href=deptUrl;
    }
   </script>  
   <form id="DepartmentsWebPart" method="post" Width="50px" runat="server">
    <asp:DropDownList id="DdlDepartments" runat="server" EnableViewState="False">
     <asp:ListItem Value="/Dashboard/">Select a Department</asp:ListItem>
    </asp:DropDownList>
   </form>
  </div>
 </body>

Answers (4)