473,732 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tough Problem

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

ex.

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

the variable, str, equals that entire string.

string str = "<html><head><t itle>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 1039
<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.n et> 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><ti tle>text</title></head>
: <body>
: some data
: </body>
: </html>
:
: the variable, str, equals that entire string.
:
: string str = "<html><head><t itle>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.n et> 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><ti tle>text</title></head>
<body>
some data
</body>
</html>

the variable, str, equals that entire string.

string str = "<html><head><t itle>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
1641
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 graphics. Is there some commercial way to design the page in a design program, then to use the designed page as a skeleton, or "template" or "fill in" page as a pre-cursor for a real HTML page? For instance, I could replace the designed graphic...
2
3593
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 .asp that I've stripped down.. feel free to paste the code for your own testing.. it works: ----------------- begin paste-- ----------- <% ' logon_user will be in DOMAIN\LANID format (NT4 Format) logonuser = Request.ServerVariables("LOGON_USER")
5
1973
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 that post. The post was not about strict or transitional pages, it wasn't even about
6
1526
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 your time on the questions. I used uecrtify exam simulation. Make sure you know exactly what they are asking for and think it through. You will not pass unless you have experience with the product and have done a lot of prep work. Read the...
28
3916
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 varname as string = 'one of my variable. It's part of the table name. Dim t1 as String = varname+ "0000"
9
17824
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 minimal size
8
1661
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 like the fact that the script is instantiating the object type so many times (of course, tell me if i am wrong).
1
1330
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 hoping this entry really helps those who are struggling with this topic. -- Gregory A. Beamer MVP, MCP: +I, SE, SD, DBA
12
1477
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
1953
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
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9447
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9235
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9181
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.