?
Solved

Calling an asp page from asp.net without showing the asp page

Posted on 2011-10-25
6
Medium Priority
?
248 Views
Last Modified: 2012-05-12
I have a legacy asp script that reads data from legacy system and inserts result into sql. I need to create an asp.net page in visual stufio tha can call the asp page to perform it's job without showing the asp page or starting a new page.

Any ideas how?
using VB, VS2008
Looking for sample code.
0
Comment
Question by:sleiman
  • 3
5 Comments
 
LVL 18

Expert Comment

by:ivan_vagunin
ID: 37023429
Hi!
Try to use HttpWebRequest to send http get request to asp page - that should start page processing and execute scripts.

http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx
0
 
LVL 23

Expert Comment

by:Saqib Khan
ID: 37029266
why not use iFrame and use asp classic page as source of iFrame?
0
 

Accepted Solution

by:
sleiman earned 0 total points
ID: 37029467
thank you all. the soluton that i had was using the httpWebRequest. My issue was to suppress the data that the asp page puts out. I was able to suppress that by creating another asp without any output. the other optiont that I also had was to make the aspx control that was showing the returned data not visible.
0
 

Author Comment

by:sleiman
ID: 37135664
I've requested that this question be closed as follows:

Accepted answer: 0 points for sleiman's comment http:/Q_27413708.html#37029467

for the following reason:

thank you all. the soluton that i had was using the httpWebRequest. My issue was to suppress the data that the asp page puts out. I was able to suppress that by creating another asp without any output. the other optiont that I also had was to make the aspx control that was showing the returned data not visible.
0
 

Author Comment

by:sleiman
ID: 37135665
I had found another way for handling the problem and I stated that in my anwer.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Loops Section Overview
Suggested Courses

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question