Нда... даже не знаю что сказать. System.Web.UI.HtmlControls.HtmlInputFile uplTheFile = e.Item.FindControl("File1") as System.Web.UI.HtmlControls.HtmlInputFile;
if (uplTheFile.Value==null || uplTheFile.Value=="")
Label1.Text = "Nothing to upload";
else
uplTheFile.PostedFile.SaveAs(Server.MapPath("uploadedFile.dat"));
и у меня всё сохраняется. Попробуй посмотреть в дебагере значение
ServerFileName . Может глюк в нём
/**********Comments***************************/
We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With gr
Данное сообщение получено с сайта GotDotNet.RU
|