Mac.Netskape - Server error ! all other browsers - OK

T

TJmaster

Hello everybody!!! I want to complain on strange problem!!!

private void ImageBind()
{
ImageUpload ui = new ImageUpload();
ui.FileName = Path.GetFileName(fileMap.PostedFile.FileName);
ui.SourceFile = fileMap.PostedFile;
/* :KLUDGE: ×ÓÕÎÕÔØ ÐÒÏ×ÅÒËÕ × Common */
if (fileMap.PostedFile.FileName=="")
{
fi.FileName = "nomap.gif";
fi.ThumbFileName = "nomap_t.gif";
return;
}
ui.Folder = this.SiteRootPhysical+"\\images\\maps";
ui.ThumbnailCreate = true;
ui.Overwrite = true;
fi = ui.Proceed();
dr = MarketsDB.MarketsGetOne(0,MarketID);
if (dr != null)
{
if (ui.FileName != dr["ImageName"].ToString())
{
if (dr["ImageName"].ToString() != "nomap.gif")
{
File.Delete(ui.Folder + "\\"+dr["ImageName"].ToString());
File.Delete(ui.Folder + "\\"+dr["TImageName"].ToString());
}
}
}
if (fi.Result == 0)
{
fi.FileName = "nomap.gif";
fi.ThumbFileName = "nomap_t.gif";
}
}

Above is a function working very good when I use IE (Windows, Mac) or
Netskape (Windows)!!! But when I use Netskape (Mac) (Its really strange) I
have an error: Object reference not set to an instance of an object - in
this function - why!!!! How could it be??? Server error - when I use another
browser!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top