Hello all,
I'm building a web custom control, but i hava a problem.
In the Sub Render, i have a html code as output. All ok.
I have a other class that has a function that return a image object,
and i need to insert this image in my html of output, but it
don't has a path.
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter)
dim saida as string
saida = "<table>"
saida += "<img src="">" --> ???????? What i do here to show the returned
image of my Function.
saida += "</table>"
End Sub
Somebody can help me in this task?
Thanks
Dexter 3 1137
You can't do that. An image is an individual request and thus takes the
entire stream..you can't mix text (html) with binary (image) data.
What you can do is:
saida += "<img
src=imageGenerator.aspx?imageId=WHATEVERINFORMATIO N_YOU_NEED_TO_BUILD_YOUR_I
MAGE>";
and move your function that returns an image to imageGenerator.aspx, saving
the image to the Response.OutputStream ...
karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"Dexter" <pr******@yahoo.com.br> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Hello all, I'm building a web custom control, but i hava a problem. In the Sub Render, i have a html code as output. All ok.
I have a other class that has a function that return a image object, and i need to insert this image in my html of output, but it don't has a path.
Protected Overrides Sub Render(ByVal output As
System.Web.UI.HtmlTextWriter) dim saida as string saida = "<table>" saida += "<img src="">" --> ???????? What i do here to show the
returned image of my Function. saida += "</table>" End Sub
Somebody can help me in this task? Thanks
Dexter
Ok karl,
this i know to do, but now, is possible to compile the assembly with a .aspx
page?
I don't want to have to distribute a .dll and a .aspx page, i want to
distribute only
the assembly (.dll).
Is possible to compile the .aspx page in a assembly?
Thanks.
Dexter
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
escreveu na mensagem news:%2****************@TK2MSFTNGP09.phx.gbl... You can't do that. An image is an individual request and thus takes the entire stream..you can't mix text (html) with binary (image) data.
What you can do is:
saida += "<img src=imageGenerator.aspx?imageId=WHATEVERINFORMATIO N_YOU_NEED_TO_BUILD_YOUR_I MAGE>";
and move your function that returns an image to imageGenerator.aspx, saving the image to the Response.OutputStream ...
karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"Dexter" <pr******@yahoo.com.br> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hello all, I'm building a web custom control, but i hava a problem. In the Sub Render, i have a html code as output. All ok.
I have a other class that has a function that return a image object, and i need to insert this image in my html of output, but it don't has a path.
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter) dim saida as string saida = "<table>" saida += "<img src="">" --> ???????? What i do here to show the returned image of my Function. saida += "</table>" End Sub
Somebody can help me in this task? Thanks
Dexter
The only thing I can think of is to use an HttpHandler..not sure if it'll do
the trick though, can't say I know enough to give a good answer, but
hopefully that'll give you something to try out...
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"Dexter" <pr******@yahoo.com.br> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Ok karl, this i know to do, but now, is possible to compile the assembly with a
..aspx page? I don't want to have to distribute a .dll and a .aspx page, i want to distribute only the assembly (.dll). Is possible to compile the .aspx page in a assembly?
Thanks.
Dexter "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> escreveu na mensagem news:%2****************@TK2MSFTNGP09.phx.gbl... You can't do that. An image is an individual request and thus takes the entire stream..you can't mix text (html) with binary (image) data.
What you can do is:
saida += "<img
src=imageGenerator.aspx?imageId=WHATEVERINFORMATIO N_YOU_NEED_TO_BUILD_YOUR_I MAGE>";
and move your function that returns an image to imageGenerator.aspx, saving the image to the Response.OutputStream ...
karl
-- MY ASP.Net tutorials http://www.openmymind.net/
"Dexter" <pr******@yahoo.com.br> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl... Hello all, I'm building a web custom control, but i hava a problem. In the Sub Render, i have a html code as output. All ok.
I have a other class that has a function that return a image object, and i need to insert this image in my html of output, but it don't has a path.
Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter) dim saida as string saida = "<table>" saida += "<img src="">" --> ???????? What i do here to show the returned image of my Function. saida += "</table>" End Sub
Somebody can help me in this task? Thanks
Dexter
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Matt Fielder |
last post by:
I have developed a custom control to be used in my application. My
application includes a form designer, so the control can be hosted while
designmode for the control is either true or false,...
|
by: CMEDIA_SOUND |
last post by:
I have a peculiar problem,
I have a tabpage with a label control on it. When i set a background
image to the tabpage and drag the label around it has paint issues in
that it is slow, granted the...
|
by: anand |
last post by:
Hi all,
I have created a custom control which displays Image using Graphics..
I am using this control in a different windows application.
I am dynamically creating the control and putting that...
|
by: waltborders |
last post by:
Hi,
Because the blind are unable to use a mouse, keyboard navigation is
key. A major difficulty is that not all windows forms controls are
keyboard 'tab-able' or 'arrow-able' or have "tab...
|
by: Eric |
last post by:
I have built a composite user web control that I want to create dynamically.
The form will contain a variable number of these controls and as well some
of the contents of the user web control...
|
by: Lamont Adams |
last post by:
Hi all,
I've created numerous custom controls of varying complexity, but I've been
on this problem for a day and a half, and I can't figure this mystery out. I
hope one of you kind folks can...
|
by: Brian Henry |
last post by:
I am trying to make a custom user control that gets a list of users from our
database and populates the list, its an owner drawn control also, the
problem is, I placed the item onto a form and...
|
by: Dino Buljubasic |
last post by:
Hi,
I am using C# 2.0 (VS2005) to build my user control that contains a
number of dynamically loaded ListViews. ListViewItems have their
ForeColor properties set to either black or blue to...
|
by: Tomasz J |
last post by:
Hello Developers,
I have a control derived from System.Web.UI.WebControls.WebControl. Control
has this property:
public string Value
{
set { _value = value; }
get { return _value; }
|
by: tlhintoq |
last post by:
Situation:
A Windows Form with a single User Control containing 4 custom controls. This lets me drop the User Control on its own form to make it a dialog, or make it part of a larger configuration...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |