Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Casting something as HtmlInputFile?


Message #1 by "Oliver, Wells" <WOliver@l...> on Mon, 28 Oct 2002 15:18:36 -0800
I have a problem whereby the following always results in an
object-not-set-to-reference-of-object error:

this.objCom.Parameters["@Thumbnail"].Value 
((HtmlInputFile)e.Item.FindControl("Thumbnail")).PostedFile.FileName.ToStrin
g();

However, there's very much an HTML control of input type file (and runat
server) in the EditItemTemplate.

Any clues here?

Wells Oliver
Web Applications Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com 


  Return to Index