does compiling the code behind source using studio give and performance boost?
this is a rephrase of an a question i posted yesterday. To be honist VS.net
is becomming a pain to work with for asp.net. Vb.net and c.net hey, no
problem, but asp.net it seems to create way too much over head and
complication. thanks for listening and would appreciate an opinion.
thanks
kes 13 1213
Anyway it always execute compile code ? What are you seeing exactly ? Is it
the first time you hit a page ? Or each time you access the page ?
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and performance
boost? this is a rephrase of an a question i posted yesterday. To be honist
VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
I'm by no means an expert on this, but coming from JSPs and linux, I have a
slightly different perspective than your typical MS/VB/Windows user.
From what I've learned, everything is compiled as far as .net is concerned,
to intermediate language (IL), and further compiled upon execution into
executable code for Windows. On IIS, with ASPX, if things are slow, you
might be dealing with a killed process. That's what I'm running into. One
thing MS did to help stop DOS attacks, they kill the process if it's got no
activity on it for 20m or something like that. Of course you can change it,
or even disable it.
re too much overhead
JSPs are not that bad, but when you start adding in servlet (java's version
of the code behind, I know, I know, it's not exactly the same, but
sufficient for drawing parallels), and modifying the web.xml for every
servlet addition is a pain too! And then when you add in the IDE (I'm using
JB @ w) and then you have two code bases for multiple projects.....uh man it
just gets complicated, and there's only so much ANT tasks can help to
automate. Believe, me, I'm having more fun with VS @ h than I am with
JB/java @ w.
Good luck with it. Keep it up, it will reward you.
When you start two threads with the same question, you probably should post
a followup to your original post. It makes it easier to reply. Plus if you
question wasn't answered, follow up with us, and we will followup with you.
Unless you have a rolling 12 hour post...
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and performance
boost? this is a rephrase of an a question i posted yesterday. To be honist
VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
thanks for responding,
I knew that the pages got compiled on the first hit. I was not asking about
the first time hit or a specific page, but a general question. I hav elearned
according to another post that there is no difference once the source is
compiled first hit by a Browser. The over-head issue was a question about the
VisualStudio.Net development environment. It seems to add a lot more
complacation than apears necessary. for example the class creates Private
Subs for the general controls such as buttons and links. That's ok, but it
gets me a little confussed because the same automatic subs are not generated
for some other objects like DataGrid Events. And here the subs need to be
declared as not private. I'm guessing there is a ways to do this correctly,
but i still don't know how.
"Patrice" wrote: Anyway it always execute compile code ? What are you seeing exactly ? Is it the first time you hit a page ? Or each time you access the page ?
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le message de news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and performance boost? this is a rephrase of an a question i posted yesterday. To be honist VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
please see my reply to Patrice.
And Thanks for responding.
If i may ask how do you declare a sub for a datagrid event as private? All
the subs generated by VS.NET are but gatagrid events ar enot autogenerated.
thanks
kes
"Flip" wrote: I'm by no means an expert on this, but coming from JSPs and linux, I have a slightly different perspective than your typical MS/VB/Windows user.
From what I've learned, everything is compiled as far as .net is concerned, to intermediate language (IL), and further compiled upon execution into executable code for Windows. On IIS, with ASPX, if things are slow, you might be dealing with a killed process. That's what I'm running into. One thing MS did to help stop DOS attacks, they kill the process if it's got no activity on it for 20m or something like that. Of course you can change it, or even disable it.
re too much overhead JSPs are not that bad, but when you start adding in servlet (java's version of the code behind, I know, I know, it's not exactly the same, but sufficient for drawing parallels), and modifying the web.xml for every servlet addition is a pain too! And then when you add in the IDE (I'm using JB @ w) and then you have two code bases for multiple projects.....uh man it just gets complicated, and there's only so much ANT tasks can help to automate. Believe, me, I'm having more fun with VS @ h than I am with JB/java @ w.
Good luck with it. Keep it up, it will reward you.
Hi, Kurt.
As others have already expressed, there's
very little or no performance boost, except
for a very minimal one for the first user.
I understand your point about
VS.NET being a lot of overhead.
Nevertheless, some of its features are essential
if you don't want to spend years developing an app.
Intellisense, integrated debugging, point-and-shoot property
settings, integrated help with F1, and many other features,
like deployment projects, integrated source code management,
etc., make VS.NET the tool of choice for developing .NET apps,
ASP.NET included.
For small-project developers who just want to be
able to create websites, and who don't need the
enterprise features built into VS.NET, Microsoft
is releasing Visual Web Developer, which is like
VS.NET, but geared only for ASP.NET development.
You might find it worthwhile to
start familiarizing yourself with it.
It's way above Web Matrix, which it substitutes.
The release of ASP.NET 2.0 is not too far away,
so this is the right time to start checking out VWD. http://lab.msdn.microsoft.com/express/vwd/default.aspx
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
=====================
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and performance boost? this is a rephrase of an a question i posted yesterday. To be honist VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
saw your posting from early this morning, thanks you. comment noted.
"William F. Robertson, Jr." wrote: When you start two threads with the same question, you probably should post a followup to your original post. It makes it easier to reply. Plus if you question wasn't answered, follow up with us, and we will followup with you.
Unless you have a rolling 12 hour post...
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and performance boost? this is a rephrase of an a question i posted yesterday. To be honist VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
So this is not a performance problem ?
Granted there are some plumbing going on behind the scene but it should
really show up only on rare occasions and is likely needed.
..NET also creates some code to perform actions done "visually" (is this
those private subs you are talking about or do yu mean protected variable
declarations ?). I don't see those "need to be declared as *not* private"
procedures you are talking about. AFAIK subs handling datagrid events are
private and you have to write them ???..
You may want to give us a precise sample of the code you are referring to...
ASP.NET 2.0 should still hide a bit more of this plumbing (such as having a
declaration in the ASPX page doesn' t require to have a programmatic
declaration in the code behind + DataSource controls are not creating code
etc...).
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:F7**********************************@microsof t.com... thanks for responding, I knew that the pages got compiled on the first hit. I was not asking
about the first time hit or a specific page, but a general question. I hav
elearned according to another post that there is no difference once the source is compiled first hit by a Browser. The over-head issue was a question about
the VisualStudio.Net development environment. It seems to add a lot more complacation than apears necessary. for example the class creates Private Subs for the general controls such as buttons and links. That's ok, but it gets me a little confussed because the same automatic subs are not
generated for some other objects like DataGrid Events. And here the subs need to be declared as not private. I'm guessing there is a ways to do this
correctly, but i still don't know how.
"Patrice" wrote:
Anyway it always execute compile code ? What are you seeing exactly ? Is
it the first time you hit a page ? Or each time you access the page ?
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans
le message de news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and
performance boost? this is a rephrase of an a question i posted yesterday. To be honist VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
thanks again, and i have a question,
VS. net auto defines the subs as private in created class. How can sub
created manuelly be declared as private, or should they not be? Reason i'm
asking is that vs.net does not create subs based on events raised by a
datagrid.
thank you
"William F. Robertson, Jr." wrote: When you start two threads with the same question, you probably should post a followup to your original post. It makes it easier to reply. Plus if you question wasn't answered, follow up with us, and we will followup with you.
Unless you have a rolling 12 hour post...
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and performance boost? this is a rephrase of an a question i posted yesterday. To be honist VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
this is a running discussion so i apologize if question s appear more than
once.
and some answers also:
this is a a simple sub declaration to do a sort
Private Sub SortGrid(ByVal objSender As Object, ByVal objArgs As
DataGridSortCommandEventArgs) Handles dgrdStkHst.SortCommand
Call bindDataGrid("stkhstX")
End Sub
It give me this error when run: 'INDEXBUILDDaily._try.Private Sub
SortGrid(objSender As Object, objArgs As
System.Web.UI.WebControls.DataGridSortCommandEvent Args)' is not accessible in
this context because it is 'Private'.
if not declared private it runs and calls a sub that is private. I seems to
me that it should be declared as private, but i really don't know that much
(i mean it).
well, even when it does run the datagrid disappears. I can get ti to sort,
but only if i do it seprate from the data grid using a button control, ...
for now i'd just be happy to figure why it does not want to be declared
private
thanks
kes
"Patrice" wrote: So this is not a performance problem ?
Granted there are some plumbing going on behind the scene but it should really show up only on rare occasions and is likely needed.
..NET also creates some code to perform actions done "visually" (is this those private subs you are talking about or do yu mean protected variable declarations ?). I don't see those "need to be declared as *not* private" procedures you are talking about. AFAIK subs handling datagrid events are private and you have to write them ???..
You may want to give us a precise sample of the code you are referring to...
ASP.NET 2.0 should still hide a bit more of this plumbing (such as having a declaration in the ASPX page doesn' t require to have a programmatic declaration in the code behind + DataSource controls are not creating code etc...).
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le message de news:F7**********************************@microsof t.com... thanks for responding, I knew that the pages got compiled on the first hit. I was not asking about the first time hit or a specific page, but a general question. I hav elearned according to another post that there is no difference once the source is compiled first hit by a Browser. The over-head issue was a question about the VisualStudio.Net development environment. It seems to add a lot more complacation than apears necessary. for example the class creates Private Subs for the general controls such as buttons and links. That's ok, but it gets me a little confussed because the same automatic subs are not generated for some other objects like DataGrid Events. And here the subs need to be declared as not private. I'm guessing there is a ways to do this correctly, but i still don't know how.
"Patrice" wrote:
Anyway it always execute compile code ? What are you seeing exactly ? Is it the first time you hit a page ? Or each time you access the page ?
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le message de news:F4**********************************@microsof t.com... > does compiling the code behind source using studio give and performance boost? > this is a rephrase of an a question i posted yesterday. To be honist VS.net > is becomming a pain to work with for asp.net. Vb.net and c.net hey, no > problem, but asp.net it seems to create way too much over head and > complication. thanks for listening and would appreciate an opinion. > thanks > kes
Private subs mean they can only be called from inside the class, in this
case your page class. Typically you will only call events for an WebControl
on the page that it is on, so them being private is okay.
I am a C# guy, but I created a vb web application. I was able to use VS.Net
to generate stubs for DataGrid events.
From the codebehind screen, you should see two drop down lists across the
top of your code. Pull the first one down, and you should see you DataGrid.
Select it.
It will change the second one, the one on the right. It will have a list of
DataGrid events. Drop that list down and select the event you want to
handle. It will generate your stub for you.
If you want to create it manually, you will have to type it all out, pretty
much exactly as the generated code looks like.
HTH,
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com... thanks again, and i have a question, VS. net auto defines the subs as private in created class. How can sub created manuelly be declared as private, or should they not be? Reason i'm asking is that vs.net does not create subs based on events raised by a datagrid. thank you
"William F. Robertson, Jr." wrote:
When you start two threads with the same question, you probably should
post a followup to your original post. It makes it easier to reply. Plus if
you question wasn't answered, follow up with us, and we will followup with
you. Unless you have a rolling 12 hour post...
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in
message news:F4**********************************@microsof t.com... does compiling the code behind source using studio give and
performance boost? this is a rephrase of an a question i posted yesterday. To be honist VS.net is becomming a pain to work with for asp.net. Vb.net and c.net hey, no problem, but asp.net it seems to create way too much over head and complication. thanks for listening and would appreciate an opinion. thanks kes
thank you very much!!!
kes
"William F. Robertson, Jr." wrote: Private subs mean they can only be called from inside the class, in this case your page class. Typically you will only call events for an WebControl on the page that it is on, so them being private is okay.
I am a C# guy, but I created a vb web application. I was able to use VS.Net to generate stubs for DataGrid events.
From the codebehind screen, you should see two drop down lists across the top of your code. Pull the first one down, and you should see you DataGrid. Select it.
It will change the second one, the one on the right. It will have a list of DataGrid events. Drop that list down and select the event you want to handle. It will generate your stub for you.
If you want to create it manually, you will have to type it all out, pretty much exactly as the generated code looks like.
HTH,
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message news:4B**********************************@microsof t.com... thanks again, and i have a question, VS. net auto defines the subs as private in created class. How can sub created manuelly be declared as private, or should they not be? Reason i'm asking is that vs.net does not create subs based on events raised by a datagrid. thank you
"William F. Robertson, Jr." wrote:
When you start two threads with the same question, you probably should post a followup to your original post. It makes it easier to reply. Plus if you question wasn't answered, follow up with us, and we will followup with you. Unless you have a rolling 12 hour post...
bill
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> wrote in message news:F4**********************************@microsof t.com... > does compiling the code behind source using studio give and performance boost? > this is a rephrase of an a question i posted yesterday. To be honist VS.net > is becomming a pain to work with for asp.net. Vb.net and c.net hey, no > problem, but asp.net it seems to create way too much over head and > complication. thanks for listening and would appreciate an opinion. > thanks > kes
Do you use System.Web.UI.WebControls.DataGrid ? Or do you use a grid that
inherits from this grid ?
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans le
message de news:D0**********************************@microsof t.com... this is a running discussion so i apologize if question s appear more than once. and some answers also: this is a a simple sub declaration to do a sort
Private Sub SortGrid(ByVal objSender As Object, ByVal objArgs As DataGridSortCommandEventArgs) Handles dgrdStkHst.SortCommand Call bindDataGrid("stkhstX") End Sub It give me this error when run: 'INDEXBUILDDaily._try.Private Sub SortGrid(objSender As Object, objArgs As System.Web.UI.WebControls.DataGridSortCommandEvent Args)' is not accessible
in this context because it is 'Private'. if not declared private it runs and calls a sub that is private. I seems
to me that it should be declared as private, but i really don't know that
much (i mean it). well, even when it does run the datagrid disappears. I can get ti to sort, but only if i do it seprate from the data grid using a button control, ...
for now i'd just be happy to figure why it does not want to be declared private thanks kes "Patrice" wrote:
So this is not a performance problem ?
Granted there are some plumbing going on behind the scene but it should really show up only on rare occasions and is likely needed.
..NET also creates some code to perform actions done "visually" (is this those private subs you are talking about or do yu mean protected
variable declarations ?). I don't see those "need to be declared as *not*
private" procedures you are talking about. AFAIK subs handling datagrid events
are private and you have to write them ???..
You may want to give us a precise sample of the code you are referring
to... ASP.NET 2.0 should still hide a bit more of this plumbing (such as
having a declaration in the ASPX page doesn' t require to have a programmatic declaration in the code behind + DataSource controls are not creating
code etc...).
Patrice
--
"Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit dans
le message de news:F7**********************************@microsof t.com... thanks for responding, I knew that the pages got compiled on the first hit. I was not asking about the first time hit or a specific page, but a general question. I hav elearned according to another post that there is no difference once the source
is compiled first hit by a Browser. The over-head issue was a question
about the VisualStudio.Net development environment. It seems to add a lot more complacation than apears necessary. for example the class creates
Private Subs for the general controls such as buttons and links. That's ok,
but it gets me a little confussed because the same automatic subs are not generated for some other objects like DataGrid Events. And here the subs need to
be declared as not private. I'm guessing there is a ways to do this correctly, but i still don't know how.
"Patrice" wrote:
> Anyway it always execute compile code ? What are you seeing exactly
? Is it > the first time you hit a page ? Or each time you access the page ? > > Patrice > > -- > > "Kurt Schroeder" <Ku***********@discussions.microsoft.com> a écrit
dans le > message de
news:F4**********************************@microsof t.com... > > does compiling the code behind source using studio give and performance > boost? > > this is a rephrase of an a question i posted yesterday. To be
honist > VS.net > > is becomming a pain to work with for asp.net. Vb.net and c.net
hey, no > > problem, but asp.net it seems to create way too much over head and > > complication. thanks for listening and would appreciate an
opinion. > > thanks > > kes > > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ajay |
last post by:
hi!
is there an authoritative source on the performance of scripting languages
such as python vs. something like java, c, c++.
its for a report, so it would be awesome if i could quote some...
|
by: Ed |
last post by:
I want to pay a monthly fee to a hosting company to host my ASP application.
I have some propriety designs in my ASP application which I'm reluctant to
expose the source code. Unfortunately, with...
|
by: Matt Billock |
last post by:
Hello all,
I was wondering if anyone could provide me with some assistance with
and error I have been observing. Our current set of framework .dlls
defines custom user controls in an assembly...
|
by: Bern McCarty |
last post by:
I have a DLL written in C++ (it's really C code that was adjusted to compile
OK as C++) that I compile successfully into IL with the /CLR switch of
Visual C 7.1. I use the resultant library...
|
by: BH |
last post by:
I'm working on several ASP.NET projects at the same time. I have a separate
web server and each has its own solution folder on my local PC. The strange
thing I noticed is that one of the...
|
by: Bogdan Nedelcu |
last post by:
Hello,
I have some projects which have lot of aspx files. I notice that for each
file, the ASP.NET compiles one .DLL in the Temporary ASP.NET folder + 3 or
for aditional files.
I think this...
|
by: Jed |
last post by:
I have a DLL that I compiled to CodeAsset.dll.
The version is 1.1.0.0.
If I rename the file from CodeAsset.dll to CodeAsset.1.1.dll, reference it
in a web project, recompile the web project,...
|
by: John |
last post by:
Does the length of my C variable names have any affect, performance-wise, on
my final executable program? I mean, once compiled, etc., is there any
difference between these two:
number = 3;
n =...
|
by: castironpi |
last post by:
I'm curious about some of the details of the internals of the Python
interpreter:
I understand C from a hardware perspective.
x= y+ 1;
Move value from place y into a register
Add 1 to the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
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
|
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...
|
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...
| |