473,626 Members | 3,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:imagebutto n id="ibtnMap" runat="server"
ImageUrl="Image Output.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.a spx")to be called?

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

have you tried loading the ImageOutput.asp x 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:imagebutto n id="ibtnMap" runat="server"
ImageUrl="Image Output.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.a spx")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:imagebutto n id="ibtnMap" runat="server"
ImageUrl="Image Output.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.a spx")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.asp x 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:imagebutto n id="ibtnMap" runat="server"
ImageUrl="Image Output.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.a spx")to be called?

Thanks
Holly Li

.

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

private void Page_Load(objec t sender, System.EventArg s 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.FromIm age(strimg);
Font myFont=new Font
("Verdana", 15);
StringFormat format=new
StringFormat();
format.FormatFl ags =
StringFormatFla gs.DirectionVer tical;

graph.DrawStrin g("Error
getting image",myFont, new SolidBrush(Colo r.Red), 5, 100);

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

Response.Cache. SetCacheability
(HttpCacheabili ty.NoCache);

//Now clear the buffer
and write the bits to the page.
Response.Clear( );
Response.Conten tType =
myMapImage.Mime Data.MimeType;
Response.Binary Write
(myMapImage.Mim eData.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.asp x 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:imagebutto n id="ibtnMap" runat="server"
ImageUrl="Image Output.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.a spx")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
1588
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 'Server Settings/Services' Icon within gnome, nothing happens... i tried to run the 'start services' command from a command line, and got the
3
7070
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 an example of what I'm trying to achieve: I tried a test by creating a simple app Test.exe that has some basic settings made available to it in the runtime file Test.exe.config.
4
3953
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" ?> <configuration> <configSections> <sectionGroup name="Group Name"> <section name="Section name"> </section>
3
1131
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 MyLibrary.dll.config, will objects in MyLibrary.dll have access to the .config? Thanks
2
2954
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 cookieless sessions for a particular user, and if so, I'd instruct ASP.NET to turn on cookieless sessions for a particular user session. Is this possible? For example I want to use cookie based sessions by default for all users. But if a user has...
5
2925
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 the name of this is set in machine.config. I was hoping it would be possible to change this in web.config. I got it to work, kind of. Good news is I can change the name in my web.config file. Bad news is that trace.axd still works meaning I can...
1
1672
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 can set it to configSource="myconfigs\membership.config". The only problem is that intellisense does not work in the external file, presumably because the membership element is no longer in it's place in the supported config schema (i.e. it is...
2
2654
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 = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath); MailMessage mailBericht = new MailMessage(txtbxEmailadres.Text.Trim(),
2
33774
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 web.config. Thanks.
0
8262
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8502
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5571
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.