Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 February 9th, 2005, 04:46 PM
Authorized User
 
Join Date: Jan 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default point in the right direction, please

I am writing a page in ASP.NET to interface with a page that is already written in asp. The page in asp has a list of user names, UserID's, request status, and request number.

The way the page is set up you click on the UserID to view the individual's request page, and it pulls all of the info from various databases together and populates the various fields in a new page (the one that I'm re-writing).

The way the old page I'm re-writting pulls in the various fields for the page is it calls this line of code in asp...

Session("userid") = Request.QueryString("userid")

then the individual fields are populated with a segment of code like this.
<%=rs.Fields("RasGroup")%> -- or like this -- <%=trim(rs.fields("Notes"))%>

I don't know how to do the equivalent of either of those things in asp. Does anyone happened to know if the same code will work in ASP.NET or a direction to point me into?

I already have the new page written and a sql query selecting everything yet I'm not sure how to get to stored sql query to actually print in the fields. I'm also not sure of how to get the page to automatically pull in the userid selection from the page before. Any help on either would be highly appreciated.

Sorry for being so blind on this one.

regards,

Chris

 
Old February 10th, 2005, 06:51 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

You cant share session value between asp & aspx pages.Pass the userid in the querystring.
Use server controls in aspx page and you can set the value for the controls using Text property.

 
Old February 10th, 2005, 07:40 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

Make use of sql server database to share sessions between asp and aspx. Just google for "Sharing session between ASP and ASP.NET" there are enough resources available.

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Direction!!! daivan Intro Programming 2 May 3rd, 2006 12:09 PM
Looking for design direction on database Phill VB Databases Basics 1 June 29th, 2004 02:26 AM
Query Direction?? bph SQL Server 2000 7 May 11th, 2004 09:45 AM
Which direction to go? Jedidia HTML Code Clinic 3 December 2nd, 2003 03:12 PM
Need help or direction Ankleburner Forum and Wrox.com Feedback 1 October 30th, 2003 02:52 PM





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