Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 09, 2012 02:21 PM by Curt_C
Member
66 Points
154 Posts
May 07, 2012 06:22 PM|LINK
I'm not sure whether or not this is a java question or just .net so I'm posting it here.
I have this VB line which opens a new window containing the page at the URL shown. This works.
ClientScript.RegisterStartupScript(
Me.GetType(), "Message", "<script>window.open('" + "http://vhabrkxxx/Dev/GenericEmail/" + "')</script>")
Now instead of providing the URL I have a VB string called myhtml which contains the html string. What's the syntax to just provide the html directly instead of a URL? -thanks.
All-Star
66014 Points
7639 Posts
Moderator
May 07, 2012 07:05 PM|LINK
You need to create the page or stream the contents. You can't link directly.
What I would do would be to create a page to stream content (make it generic) and then you can have this new page deliver the content as needed.
Contributor
4351 Points
1277 Posts
May 07, 2012 07:18 PM|LINK
hai
http://stackoverflow.com/questions/7942263/html-popup-window-from-code-behind-file
http://forums.asp.net/t/1221812.aspx/1
http://forums.asp.net/t/1001747.aspx/1/10
thank u
May 09, 2012 01:18 PM|LINK
Curt_C:
Can I get some more detail on how to do what you're describing?
May 09, 2012 02:21 PM|LINK
basically the same thing that was done here:
http://forums.asp.net/t/1792245.aspx/1?Extracting+and+Displaying+ICONs
DaveBF
Member
66 Points
154 Posts
Open a new window containing in-memory html string in code behind.
May 07, 2012 06:22 PM|LINK
I'm not sure whether or not this is a java question or just .net so I'm posting it here.
I have this VB line which opens a new window containing the page at the URL shown. This works.
ClientScript.RegisterStartupScript(
Me.GetType(), "Message", "<script>window.open('" + "http://vhabrkxxx/Dev/GenericEmail/" + "')</script>")
Now instead of providing the URL I have a VB string called myhtml which contains the html string. What's the syntax to just provide the html directly instead of a URL? -thanks.
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: Open a new window containing in-memory html string in code behind.
May 07, 2012 07:05 PM|LINK
You need to create the page or stream the contents. You can't link directly.
What I would do would be to create a page to stream content (make it generic) and then you can have this new page deliver the content as needed.
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
sriramabi
Contributor
4351 Points
1277 Posts
Re: Open a new window containing in-memory html string in code behind.
May 07, 2012 07:18 PM|LINK
hai
http://stackoverflow.com/questions/7942263/html-popup-window-from-code-behind-file
http://forums.asp.net/t/1221812.aspx/1
http://forums.asp.net/t/1001747.aspx/1/10
thank u
DaveBF
Member
66 Points
154 Posts
Re: Open a new window containing in-memory html string in code behind.
May 09, 2012 01:18 PM|LINK
Curt_C:
Can I get some more detail on how to do what you're describing?
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: Open a new window containing in-memory html string in code behind.
May 09, 2012 02:21 PM|LINK
basically the same thing that was done here:
http://forums.asp.net/t/1792245.aspx/1?Extracting+and+Displaying+ICONs
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!