variables lifetime...

Speedy

New member
Joined
Jun 6, 2003
Messages
1
Hello, I am new to this forum as well as new with .Net.

I worked with asp before and the only way to keep variables living was session variables...Is it the same way with .Net...then whats the point with the aspx.vb file ?
Many of the tutorials Ive been through are still putting the code in the aspx page where you dont have the useful help as in aspx.vb file. I thought the point of having that file was to make the code easier. Does anyone have a suggestion foor a good book that teaches ASP.Net in the "Right Way". Or have I got it all wrong...

Thank You all
Speedy
 
"ASP.Net Step by Step" by Microsoft
(title is not accurate, this book covers also advanced topics).
I have used this book prepering to MCP Exam.
 
You are right, many book use aspx file without aspx.vb, but there are some advantages of using aspx.vb (so called code-behind) compare with aspx (normal ASP way).

For exmaple: you can separate your UI and logic; hide your source, because the source in code-behind will compile to dll file, so you just deploy the dll file without the asp.vb file; furthermore, performance of code-behind is faster compare with aspx file....

You can still use "Application", "Session" or "Cookies" as what you did in ASP.... :)

Read this forum more frequently, then you know better about ASP.NET... :) haha....
 


Write your reply...
Back
Top