473,406 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Tough Problem

I have a major problem. I have an entire HTML page
stored within a string variable.

ex.

<html><head><title>text</title></head>
<body>
some data
</body>
</html>

the variable, str, equals that entire string.

string str = "<html><head><title>text</title></head>" +
"<body>some data</body></html>";

I want to open a non .NET window and have pass that
string to it. Since the new window will be a PLAIN HTML
window it should parse the string I pass.

Any thoughts on how to accomplish this? I code in C# and
not VB but I can follow VB syntax. An idea I have is to
pass the entire contents within the URL to another
window. Within the new window, use ASP to get the
Request object then use Dynamic HTML InnerHTML property
to make the contents of the new window what is stored
within the request object. Only problem is, the info I'm
passing isn't just innerhtml stuff, it's an entire web
page!

Help!

-- Prince

-- Prince
Nov 18 '05 #1
2 1025
<quote>
: An idea I have is to
: pass the entire contents within the URL to another
: window. Within the new window, use ASP to get the
: Request object then use
</quote>

If you are using ASP in the new Window, just Response.Write() the contents.

Cheers
Ken
"Prince" <pr******@cox.net> wrote in message
news:41****************************@phx.gbl...
: I have a major problem. I have an entire HTML page
: stored within a string variable.
:
: ex.
:
: <html><head><title>text</title></head>
: <body>
: some data
: </body>
: </html>
:
: the variable, str, equals that entire string.
:
: string str = "<html><head><title>text</title></head>" +
: "<body>some data</body></html>";
:
: I want to open a non .NET window and have pass that
: string to it. Since the new window will be a PLAIN HTML
: window it should parse the string I pass.
:
: Any thoughts on how to accomplish this? I code in C# and
: not VB but I can follow VB syntax. An idea I have is to
: pass the entire contents within the URL to another
: window. Within the new window, use ASP to get the
: Request object then use Dynamic HTML InnerHTML property
: to make the contents of the new window what is stored
: within the request object. Only problem is, the info I'm
: passing isn't just innerhtml stuff, it's an entire web
: page!
:
: Help!
:
: -- Prince
:
: -- Prince
Nov 18 '05 #2
If I understand this correctly, this is a severe security risk if you're not
careful. You probably don't want to trust anthing that comes in off of the
query string without checking it first. In addition, don't forget that
there is an upper limit to the size of the query string.

Not sure what you mean exactly about a "non .NET" window. Do you mean
another browser that needs to access a non ASP.NET page?

Maybe you could stuff it in a cookie. Just remember ot parse it and make
sure that it hasn't been tampered with before you spit it out to your users.
"Prince" <pr******@cox.net> wrote in message
news:41****************************@phx.gbl...
I have a major problem. I have an entire HTML page
stored within a string variable.

ex.

<html><head><title>text</title></head>
<body>
some data
</body>
</html>

the variable, str, equals that entire string.

string str = "<html><head><title>text</title></head>" +
"<body>some data</body></html>";

I want to open a non .NET window and have pass that
string to it. Since the new window will be a PLAIN HTML
window it should parse the string I pass.

Any thoughts on how to accomplish this? I code in C# and
not VB but I can follow VB syntax. An idea I have is to
pass the entire contents within the URL to another
window. Within the new window, use ASP to get the
Request object then use Dynamic HTML InnerHTML property
to make the contents of the new window what is stored
within the request object. Only problem is, the info I'm
passing isn't just innerhtml stuff, it's an entire web
page!

Help!

-- Prince

-- Prince

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: eric rudolph | last post by:
1. I'm designing a PHP-based page that has a lot of design stuff in it. It's very tough to mix the HTML and PHP and have it be readable. The site isn't overall so complicated, there's just a lot of...
2
by: Anthony | last post by:
I am trying to get a users DN by translating the LOGON_USER NT4 format variable. I am ONLY using windows authentication for security settings: This is a Windows 2000 IIS 5 Server. Here is the...
5
by: Abyss | last post by:
My view. anyone that doesn't like it tough, click off and stop reading it. I have spent the last 45 minutes reading through all the posts, and I believe that you have all missed the mark of...
6
by: Kennedy_f | last post by:
I did better in terms of score on this one than 291, but I found it much harder. Wordings of questions are difficult like the rest, but the DNS and CA scenarios were very tough to figure out. Take...
28
by: Arial | last post by:
My SQL string is kind of wierd one. In my application, I need to select things from an unknown name table. But I know the table name before the SQL command is executed. For instance, Dim...
9
by: denis | last post by:
Hi there, I got a tough interview questions lately, and I would like to hear your opinion: An array of N chars is given Write an efficient algorithm to find all the repeating substring with a ...
8
by: pbd22 | last post by:
hi. i have spent the past week (i am afraid) trying to get the below script for uploading files via a hidden iframe to work. i have narrowed down my problem to the possibility that IE doesnt...
1
by: Cowboy \(Gregory A. Beamer\) | last post by:
If you have a tough time getting your head around Lambda Expressions, see if this blog entry helps: http://tinyurl.com/4yeckd I would gladly welcome comments, critiques and questions, as I am...
12
by: Mr Shore | last post by:
how to do the follows in IE: there's page A with element a pop a new page B from script in A and append element a into B after closing page B put element a back into A 'IE' solution only
4
by: Jim Rutledge | last post by:
ok ok , anyone know anything on this tough question? How do you determine the length in seconds that a midi file is , or any audio file for that matter ?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.