title: ASP.NET auto width control
body: <p>I have an ASP.NET control, for example a DropDownList. I want to set the width of the control to <code>auto</code>. How do I achieve this? The <code>Width</code> property in ASP.NET control does not seem to accept <code>auto</code>, but it can only accept like percentage, pixels, and points.</p>
  
  <p>I know I can make some workaround by specifying <code>style="width:auto"</code> as the control's attribute, and as this attribute is not a valid attribute for the control, it will not be parsed by asp.net and hence passed directly to browser. Is there a more proper way to do this?</p>