PC Review


Reply
Thread Tools Rate Thread

<asp:FileUpload> produces different text boxes on different browsers.

 
 
AAaron123
Guest
Posts: n/a
 
      12th Sep 2009
<asp:FileUpload ID="FileUploadGetZip" runat="server" Width="750px"
Style="width: 750px;" />

IE8 makes a textbox the specified size.

Firefox makes one that is too small.

GoogleChrome makes no box at all.



Is there a way to make them all produce a reasonable text box so I can
verify the file picked before I upload it.



Thanks

 
Reply With Quote
 
 
 
 
AAaron123
Guest
Posts: n/a
 
      13th Sep 2009
Mark Rae [MVP] wrote:
> "AAaron123" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>> Is there a way to make them all produce a reasonable text box so I
>> can verify the file picked before I upload it.

>
> http://tinyurl.com/ok2hny


I found in the links a suggestion to use the size attribute.
This works in FF but not IE8 so I added Style/width and it now works in
both.
GoogleChrome doesn't display the text at all so maybe there is no hope
there.

However, when I tried to look up "size" neither asp:FileUpload nor
input/file has such an attribute.
I wanted to read because I like to read about whatever I use but also
because of the cut and try value I found to work for size. The element
shown below displays about the same size in FF and IE8.
Note the 100px vs 750px!

<asp:FileUpload runat="server" Size="100px" Style="width:750px" />

I removed the ID


Why can't I find the size attribute documentation?

Why does 100px disply like it was 750px?


Thanks




 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form Text Boxes - Copy format of text boxes NDBC Microsoft Excel Misc 3 2nd Jul 2009 02:02 AM
URGENT: pdf produces text boxes when Save as to .doc Janet A. Thompson Microsoft Word Document Management 2 12th Mar 2009 06:38 AM
Setting an array of text boxes equal to individual form text boxes lcaretto Microsoft Excel Programming 6 19th Sep 2008 04:19 PM
Aligning check boxes and text boxes with regular text =?Utf-8?B?c3NiZWxs?= Microsoft Word Document Management 1 28th Mar 2007 02:12 AM
RE: Aligning check boxes and text boxes with regular text =?Utf-8?B?U2ltb24gSm9uZXMgW01TRExd?= Microsoft Word Document Management 0 28th Mar 2007 12:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 AM.