473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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!!!!
Nov 19 '05 #1
1 1113
What line causes the problem? My guess is that fileMap.PostedFile is null
or something..

check out http://weblogs.asp.net/acampbell/arc...25/164703.aspx if
I'm right that it's on the ui.FileName =
Path.GetFileName(fileMap.PostedFile.FileName); line

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"TJmaster" <we***********@mail.ru> wrote in message
news:Os****************@tk2msftngp13.phx.gbl...
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!!!!

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: lawrence | last post by:
How do I get PHP to tell the server that when I echo text to the screen, I need for the text to be sent as UTF-8? How does Apache know the right encoding when all the text is being generated by...
5
by: DU | last post by:
Hi! I really need to understand what is so-called browser error correction mechanisms. Can you explain this? I read somewhere (and I no longer can find where I read that) that browsers try to...
4
by: HeroOfSpielburg | last post by:
Hello, I am trying to using the Shift_JIS character set in my web pages, and have specified it as such in the <head>. <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> ...
24
by: abracad_1999 | last post by:
I'm told the standards way of referencing page content is document.getElementById() What is the lowest version of each browser type with which this will work? Thank you
6
by: Javier Cortés Cortés | last post by:
i am getting this error when i am trying to access any file(with the ext. aspx) from my remote server. the error is : Server Error in '/' Application....
4
by: tommy | last post by:
hello everbody, i write a little asp-application with forms-authentication. i copy my aspx-files with web.config to my webspace and i get the error above... i tried to set the...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
3
by: Sean | last post by:
HI There, I am having trouble deploying my .aspx pages to a remote server, I have made changes to the config file and it still returns an error. I have also contacted the server administrator to...
4
by: Luke Matuszewski | last post by:
Here are some questions that i am interested about and wanted to here an explanation/discussion: 1. (general) Is the objectness in JavaScript was supported from the very first version of it (in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.