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

Can I compile regular ASP-code in to an aspx-file?

Hi everyone, i've heard that aspx-files can be compiled
code so that the webserver just have to deal with the code
once, is that true?

I'm a complete newbie to .NET, i've never made anything in
ASP.NET but i've been coding ASP for approx. 3 years.

The reason I'm asking is because I have this menu that
have x numbers of database connections and it takes like
one second after the graphics before the menu appears.

That's why I had this question about compiled code, I just
wan't the webserver to deal with the database connection
in the menu the first time I surf to that specific page.

Nov 17 '05 #1
3 1957

YES

-----Original Message-----
Hi everyone, i've heard that aspx-files can be compiled
code so that the webserver just have to deal with the codeonce, is that true?

I'm a complete newbie to .NET, i've never made anything inASP.NET but i've been coding ASP for approx. 3 years.

The reason I'm asking is because I have this menu that
have x numbers of database connections and it takes like
one second after the graphics before the menu appears.

That's why I had this question about compiled code, I justwan't the webserver to deal with the database connection
in the menu the first time I surf to that specific page.

.

Nov 17 '05 #2
All code that is run on a web server, whether it's ASP or ASP.Net, is
compiled. ASP uses scripting, which is compiled at run time, each time the
page is requested. ASP.Net uses a variety of options, including compiled
DLLs and code that is compiled at run-time and then cached, to increase
performance. In other words, ASP pages are recompiled with each request,
while ASP.Net pages are compiled once and then cached.

However, this doesn't solve all of your problems. If you have a menu that is
getting its' members from database queries, the code to get the data may be
compiled, yes, but it must still be executed, and the database values have
to be fetched with each request for any page that contains that menu. If the
menu content doesn't change very often, you would probably do best to cache
the data that is fetched for the menu, so that it can be grabbed straight
out of memory, rather than fetching it from the database with each request.
Database hits are one of the most expensive operations an application can
execute.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"Göran Carlefyr" <go***@proserva.com> wrote in message
news:0a****************************@phx.gbl...
Hi everyone, i've heard that aspx-files can be compiled
code so that the webserver just have to deal with the code
once, is that true?

I'm a complete newbie to .NET, i've never made anything in
ASP.NET but i've been coding ASP for approx. 3 years.

The reason I'm asking is because I have this menu that
have x numbers of database connections and it takes like
one second after the graphics before the menu appears.

That's why I had this question about compiled code, I just
wan't the webserver to deal with the database connection
in the menu the first time I surf to that specific page.

Nov 17 '05 #3
All code that is run on a web server, whether it's ASP or ASP.Net, is
compiled. ASP uses scripting, which is compiled at run time, each time the
page is requested. ASP.Net uses a variety of options, including compiled
DLLs and code that is compiled at run-time and then cached, to increase
performance. In other words, ASP pages are recompiled with each request,
while ASP.Net pages are compiled once and then cached.

However, this doesn't solve all of your problems. If you have a menu that is
getting its' members from database queries, the code to get the data may be
compiled, yes, but it must still be executed, and the database values have
to be fetched with each request for any page that contains that menu. If the
menu content doesn't change very often, you would probably do best to cache
the data that is fetched for the menu, so that it can be grabbed straight
out of memory, rather than fetching it from the database with each request.
Database hits are one of the most expensive operations an application can
execute.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
lots of little things.

"Göran Carlefyr" <go***@proserva.com> wrote in message
news:0a****************************@phx.gbl...
Hi everyone, i've heard that aspx-files can be compiled
code so that the webserver just have to deal with the code
once, is that true?

I'm a complete newbie to .NET, i've never made anything in
ASP.NET but i've been coding ASP for approx. 3 years.

The reason I'm asking is because I have this menu that
have x numbers of database connections and it takes like
one second after the graphics before the menu appears.

That's why I had this question about compiled code, I just
wan't the webserver to deal with the database connection
in the menu the first time I surf to that specific page.

Nov 17 '05 #4

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

Similar topics

8
by: stoptv | last post by:
Hello group, this is my dilemma: ------------------------------------------------------------------------ #include <iostream> using namespace std; // a regular manipulator ostream & hello(...
4
by: Buddy | last post by:
Can someone please show me how to create a regular expression to do the following My text is set to MyColumn{1, 100} Test I want a regular expression that sets the text to the following...
3
by: Joe | last post by:
Hi, I have been using a regular expression that I don’t uite understand to filter the valid email address. My regular expression is as follows: <asp:RegularExpressionValidator...
2
by: Sehboo | last post by:
Hi, I have several regular expressions that I need to run against documents. Is it possible to combine several expressions in one expression in Regex object. So that it is faster, or will I...
3
by: Lisa Bogart | last post by:
I am trying to take a string and parse it out into multiple strings based on a pattern but am stuck and am hoping someone can give me a clue. My pattern looks like so: sMatch =...
9
by: Pete Davis | last post by:
I'm using regular expressions to extract some data and some links from some web pages. I download the page and then I want to get a list of certain links. For building regular expressions, I use...
8
by: Michael Primeaux | last post by:
I'm somewhat new to regular expressions and am in need of assistance. I'd like to match on any OBJECT, EMBED, or APPLET element nested inside an <HTML> element. Would someone point me in the right...
6
by: David | last post by:
I'm having trouble getting the regular expression validator to work with a text box. In this simple example I only want lower case letters to be allowed. So I tried the following and it doesn't...
0
by: Zorg | last post by:
Hello, I try to compile this example : http://www.boost.org/libs/regex/example/snippets/captures_example.cpp but I get this error : ~/developpement/essai_regex/boost$ g++ -o test...
0
by: Zorg | last post by:
Hello, I try to compile this example : http://www.boost.org/libs/regex/example/snippets/captures_example.cpp but I get this error : ~/developpement/essai_regex/boost$ g++ -o test...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.