473,698 Members | 2,376 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 1035
<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
1634
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
3591
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
1525
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
3913
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
17822
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
1658
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
1327
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
1475
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
1950
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
8676
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
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9161
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
8897
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
8867
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
7732
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...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2006
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.