473,405 Members | 2,444 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,405 software developers and data experts.

Trans from ASP to ASP.NET 2.0 via 1.0

I find myself in an interesting dilemma. I know both VB6 and ASP. Also, I
have to take a bunch of ASP pages into ASP.NET 2.0, so I bought three good
books for 2.0. Here is the real clincher--the present state of the project
is in ASP.NET 1.0. (I didn't write the original version, I have just gotten
involved.)

I understand ASP just fine, where all of the code is on the page. I also
understand from the ASP.NET 2.0 books that there are now .vb files with the
code behind the page. The mystery for me . . . is 1.0 the same? I am going
over the .aspx page with a fine-tooth comb and cannot find any reference to
a .vb file and there is no code on the page, and yet somehow the .aspx page
is (1) running a query on the database, and (2) displaying the results in a
table. I cannot figure out how the page can do this. Just so you know, I
am an experienced programmer in several other languages (C++, HTML, Delphi,
PHP, VB6, etc.), although I am just beginning to learn ASP.NET, so it is not
like I am missing any file references that are obvious.

I have text-searched the .aspx file for the following strings (case
insensitive): VB, SELECT, SQL, RecordSet, Database, and query. None of
those strings are in the file!

While I am starting to get a handle on 2.0 through the books, maybe I will
need to learn 1.0 also. I hope not. Can anyone explain what is going on?

Thanks,
Tony
May 12 '06 #1
3 900
Is there an Inherits property on the page declaration?
<%@ Page Inherits="SomeClass" %>

If so, your code is probably elsewhere and compiled into a DLL in the
/bin directory.

You can use codebehind, or you can tell the page which class to use.
Which method you go with is up to you. I prefer to specify the class
and compile all my pages at once just in case someone modifies a page
class file and forgets to test the page. This happens with depressing
frequency, and at least this way I can catch compile time errors in
codebehind.

May 12 '06 #2
Both 1.x and 2.0 use a code page model. 2.0 has changed the model, but it
can still use 1.x assemblies. To make things truly 2.0, you will have a
small bit of migration into partial classes, but that is it.

As for the reference to a code file, look at the @Page tag at the top of the
page. it will point to the file. If you are using Visual Studio .NET, you
can either choose "show all files" in the solution explorer or click the
"show code" button when the aspx page is selected. You will then see the
code.

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"Anthony Bollinger" <to*******@NEVERsendto.org> wrote in message
news:uC****************@TK2MSFTNGP04.phx.gbl...
I find myself in an interesting dilemma. I know both VB6 and ASP. Also, I
have to take a bunch of ASP pages into ASP.NET 2.0, so I bought three good
books for 2.0. Here is the real clincher--the present state of the project
is in ASP.NET 1.0. (I didn't write the original version, I have just
gotten involved.)

I understand ASP just fine, where all of the code is on the page. I also
understand from the ASP.NET 2.0 books that there are now .vb files with
the code behind the page. The mystery for me . . . is 1.0 the same? I am
going over the .aspx page with a fine-tooth comb and cannot find any
reference to a .vb file and there is no code on the page, and yet somehow
the .aspx page is (1) running a query on the database, and (2) displaying
the results in a table. I cannot figure out how the page can do this.
Just so you know, I am an experienced programmer in several other
languages (C++, HTML, Delphi, PHP, VB6, etc.), although I am just
beginning to learn ASP.NET, so it is not like I am missing any file
references that are obvious.

I have text-searched the .aspx file for the following strings (case
insensitive): VB, SELECT, SQL, RecordSet, Database, and query. None of
those strings are in the file!

While I am starting to get a handle on 2.0 through the books, maybe I will
need to learn 1.0 also. I hope not. Can anyone explain what is going on?

Thanks,
Tony

May 13 '06 #3
Both of your tips were great help. I think I am getting there, but I'll be
back.

Thanks!
Tony
May 13 '06 #4

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

Similar topics

0
by: will | last post by:
Im trying to replicate the action of enable-trans-sid with a script. e. g throw a function a html page/string and it will replace all links - relative or absolute - with a variable at the end....
3
by: James | last post by:
PHP is making a right mess at the moment and insists on putting a PHPSESSID in forms, urls and other spots on a script I am running. Is there any way to stop it doing this? Part of the issue is...
2
by: Tim Smith | last post by:
I have a lot of code which follows the general pattern below. Is there an easy (or hard) way of avoiding repeating the same code over and over. I do need to manage the connection at this level,...
29
by: Armand Karlsen | last post by:
I have a website ( http://www.zen62775.zen.co.uk ) that I made HTML 4.01 Transitional and CSS compliant, and I'm thinking of converting it into XHTML to learn a little about it. Which XHTML variant...
2
by: Tim Smith | last post by:
I have a lot of code which follows the general pattern below. Is there an easy (or hard) way of avoiding repeating the same code over and over. I do need to manage the connection at this level,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.