Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
 
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.

 
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
 
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
 
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
 
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
 
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




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





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