using asp 3.0 response with asp.net ?

  • Thread starter Thread starter Elhanan
  • Start date Start date
E

Elhanan

hi.. i have a dotnet dll meant to be used in aspnet page which outputs
barcode images:
the code to call is this:

BarcodeImaging.UCC128.BarcodeWrite w = new
BarcodeImaging.UCC128.BarcodeWrite(
BarcodeImaging.Barcode128Types.CODE_SET_B );
Bitmap bmp = w.CreateBarcode128("1232");
bmp.Save( Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif
);

My problem is that i have to use this dll from regular asp, so

a. i have to wrap it in another dotnet dll (becouse of the constructor
which takes paramters)

b. get the response object from the asp page


i don't know how to do b, any ideas?
 
if you use the .NET code in an ASPX ASP.NET page, it is writing the image to
the response stream.
So your classic ASP page could do something like:

<img src="myASPXpage.aspx?id=1234">

Peter
 

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

Back
Top