Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Arny
Starting Member
2 Posts |
Posted - 2009-09-16 : 00:55:57
|
Hi there,I am using ASP.net,C#,SQL Server 2005 express, I have an employee form,user can enter the information and finally add an image.The code is working fine in windows vista,but not in windows 2003, what coul be the problem?this is the code:string sFilename = Guid.NewGuid().ToString(); if (filePhoto.HasFile) { string sPath = ""; string sFile = filePhoto.FileName.ToString(); sPath = Server.MapPath("Employee-Photos"); sFilename = sFilename + sFile.Substring(sFile.LastIndexOf(".")); filePhoto.SaveAs(sPath + "\\" + sFilename); } Thanks in advance |
|
YellowBug
Aged Yak Warrior
616 Posts |
Posted - 2009-09-16 : 04:22:35
|
What is the error message? |
|
|
|
|
|