HighTechTalks DotNet Forums  

Web Control Performance???

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Web Control Performance??? in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
ozgur develioglu
 
Posts: n/a

Default Web Control Performance??? - 07-05-2003 , 11:17 AM






Hi,

I need help on web controls. When should I use web control on my page
and when should I use a request to another asp page or a "include" phase?

For example, in front of writing "include"s in my page as a classic
method in ASP, I can use simply a user web control in ASP.NET. But the
question is which one gives more performance and what are the
disadvantages??

Same question for;
"request to another aspx page" vs "web control"?

Thanks A Lot...

Ozgur....



Reply With Quote
  #2  
Old   
ozgur develioglu
 
Posts: n/a

Default Re: Web Control Performance??? - 07-07-2003 , 04:23 AM






Thanks for your interest.

Let me explain it differently:

We have an ASP.NET web site. When you are surfing inside our site, if
something wrong happened we lance a Error Message Box at the top of the
page.

We can make this simply by calling another asp page as a function: say that
"LanceErr.aspx?err=ErrorHappened". And we can call this whenever we want to
lance an error.

Or we can create a user control like LanceErr.ascx and register it in all
our pages. When we need to lance an error,we can set the visible property of
the control "True". And "False" when we dont need it.

We are guessing which way is effcient??

Thanks again...



"Victor Garcia Aprea [MVP]" <vga (AT) NOobiesSPAM (DOT) com> wrote

Quote:
Hi ozgur,

A Web User Control is the natural replacement for UI includes files in
ASP.NET. Its really difficult to guess how your use of UC may affect
performance without knowing lots of details about your app.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"ozgur develioglu" <ozgurdevelioglu (AT) yahoo (DOT) com> wrote in message
news:uqKq$iwQDHA.2424 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi,

I need help on web controls. When should I use web control on my
page
and when should I use a request to another asp page or a "include"
phase?

For example, in front of writing "include"s in my page as a classic
method in ASP, I can use simply a user web control in ASP.NET. But the
question is which one gives more performance and what are the
disadvantages??

Same question for;
"request to another aspx page" vs "web control"?

Thanks A Lot...

Ozgur....







Reply With Quote
  #3  
Old   
Victor Garcia Aprea [MVP]
 
Posts: n/a

Default Re: Web Control Performance??? - 07-07-2003 , 09:03 PM



Hi Ozgur,

You don't really need to register a uc on every page. ASP.NET does offer
good built-in support for handling with the case you're describing. Take a
look at the <customErrors> element and at the Event error (available in Page
and Application). With a combination of both you can write some good error
handling code in your app. Give it a try and feel free to post any problems
you encounter while doing so.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"ozgur develioglu" <ozgurdevelioglu (AT) yahoo (DOT) com> wrote

Quote:
Thanks for your interest.

Let me explain it differently:

We have an ASP.NET web site. When you are surfing inside our site, if
something wrong happened we lance a Error Message Box at the top of the
page.

We can make this simply by calling another asp page as a function: say
that
"LanceErr.aspx?err=ErrorHappened". And we can call this whenever we want
to
lance an error.

Or we can create a user control like LanceErr.ascx and register it in all
our pages. When we need to lance an error,we can set the visible property
of
the control "True". And "False" when we dont need it.

We are guessing which way is effcient??

Thanks again...



"Victor Garcia Aprea [MVP]" <vga (AT) NOobiesSPAM (DOT) com> wrote in message
news:uaCq9vBRDHA.4024 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi ozgur,

A Web User Control is the natural replacement for UI includes files in
ASP.NET. Its really difficult to guess how your use of UC may affect
performance without knowing lots of details about your app.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the
newsgroup
and not by private mail.

"ozgur develioglu" <ozgurdevelioglu (AT) yahoo (DOT) com> wrote in message
news:uqKq$iwQDHA.2424 (AT) tk2msftngp13 (DOT) phx.gbl...
Hi,

I need help on web controls. When should I use web control on my
page
and when should I use a request to another asp page or a "include"
phase?

For example, in front of writing "include"s in my page as a
classic
method in ASP, I can use simply a user web control in ASP.NET. But
the
question is which one gives more performance and what are the
disadvantages??

Same question for;
"request to another aspx page" vs "web control"?

Thanks A Lot...

Ozgur....









Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.