A
André
Hi,
I want to include a graphic made in file2 into file. File must first send a
value to file2 (with Response.Redirect) which will be used for the graphic.
My problem is that only the graphic is rendered and not the content of
file1.
Thanks for help.
André
See how i did:
file1:
-----
Dim lit As LiteralControl
Dim frm As HtmlForm = Me.FindControl("form1")
Dim l As New Label
l.Text = "this is the graphic"
frm.Controls.Add(l)
Response.Redirect(String.Format("redirect2.aspx?Item0={0}", 25))
lit = New LiteralControl("<img src=""redirect2.aspx""/>")
frm.Controls.Add(lit)
file2 (redirect2.aspx):
----------------------
Dim item0 As String
item0 = Request.QueryString("Item0")
Dim objBitmap As New Bitmap(200, 104)
Dim objGraphic As Graphics = Graphics.FromImage(objBitmap)
Dim redBrush As New SolidBrush(Color.Red)
.....
Response.ContentType = "image/gif"
objBitmap.Save(Response.OutputStream, ImageFormat.Gif)
I want to include a graphic made in file2 into file. File must first send a
value to file2 (with Response.Redirect) which will be used for the graphic.
My problem is that only the graphic is rendered and not the content of
file1.
Thanks for help.
André
See how i did:
file1:
-----
Dim lit As LiteralControl
Dim frm As HtmlForm = Me.FindControl("form1")
Dim l As New Label
l.Text = "this is the graphic"
frm.Controls.Add(l)
Response.Redirect(String.Format("redirect2.aspx?Item0={0}", 25))
lit = New LiteralControl("<img src=""redirect2.aspx""/>")
frm.Controls.Add(lit)
file2 (redirect2.aspx):
----------------------
Dim item0 As String
item0 = Request.QueryString("Item0")
Dim objBitmap As New Bitmap(200, 104)
Dim objGraphic As Graphics = Graphics.FromImage(objBitmap)
Dim redBrush As New SolidBrush(Color.Red)
.....
Response.ContentType = "image/gif"
objBitmap.Save(Response.OutputStream, ImageFormat.Gif)