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

using .aspx page to output image problem

Hi,
I have a page (A) that allows users to enter addresses
and displays direction information and map images.
The page A calls Microsoft's mappoint web service, gets
the route info and map image. Page A contains an image
button with the image url set as MapOutput.aspx
<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="MapOutput.aspx"></asp:imagebutton>

After page A got the image, it stores the image into
session. In MapOutput page, it gets the image out from
session and output the image through Response object.

The map works fine on a single web server setup. The
image wouldn't show up on a load balanced web server
setup (consists of two web servers). Sticky session is
working since it is also used in other places.

Does anyone have ideas?

Thanks.

Holly Li

Nov 18 '05 #1
1 2415
Holly,
I admitedly don't know the full picture (no pun intended), but it seems to
me you could rearchitect things to make a lot more sense and probably avoid
this problem. The thing that sticks out the most is: Why is page A calling
the webservice as opposed to MapOutput.aspx ???

It also seems to me that you are using a session simply to communicate
between page (A) and MapOutput.aspx - which is a poor way to communicate
between a page and a user control.

I would create an address class (hopefully you already have one)

public class Address
pirvate street as string
private zip as string
...
public property ....
end class

I would create a custom server control which inherits from ImageButton and
exposes a property of type Address

public class MapPointImage
inherits ImageButton

private _address as Address
public property Address() as Address
get
return _address
end get
set (value as Address)
_address = value
end set
end property
and would implement the Webservice code in the render method of this class.

You can then create the address object in page A and set it to the Address
property of yourMapPointImage reference.

Karl

"Holly" <ho******@dtag.com> wrote in message
news:19****************************@phx.gbl...
Hi,
I have a page (A) that allows users to enter addresses
and displays direction information and map images.
The page A calls Microsoft's mappoint web service, gets
the route info and map image. Page A contains an image
button with the image url set as MapOutput.aspx
<asp:imagebutton id="ibtnMap" runat="server"
ImageUrl="MapOutput.aspx"></asp:imagebutton>

After page A got the image, it stores the image into
session. In MapOutput page, it gets the image out from
session and output the image through Response object.

The map works fine on a single web server setup. The
image wouldn't show up on a load balanced web server
setup (consists of two web servers). Sticky session is
working since it is also used in other places.

Does anyone have ideas?

Thanks.

Holly Li

Nov 18 '05 #2

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

Similar topics

1
by: Andres Romero | last post by:
I have a Image control in an aspx page with a url static "http://localhost/dir/tmp/test.gif This image changes every time the page is submited (the content not the name). When the page is showed...
7
by: Nilesh | last post by:
I am using background-image attribute in a CSS file and linking the CSS file to aspx page. But strangly, background-image attribute is not working for relative URL. e.g. If I apply following css...
7
by: Jim | last post by:
I am trying to display images that are stored in a database, and I am using a repeater control. What I still use the Response.BinaryWrite method with a binding expression, if so, what with the...
3
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are...
2
by: anoop | last post by:
Hello, I created a Public class in .aspx.vb code behind file, now I want to know can I call that functions in the class in the Scripts either client side or server side in .aspx page. also I want...
9
by: J055 | last post by:
Hi I'm trying to get an instance of UserLists to persist after it's been used by the GridView. I understand from the documentation that The OnObjectCreated event allows access to the instance. I...
1
by: rushikesh.joshi | last post by:
Hi All, I want some charting functionality in my ASP.NET application. I want to show a multiple bar on my web page. It's based on down time of different servers. like server1: down betn 4 AM...
23
by: Peter | last post by:
I have a problem with a page show_image.asp that returns a jpg image under Windows XP Pro SP2. The page sets content type as: Response.ContentType = "image/jpg" While this works perfectly fine...
3
by: =?Utf-8?B?Q2hhZCBTY2hhcmY=?= | last post by:
I have a 3 page ASP.NET web application that is using an asp:Wizard control on the main page. There is no authentication (completely open) and all processesing is done on this single page. I have a...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
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...

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.