Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 17th, 2007, 11:28 PM
Authorized User
 
Join Date: Dec 2005
Location: Lucknow, UP, India.
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to surendraparashar
Default File Upload Control


Hi All,

I want to make file Upload Control read only that's why no one can
edit file upload text box. User can select files only with Browse..
button. Any how is it possible. Please help me





Surendra
__________________
Surendra Parashar
Gurgaon,
http://www.geocities.com/surendraparashar
  #2 (permalink)  
Old October 18th, 2007, 12:28 AM
Authorized User
 
Join Date: Aug 2007
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think, U want to validate the file path.am i correct?.
you can do with file existing.
In edit Mode, you have to show the link button to view the file.

Thanks,
Viji.

  #3 (permalink)  
Old October 18th, 2007, 02:32 AM
Authorized User
 
Join Date: Dec 2005
Location: Lucknow, UP, India.
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to surendraparashar
Default

yes, basically I want that user select only with browes button. not go to the text box and write anything with.
is there any javascript for this purpose

Surendra
  #4 (permalink)  
Old October 23rd, 2007, 06:01 AM
Friend of Wrox
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: New Delhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

Hi Surendra,

try this out !!

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

Anubhav Kumar
  #5 (permalink)  
Old October 24th, 2007, 04:57 AM
Authorized User
 
Join Date: Dec 2005
Location: Lucknow, UP, India.
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to surendraparashar
Default

Hi Sir,

It is working fine, if we are not using back space and delete key.

Surenda

Surendra
  #6 (permalink)  
Old October 26th, 2007, 04:21 AM
Friend of Wrox
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2004
Location: New Delhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default

Hi,

In a similar way you should handle other events which u want to block like Mouse events.

In this case, copy - paste thru mouse will still work !!

Anubhav Kumar
  #7 (permalink)  
Old November 6th, 2007, 07:39 AM
Authorized User
 
Join Date: Dec 2005
Location: Lucknow, UP, India.
Posts: 28
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to surendraparashar
Default


Hi,

Test

Surendra Parashar
Gurgaon, Hariyana
http://www.geocities.com/surendraparashar
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file upload control gaurav gupta ASP.NET 2.0 Professional 1 July 15th, 2008 06:45 AM
file upload control iamsunil2006 .NET Framework 2.0 1 January 21st, 2008 05:49 AM
File Upload Control retroviz BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 27th, 2007 09:40 AM
File upload control miltonsnider BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 December 12th, 2006 06:03 AM
file upload control brasi12345 ASP.NET 2.0 Professional 0 May 11th, 2006 05:47 AM



All times are GMT -4. The time now is 05:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.