Hi Praveen,
Welcome to the ASPNET newsgroup.
As for the let custom webcontrol display a dialog which pointed to an
embeded htm page in our custom control's assembly, I think it is the same
with embeding other kind of resources. We just need to embed the htm file
in our control's assembly, register with the [assembly:WebResource]
attribute, and then, use hte Page.ClientScript.GetWebResourceUrl method to
get the runtime dynamic url of that embeded htm file. e.g:
[assembly: WebResource("ControLibrary.Resources.dlg.htm", "text/html")]
protected override void RenderContents(HtmlTextWriter output)
{
output.Write("<br/><a href=\"" +
Page.ClientScript.GetWebResourceUrl(this.GetType() ,
"ControLibrary.Resources.dlg.htm") + "\" >New Page</a>");
}
this help output a hyperlink which point to the embeded html page. You can
also use some scripts to display a new dialog window which point to the
embeded html file.
Hope this helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)