473,671 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Proxying a secure web page within my web page

2 New Member
I am trying to display pages from a firewalled web server on an accessible web server. I have access to the public web server and the public web server has access to the private one. In a way I want to have a mini local web client imbeded in a section of my web page. I don't need to browse, just see the status of a backend server.

I am using c# and aspx code behind to access the page. I can get some of the page using this:

Expand|Select|Wrap|Line Numbers
  1. HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
  2.   request.Method = "GET";
  3.   response = request.GetResponse();
  4.   reader = new StreamReader(response.GetResponseStream(), Encoding.UTF8);
  5.   result = reader.ReadToEnd();
  6. Response.Write (result);
I have at least two problems. The hard one first. The text, buttons and links show up, but the images are not displayed and reference local files, not the images from the site. There is also a Java Applet on the page that does not work. I get Applet X notinited. Is there a simple solution to fix this?

If Response.Write is the best way to do this I would like to have Response.Write write the output to a specific location (like a cell in a table) or a new popup window. I saw an example here to use:

[HTML]<span id="myLabel">
<% Response.Write "Some Text" %>
</span>[/HTML]

How do I get this to work when the “Some Text” needs to be generated and refreshed in the code behind section?

Thanks
Feb 22 '08 #1
0 765

Sign in to post your reply or Sign up for a free account.

Similar topics

6
3132
by: Sarah Tanembaum | last post by:
I was wondering if it is possible to create a secure database system using RDBMS(MySQL, Oracle, SQL*Server, PostgreSQL etc) and web scripting/programming language(Perl, PHP, Ruby, Java, ASP, etc) combination? I have the following in mind: I wanted to store all my( and my brothers and sisters) important document information such as birth certificate, SSN, passport number, travel documents, insurance(car, home, etc) document, and other...
1
1354
by: mark | r | last post by:
i have an ecommerce site that is split across two domains, a secure space that retains cc details and the main site where contact information and order details are held. I need to be able to produce a report that displays both sets of info in a printable document. aside from using iframes is there a better way of doing this? mark
6
4819
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and the other named Public. I placed my web.config file in my
7
3015
by: Seth | last post by:
I have noticed that the id of my session object changes when I switch from a non-secure to a secure connection. What I'm trying to do: I have a cookie that is built on the non-secure side of things. What I need to do is to switch to a secure connection and then later on while still in that secure connection delete the cookie that was created on the non- secure side. I need to do this because I can not reference the non-secure cookie...
0
1040
by: Rob Meade | last post by:
Hi all, ok - the scenario... We have a secure login page known as the Clinical Portal (single login etc) - we have a web user control for this which checks if a session is available or not and redirects the user to the Clinical Portal to login if not etc. I have dragged the .ascx (SessionCheck.ascx) across and thought all was well
40
2792
by: Robert Seacord | last post by:
The CERT/CC has released a beta version of a secure integer library for the C Programming Language. The library is available for download from the CERT/CC Secure Coding Initiative web page at: http://www.cert.org/secure-coding/ The purpose of this library is to provide a collection of utility functions that can assist software developers in writing C programs that are free from common integer problems such as integer overflow, integer...
0
1641
by: jhsedona | last post by:
I try to upgrade site from non-ssl to ssl site, but there are too mcuh thing to do. I decide to use url forwarding to https://www.domain.com for my whole site. When i go to 1st page of site, It says " Do you want to see secure and non secure page ? " If i say "yes", it does not show padlock(lock on bottom). When i login as user or admin, i can go to first page(https://www.domain.com) wihtout problem. Do i need make cookie ? or...
2
1924
by: Timbo | last post by:
Hello all, I have created a secure folder on my web server and created a user and password that can access it. So when you navigate to a page/file within this folder the login box appears. Here's my question: From a link on a form (outside the secure folder), can you send the user name and password using code to access a page/file in the secure folder, thus suppressing the login box?
3
1249
by: Jeff Dege | last post by:
We have an app that is written in C#/ASP.NET 2.0, and hosted on IIS. Or rather, it's mostly written in ASP.NET, but parts of it are client- side javascript, pulling data from an Apache webserver in an ajax-like fashion. There is no chance of converting the Apache pages to run on IIS, or the IIS pages to run on Apache, so we're inherently stuck with cross-domain XMLHttpRequest() calls.
0
8476
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
8393
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
8821
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8598
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
5696
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
4225
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...
1
2812
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1809
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.