Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: How to place password for a folder using ASP


Message #1 by "Appaji" <svappaji@h...> on Thu, 25 Jul 2002 09:59:44 +0530
is there any way to protect a folder(with password) using ASP.


Regards
=======
Sirangi Venkata Appaji
	Software Engineer
Sajeusab Software Solutions Pvt Ltd
53B,Staff Road
Gunrock Enclave
Secunderabad-500009
Ph: 91-40-7814629


-----Original Message-----
From: Greg Lipscomb [mailto:glipscomb@s...]
Sent: Thursday, July 25, 2002 12:17 AM
To: ASPToday Discuss
Subject: [asptoday_discuss] Re: Browsing for a file from the client.


there is no way to get around this. I had the same problem - it is a 
seruity feature of the input type=file html control that you are not 
allowed to set it's value.  What i did as workaround was
to make the input control as small as possible so you only see the browse 
button and then use a normal textbox along with it.  then using the 
onchange event of the input control i call some javascript which sets the 
value of the textbox to the value selected by the user from the input 
control.  this way you can set the value of the textbox without any 
problems on postbacks and things like that.  

if anyone has come up with a better solution i would really like to know 
about it.

hope that helps.

Greg
> Does anyone know of a way to allow user of a web page to browse for and 
s> elect a file?  Something like the Windows common Open File dialogue 
w> indow.

> I tried using the <input type="file"...> tag, but the value attribute is 
r> ead only.  And I need to reset the value after submitting the page.



  Return to Index