Arnold Layne
asked on
Problem with upload control display and behavior
I am having problems with the display and behavior of an upload control where the button is showing up inside the upload text field instead of to the right of it and although it does allow me to browse, it doesn't show the filename and path in the text field portion after I select a file. I would also like to know how to get at the upload button itself to style it like the submit button. All code is here http://www.curriersystems.com/testUpload.aspx including all styles and there is no .cs code yet
Actually, here is my upload control code. Nothing special
<tr>
<td>
<b>Select a File to Upload</b><br />
<asp:FileUpload ID="fu" runat="server" />
</td>
</tr>
Actually, here is my upload control code. Nothing special
<tr>
<td>
<b>Select a File to Upload</b><br />
<asp:FileUpload ID="fu" runat="server" />
</td>
</tr>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It turns out that the upload button was not covering the text field, it was just a function of some browsers putting the button on the right and some putting it on the left and my color attribute manages what color the text is inside the file upload text field and that color was set to the same color as the background, so the file info was showing up, it just had the same color as the text field background.
You are right about different browsers doing whatever they want. IE gives me an ugly grey background for the text field no matter what. FF and Chrome seem to respond to styles. After reading some articles, it appears to be more of a security issue than anything else and different browsers are going to do whatever they think they need to do with this control. It is possible to still style this, with a lot of hassle and shaky workarounds, but I will leave that for later and at least now I can begin testing your other solution. Excellent, spot on info. Thanks again.
You are right about different browsers doing whatever they want. IE gives me an ugly grey background for the text field no matter what. FF and Chrome seem to respond to styles. After reading some articles, it appears to be more of a security issue than anything else and different browsers are going to do whatever they think they need to do with this control. It is possible to still style this, with a lot of hassle and shaky workarounds, but I will leave that for later and at least now I can begin testing your other solution. Excellent, spot on info. Thanks again.
ASKER