C
COHENMARVIN
I am working on an application where the user enters info into a
multiline textbox. The info is Stylesheet tags that he wants web pages
to use. Basically he would be entering a stylesheet into the textbox,
something like:
================
..link_header{color: #FFFFFF; font-size: 9pt; text-decoration:none;
font-family: Arial; font-weight: bold;}
===================
Then he clicks a PREVIEW button, and a new window pops open with a
sample webpage formatted using the stylesheet he entered into the
textbox. If he is satisfied with that page, he clicks a SAVE button on
the original page.
Now if this were all in asp.net, it would be easy. I could just
capture the stylesheet info, write to a file, and have the new webpage
refer to that file. But the problem comes in opening a new window. It
seems that ASP.NET can't open a new browser window - only client side
javascript can do that. So I would need to first capture the
stylesheet info that the user entered, using asp.net, and only then
open a new window. Is that impossible?
multiline textbox. The info is Stylesheet tags that he wants web pages
to use. Basically he would be entering a stylesheet into the textbox,
something like:
================
..link_header{color: #FFFFFF; font-size: 9pt; text-decoration:none;
font-family: Arial; font-weight: bold;}
===================
Then he clicks a PREVIEW button, and a new window pops open with a
sample webpage formatted using the stylesheet he entered into the
textbox. If he is satisfied with that page, he clicks a SAVE button on
the original page.
Now if this were all in asp.net, it would be easy. I could just
capture the stylesheet info, write to a file, and have the new webpage
refer to that file. But the problem comes in opening a new window. It
seems that ASP.NET can't open a new browser window - only client side
javascript can do that. So I would need to first capture the
stylesheet info that the user entered, using asp.net, and only then
open a new window. Is that impossible?