473,795 Members | 3,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

compiled DLL's and performance

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
Nov 19 '05
13 1251
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
DataGridSortCom mandEventArgs) Handles dgrdStkHst.Sort Command
Call bindDataGrid("s tkhstX")
End Sub
It give me this error when run: 'INDEXBUILDDail y._try.Private Sub
SortGrid(objSen der As Object, objArgs As
System.Web.UI.W ebControls.Data GridSortCommand EventArgs)' 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.mic rosoft.com> a écrit dans le
message de news:F7******** *************** ***********@mic rosoft.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.Ne t 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.mic rosoft.com> a écrit dans le message de news:F4******** *************** ***********@mic rosoft.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


Nov 19 '05 #11
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.mic rosoft.com> wrote in message
news:4B******** *************** ***********@mic rosoft.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.mic rosoft.com> wrote in message news:F4******** *************** ***********@mic rosoft.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


Nov 19 '05 #12
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.mic rosoft.com> wrote in message
news:4B******** *************** ***********@mic rosoft.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.mic rosoft.com> wrote in message news:F4******** *************** ***********@mic rosoft.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


Nov 19 '05 #13
Do you use System.Web.UI.W ebControls.Data Grid ? Or do you use a grid that
inherits from this grid ?

Patrice

--

"Kurt Schroeder" <Ku***********@ discussions.mic rosoft.com> a écrit dans le
message de news:D0******** *************** ***********@mic rosoft.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
DataGridSortCom mandEventArgs) Handles dgrdStkHst.Sort Command
Call bindDataGrid("s tkhstX")
End Sub
It give me this error when run: 'INDEXBUILDDail y._try.Private Sub
SortGrid(objSen der As Object, objArgs As
System.Web.UI.W ebControls.Data GridSortCommand EventArgs)' 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.mic rosoft.com> a écrit dans le message de news:F7******** *************** ***********@mic rosoft.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.Ne t 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.mic rosoft.com> a écrit
dans le
> message de

news:F4******** *************** ***********@mic rosoft.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
>
>
>


Nov 19 '05 #14

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

Similar topics

22
2439
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 well-known authority on this. thanks
2
3606
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 ASP, it's all source code. Is there a way to "compile" my ASP application so that when I upload the application to the hosting company, my propriety work will remain unrevealed? Second question, if I update my ASP applcation to ASP.NET, would...
0
1431
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 called Architecture.Web.DLL. One of the controls within that assembly references an enumeration in another framework .DLL - Architecture.services.dll. Both assemblies are strongly named. The target deployment scenario for our framework is to have...
5
2322
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 successfully from other C++ code (both native and managed) and it works fine. I would like to figure out the shortest and most convenient path to making this library callable from other ..NET languages. The function signatures in this librariy's API are...
4
5072
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 projects, when compiled in VS.NET, doesn't automatically update the DLL on the server. Instead, the DLL just sits in the VSWebCache on my local PC. However, the other projects I;m working on don't have this problem. I have spent quite a bit of time...
7
1095
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 slows the system down. Is there any possibility to put all these files in one DLL - like to precompile the whole site ?
1
2413
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, and the newly named file is in the bin directory, shouldn't the web project run fine? I did this and instead I get the following error: The located assembly's manifest definition with name 'CodeAsset.1.1' does
16
6747
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 = 3; I know its setting aside storage for the variable itself; does it also use up more storage if the variable name is longer? I realize it would probably take quite a lot of long variable names to make any impact if so, but I was just curious...
40
2380
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 value in the register Move the addition's result to place x
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10437
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7538
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.