Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 April 12th, 2009, 12:14 AM
Authorized User
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to call ASP application from a .Net code

Right now when I type in http://portwebsite/home/ my current ASP application is asking for the username and password and checking for the existing user in the database.

I developed a single sign on chek in .Net using Active Directory so when user type in http://portalwebsite/home/ it should check the current windows user authentication which I already developed in .net and then if they are authenticated.....it should directly redirect to the ASP page http://portalwebsite/home/home/ and if not then it should ask for the username and passowrd by my current existing ASP check at http://portalwebsite/home/

Can you please guide me how do i co-relate my both application ?

I appreciate your help.
 
Old April 13th, 2009, 05:19 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Well, the problem is that ASP and ASP.NET can't really "talk" to each other very well.

For example, they can *NOT* share session variables, and more than likely you are going to want to use Session variables to keep track of logged-in users.

But there are several ways to get around the problem. Probably the best way is to use a database table that is designed just for holding session information for *both* ASP and ASP.NET. And then you can use Response.Redirect from the ASP.NET signin and include a querystring that in turn holds an encrypted version of the userid or sessionid for the current user. If you use an encryption algorithm and password known only to you--and especially if you include something like the time of day in the encryption--then you should be reliably safe (after all, ASP session ids are just integers that are encrypted and stored in cookies, so you are even safer than that).





Similar Threads
Thread Thread Starter Forum Replies Last Post
Call outlook ASP.Net dani_adam71 .NET Framework 2.0 1 October 27th, 2008 08:15 AM
Call .exe from asp.net with c# vishwanath.yr ASP.NET 2.0 Basics 0 June 5th, 2006 04:10 AM
call window dialog component with asp.net/vb.net s3ng ASP.NET 1.x and 2.0 Application Design 0 June 21st, 2005 04:54 AM
How to call VC++ DLL from ASP/ASP.net? leesoon Classic ASP Professional 0 December 9th, 2004 10:06 PM
How can I call a vb.net Exe from an asp.net page? jorevil Classic ASP Basics 0 October 1st, 2003 11:34 AM





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