Problem with Build Custom Web Control

D

Dexter

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
 
E

Eugenio Serrano

A best practice is use a Relative Path to the image..
You control could have a ImagePath Property...
--
Saludos,
Eugenio Serrano
NDSoft Consultoria y Desarrollo
MS MVP ASP.Net
Voluntario Ineta Latam (www.ineta.org/latam)
 
N

Naveen K Kohli

At design time, use of temp path is the safe bet. Use of relative path will
only make sense at run time.Otherwise you will end up cluttering folders
under your web site folders.
 

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
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top