473,322 Members | 1,526 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,322 software developers and data experts.

possible config probem??

Hi,
I have an aspx page that has an image button on it.
The image url of this button is another aspx page that
output an image.

<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="ImageOutput.aspx"></asp:imagebutton></TD>

The page works fine on all our dev boxes but doesn't work
on the staging and production boxes that are out of our
developer's control. The button has a broken image icon
on it.

To rule out problem one by one, does someone know that if
there is a config issue that could prevent the second
aspx page ("ImageOutput.aspx")to be called?

Thanks
Holly Li
Nov 18 '05 #1
4 1198
nope i have used that approach and it normally works fine.

have you tried loading the ImageOutput.aspx with the correct parameters ?

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Holly Li" <ho******@dtag.com> wrote in message
news:0a****************************@phx.gbl...
Hi,
I have an aspx page that has an image button on it.
The image url of this button is another aspx page that
output an image.

<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="ImageOutput.aspx"></asp:imagebutton></TD>

The page works fine on all our dev boxes but doesn't work
on the staging and production boxes that are out of our
developer's control. The button has a broken image icon
on it.

To rule out problem one by one, does someone know that if
there is a config issue that could prevent the second
aspx page ("ImageOutput.aspx")to be called?

Thanks
Holly Li

Nov 18 '05 #2
I would guess either ImageOuput.aspx is missing, or cannot successfully
return an image.

"Holly Li" <ho******@dtag.com> wrote in message
news:0a****************************@phx.gbl...
Hi,
I have an aspx page that has an image button on it.
The image url of this button is another aspx page that
output an image.

<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="ImageOutput.aspx"></asp:imagebutton></TD>

The page works fine on all our dev boxes but doesn't work
on the staging and production boxes that are out of our
developer's control. The button has a broken image icon
on it.

To rule out problem one by one, does someone know that if
there is a config issue that could prevent the second
aspx page ("ImageOutput.aspx")to be called?

Thanks
Holly Li

Nov 18 '05 #3
It works fine on some machines (machines that we
configed. The machines that are not working are those out
of our control.)
I have put some codes in ImageOutPut.aspx to display
things like error message. It acts like this page is
never been called. Thanks

-----Original Message-----
I would guess either ImageOuput.aspx is missing, or cannot successfullyreturn an image.

"Holly Li" <ho******@dtag.com> wrote in message
news:0a****************************@phx.gbl...
Hi,
I have an aspx page that has an image button on it.
The image url of this button is another aspx page that
output an image.

<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="ImageOutput.aspx"></asp:imagebutton></TD>

The page works fine on all our dev boxes but doesn't work on the staging and production boxes that are out of our
developer's control. The button has a broken image icon
on it.

To rule out problem one by one, does someone know that if there is a config issue that could prevent the second
aspx page ("ImageOutput.aspx")to be called?

Thanks
Holly Li

.

Nov 18 '05 #4
I checked that the Imageoutput.aspx is called. Here is
the code. Could you check if the code is correct. Thanks

private void Page_Load(object sender, System.EventArgs e)
{
//I can't create image in this class
becasue of other issues. So I create the image in other
page and put it in session
MapImage myMapImage = (MapImage)
Session["MAPIMAGE"];

if (myMapImage == null)
{
Bitmap strimg= new Bitmap
(400,200);

Graphics graph =
Graphics.FromImage(strimg);
Font myFont=new Font
("Verdana", 15);
StringFormat format=new
StringFormat();
format.FormatFlags =
StringFormatFlags.DirectionVertical;

graph.DrawString("Error
getting image",myFont, new SolidBrush(Color.Red), 5, 100);

strimg.Save
(Response.OutputStream,
System.Drawing.Imaging.ImageFormat.Jpeg);
graph.Dispose();
strimg.Dispose();
}
else
{
//This line prevents the
map from being cached locally.

Response.Cache.SetCacheability
(HttpCacheability.NoCache);

//Now clear the buffer
and write the bits to the page.
Response.Clear();
Response.ContentType =
myMapImage.MimeData.MimeType;
Response.BinaryWrite
(myMapImage.MimeData.Bits);
}
Response.End();
}

Holly Li

-----Original Message-----
It works fine on some machines (machines that we
configed. The machines that are not working are those outof our control.)
I have put some codes in ImageOutPut.aspx to display
things like error message. It acts like this page is
never been called. Thanks

-----Original Message-----
I would guess either ImageOuput.aspx is missing, orcannot successfully
return an image.

"Holly Li" <ho******@dtag.com> wrote in message
news:0a****************************@phx.gbl...
Hi,
I have an aspx page that has an image button on it.
The image url of this button is another aspx page that
output an image.

<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="ImageOutput.aspx"></asp:imagebutton></TD>

The page works fine on all our dev boxes but doesn'twork on the staging and production boxes that are out of our developer's control. The button has a broken image icon on it.

To rule out problem one by one, does someone know
thatif there is a config issue that could prevent the second
aspx page ("ImageOutput.aspx")to be called?

Thanks
Holly Li

.

.

Nov 18 '05 #5

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

Similar topics

3
by: bruce | last post by:
hi... i'm running rh8.0 with gnome.. i'm not sure of the version (it's whatever rh shipped). i've recently updated (or tried to update) python to the latest version. when i try to run the...
3
by: Danny | last post by:
Hello, I was wondering if anyone knew if it was possible to make changes to an application's App.config file at runtime and then be able to access those changes immediately. The following is...
4
by: Shrinivas | last post by:
Hi, Let us say my web.config is keep growing and I want to break the data logically and still use web.config methods to retrieve the data. e.g. <?xml version="1.0" encoding="utf-8" ?>...
3
by: Jiho Han | last post by:
If there is a dll that my asp pages uses but is in a separate assembly, can I define a separate config for it and will it read? For example, if I have a MyLibrary.dll and I define a...
2
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use...
5
by: who be dat? | last post by:
Hello all. I'm writing an application that is writing trace information that can be viewed in trace.axd. I would like to rename this and use a different name specific to my application. I know...
1
by: SeeSharp | last post by:
..NET 2.0 has a great feature where you can remove certain elements from your web.config and put them in an external file. For example the membership element has the configSource attribute and you...
2
by: Ruud Ortmans | last post by:
Hi, I developed an "Contact Us" - page with VS 2005 and ASP.NET 2.0. By clicking the send button the following code is executed: Configuration config =...
2
by: Morgan Cheng | last post by:
Without IIS configuration, is it possible to set "default page" in web.config? I am curious about that because I am developing in VS2005 with ASP.NET Development Server. I want to config it with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.