[Mono-devel-list] (no subject)

Stacey Abshire sabshire at yahoo.com
Fri Apr 23 08:22:41 EDT 2004


I believe it is a security measure....  Are you filling the value in
programatically?  If so thats the reason.  YOu can't fill a file input in
programtically because anyone could then grab any file they wanted from your
computer without your permission.

Stacey


--- donaldi sp <don_aldi at yahoo.com> wrote:
> Hi,
> 
> I have a problem with HtmlInputFile control in Mono.
> 
> cmdBrowse is HtmlInputFile
> arrFiles is static ArryList
> lstFiles is ListBox
> 
> In my Page I got a HtmlInputFile box fill with path
> like "E:\...." when I click Add Button which contain
> this code below , I got NullRefences Error.
> 
> if(Page.IsPostBack)
> {
> 				if(cmdBrowse.PostedFile.FileName != "")
> {
> 					arrFiles.Add(cmdBrowse);
> 				
> lstFiles.Items.Add(cmdBrowse.PostedFile.FileName);
> }
> }
> 
> I check the cmdBrowse.PostedFile is null,
> 
> How can it be ?
> 
> I have already add the path of file that I want to
> upload.
> 
> Any Idea About This? sorry for my bad english.
> 
> Thanks in advance
> 
> donaldi
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢
> http://photos.yahoo.com/ph/print_splash
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list


=====
sabshire at yahoo.com
You will never "find" time for anything. If you want time you must make it. -- Charles Buxton


	
		
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash



More information about the Mono-devel-list mailing list