Use File Upload control with read only text box.

October 24, 2007 at 12:44 pm | In Dot Net | 1 Comment

Query :
File Upload Control read only so that no one can
edit file upload text box.
User can select files only with Browse button.

Solution :
Use javascript for this purpose

<input id=”File1″ type=”file” onkeypress=”javascript: return false;” />
 

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Thanks man! It worked for me but on onkeydown event!

    Laxman.


Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.