Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 31st, 2006, 12:37 AM
Authorized User
 
Join Date: Aug 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default Code snippet to fetch data from other site

Hello ,

I have an .ascx file that simply displays application variables.
The clients requirement is to allow other sites to fetch and display the contents of this file on their web sites.

What might be the best method to do this keeping in mind that the sites to access it may be running on php also.


Regards,

Vinay



 
Old March 31st, 2006, 10:06 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Set up a web service to stream XML =]

"The one language all programmers understand is profanity."
 
Old April 3rd, 2006, 01:50 AM
Authorized User
 
Join Date: Aug 2003
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello dparsons,

I am able to pull the data from the other site using the xmlhttp object in Javascript but the problem lies in accessing data source across domains, which causes the "permission denied" error. The workaround for this is to change the "data source across domains" option in IE. This isn't a feasible solution.

I think even if i use the .net webservices the same problem will persist as two different domains are involved in the data exchange.

Any idea ?

Thanks in advance.

Vinay

 
Old April 3rd, 2006, 12:31 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

uhhh accessing DSN's across the web is NOT a good idea, not even a little bit. Because, one way or another, you are going to have to send authentication information across the net and even if you encrypt it, I still wouldnt suggest doing it. (How many Algorithms HAVENT been cracked yet)

You best bet would to be to setup an RSS feed on one domain so that you can access it from the other and vice versa. (After all, this is what RSS and XML are for, data exchange)

"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run code snippet in regular interval Swati Chari Beginning VB 6 2 March 12th, 2008 03:07 PM
Fetch Data From server ashvinm JSP Basics 2 March 10th, 2008 07:48 AM
Fetch data from DBF to SQL arty125 VB.NET 1 August 20th, 2007 01:06 PM
possibly C++ snippet of code crmpicco C++ Programming 1 July 1st, 2006 08:46 PM
Code snippet error on page 370 cebartling BOOK: Professional Java Development with the Spring Framework 0 September 18th, 2005 10:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.