FileUpload width property not working


This issue normally comes in Firefox. In IE, setting the css width will take care of the width of the file upload control. In Firefox, you need to use the size property to set the width of the fileupload, as Firefox rendering engine does not set the width on the width property of the control. The solution would look like:

<asp:FileUpload ID=”fuCtgMem” runat=”server” CssClass=”file” size=”31″ /> 

Size is not a pixel value. Hence you have keep checking the proper value for this, in FF. This is the case with the html fileupload control also. Just set the size property and voila! It works in FF.

Feel free to leave a reply here...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s