Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 31st, 2006, 12:37 AM
Authorized User
 
Join Date: Aug 2003
Location: , , India.
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



  #2 (permalink)  
Old March 31st, 2006, 10:06 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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."
  #3 (permalink)  
Old April 3rd, 2006, 01:50 AM
Authorized User
 
Join Date: Aug 2003
Location: , , India.
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

  #4 (permalink)  
Old April 3rd, 2006, 12:31 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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."
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:49 AM.


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