Groups | Blog | Home
all groups > asp.net building controls > november 2004 >

asp.net building controls : Problem with Build Custom Web Control


Naveen K Kohli
11/26/2004 11:52:17 AM
Take a look at my blog entry. It explains how this is done..

http://www.criticlsites.com/naveen

Naveen Kohli
http://www.netomatix.com
http://www.criitcalsites.com/naveen

[quoted text, click to view]

Dexter
11/26/2004 1:30:17 PM
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

Naveen K Kohli
11/26/2004 2:46:33 PM
Oops...
It should be..

http://www.criticalsites.com/naveen

[quoted text, click to view]

Leon Friesema
11/26/2004 7:58:19 PM
On Fri, 26 Nov 2004 11:52:17 -0500, "Naveen K Kohli"
[quoted text, click to view]


Eugenio Serrano
11/27/2004 8:02:40 PM
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)


"Dexter" <projenet@yahoo.com.br> escribió en el mensaje
news:efC6YT90EHA.3376@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

Naveen K Kohli
11/28/2004 2:19:19 AM
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.


[quoted text, click to view]

AddThis Social Bookmark Button