Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
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 March 26th, 2008, 01:04 AM
Friend of Wrox
Join Date: May 2005
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default send parameters from asp page to an asp.net form

Hello all!
Is there any one can hel me to send parameter from an asp page to an asp.net form? both pages are in one folder but it gives me error when I run it.It gives me an error related to webconfig file as below:
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Line 26: <authentication mode="None"/>
Thank you

Old March 26th, 2008, 07:14 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

The error you are getting is related to your directory not being setup up as an application in IIS. Goto Start --> Run --> Inetmgr to start the IIS SnapIn. Navigate to your website directory, right click, and select properties from the Context Menu. A properties window will appear.

Click the 'Create' button found on the lower right portion of this window then click apply. Before you click OK check to see if you have an ASP.NET tab across the top of this window (it will be the last tab on the right hand side) if you do click on that tab. The first property is Version and, by default, 2.0 should be the selected value, change this to reflect which version of the framework the directory should use.

Finally, to answer your real question: IMHO the best way to pass values between an ASP and ASP.NET application is to pass the value via query string. If the information is sensitive you could write the information to a database and then just pass a database ID along through the query string. You can not access ASP Session values in ASP.NET and vice versa.


================================================== =========
Read this if you want to know how to get a correct reply for your question:
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
Old March 29th, 2008, 01:32 AM
Friend of Wrox
Join Date: May 2005
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan

Dear dparson
Thank you for your help and the useful link.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we send ASP Page as Attachement lakshmi_annayappa ASP.NET 1.0 and 1.1 Basics 2 May 5th, 2007 11:11 PM
Generate preview page from ASP.NET form rdove84 C# 0 October 9th, 2006 04:09 PM
send MASS Emails in ASP.NET 2 with VB.NET 2005 alexdcosta ASP.NET 2.0 Basics 1 July 17th, 2006 12:31 AM
Send E-mail from .asp page LiDenning Classic ASP Professional 2 April 28th, 2006 05:42 PM
displaying images in form page using ASP.net louie001 ASP.NET 1.0 and 1.1 Basics 0 February 23rd, 2006 06:26 AM

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