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 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 26th, 2008, 01:04 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
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


  #2 (permalink)  
Old March 26th, 2008, 07:14 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

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.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
  #3 (permalink)  
Old March 29th, 2008, 01:32 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

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

 


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
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



All times are GMT -4. The time now is 05:02 PM.


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