Transfer data between asp-pages

Joined
May 26, 2009
Messages
1
Reaction score
0
Hi,

I have a asp-page (plot.aspx) that generates an image, like this:

Code:
Response.Buffer = true;
Response.ContentType = "image/gif";
npSurface.Bitmap.Save(memStream, System.Drawing.Imaging.ImageFormat.Gif);
memStream.WriteTo(Response.OutputStream);

In another page I use:
Code:
<img src="plot.aspx?sql=SELECT ABC&dataname=allCars>
<img src="plot.aspx?sql=SELECT XYZ&dataname=cars2009>

The problem is that I don't like the solution to send the long SQL-query via the querystring. The main reason is that anyone (knowing sql) may abuse this solution.

I would like to discuss solutions to let my page "plot.aspx" know about the sql query, before it "generates" the image.

Any ideas?

/Tobias
 

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

Forum statistics

Threads
474,100
Messages
2,570,635
Members
47,240
Latest member
taarariachand

Latest Threads

Top