473,289 Members | 2,106 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,289 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 896
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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.