473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

asp.net posting to classic asp problem.

Hi,

We currently have a classic asp web application.

We are currently looking at upgrading this to ASP.NET.

However I have a couple of problems that need to be resolved.

1. aspx forms always post back to themselves. how do I get it to post to
another web page.

2. I have an aspx page with several html text boxes when I submit the form I
need to be able to post to a classic asp page and get the contents of the
text boxes. Normally in classic asp I would do a request.form("controlname"),
how do I achieve this with ASP.Net posting to a classic asp page.

--

Regards

Rob
Nov 18 '05 #1
2 1599
You could use a modified form control that allows to post to another URL
than itself (you'll find likely several on the Internet). You could also
likely alter this using javascript.

That said it's likely better to tweak this only if you have a very solid
reason to. A third option would be to use System.NEt.WebCLient server side
so that the whole process is done using ASP.NET and the ASP page is just
seen as a "service". It could alllow more easily to convert later if
needed...

Hope it helps.
--

"Rob Shorney" <Bi****@community.nospam> a écrit dans le message de
news:72**********************************@microsof t.com...
Hi,

We currently have a classic asp web application.

We are currently looking at upgrading this to ASP.NET.

However I have a couple of problems that need to be resolved.

1. aspx forms always post back to themselves. how do I get it to post to
another web page.

2. I have an aspx page with several html text boxes when I submit the form I need to be able to post to a classic asp page and get the contents of the
text boxes. Normally in classic asp I would do a request.form("controlname"), how do I achieve this with ASP.Net posting to a classic asp page.

--

Regards

Rob

Nov 18 '05 #2
Thanks a lot for Patrice's informative suggestions.

Hi Rob,

In addition to Patrice's sugggestions, here are some of my understandings:

1. The ASP.NET web page use post back( post to self page) is because
that'll make all the things be done in one page and all the related tasks
can be centralized. And we don't have to use multi pages to finish a
certain workflow( what we do in asp). In other words , this may be
considered as the different design concept ion between asp.net and asp.
Also, if you do want to let the aspx page post to another page, you can
use some tricks as Patrice has mentioned, here is a tech article
demonstrate this:

#Post an ASP.NET form with JavaScript
http://www.thecodeproject.com/aspnet/jsnopostback.asp

2. As for you second question, how to retreive the values in the comming
asp.net page's textboxes in classic asp page( yes?). I think this is the
same as what we do between asp page's posting . Because all the asp.net
textbox control is also rendered into html as a <input type=text ...>
element so if the comming request is posted from an asp.net page which
contains some TextBoxes control, we can find their value in the Form
collection, (by default the "name" of the item in Form collection is just
the TExtBoxes's control ID on asp.net page).

If you have any other questions, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
2
by: jason | last post by:
the enterprise is going to eventually convert the existing ASP Classic website to ASP.NET until that time, development has already begun for a C# library of business objects. for the most part,...
6
by: John | last post by:
Hello. I believe I've read somewhere that classic .asp pages will still operate correctly with no problems with the .NET 1.1 framework installed on a Windows 2000 Server server. Does anyone know...
2
by: Peter2 | last post by:
Hi, I have a problem posting non-ASCII characters in FORM fields between classic ASP and ASP.NET. I use a fully patched Windows 2000 Advanced Server with .net 2.0 and visual Studio 2005 installed,...
2
by: needin4mation | last post by:
I can't find out if Microsoft supports "Classic" asp or if they only support asp.net? I'm not really sure what support means in either context, really, except that they tell customers not to use...
8
by: antonyliu2002 | last post by:
We are extending a web application written in classic ASP long time ago. We will add more components to this web application in ASP.NET 2.0. To use the web application, our web users will have...
11
by: mase | last post by:
I've built a new ASP.NET web app with the CSLA framework. The site runs fine with a small number of users, but once there is any traffic the CPU spikes at 100%. I went through and made many updates...
0
by: sandeepk84 | last post by:
Hi all... I am facing a problem in getting attachments from Yahoo Classic using JavaMail. My program reads the attachments from gmail and Yahoo Beta. But attachments of type pdf or txt from...
15
by: erik.oosterwaal | last post by:
Hi All, I have been developing websites in classic asp using VB script for a long while now. Due to the fact that I also took a detour to developing ColdFusion, and the fact the companies I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.