Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Server Side Includes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Server Side Includes

 Post Reply Post Reply Page  <12
Author
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 08 November 2003 at 2:22am

Originally posted by IrishNewbie IrishNewbie wrote:

thanks guys, i can see myself using this site an awful lot over the next few months!!!!!!!!

Forgive him Lord, for he knoweth not where his path leadeth him


Lead me not into temptation... I know the short cut, follow me.
Back to Top
IrishNewbie View Drop Down
Newbie
Newbie


Joined: 06 November 2003
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote IrishNewbie Quote  Post ReplyReply Direct Link To This Post Posted: 09 November 2003 at 6:41am

I've been looking at sites about User Controls but was wondering if someone could give me an explanation of them in their own words and maybe point me in the right direction for using them to include a top and left hand side on every page.

 

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2003 at 9:07pm

Another alternative if you want to include some common functionality in every page, is create a custom page class which inherits from system.web.ui.page.  Place your common code in this class.

You then create all your pages to inherit from this custom class, rather than system.web.ui.page.

Very nifty for user tracking, exception handling etc..

Cheers,
Andrew

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2003 at 1:42am
Originally posted by MorningZ MorningZ wrote:

I wouldn't even remotely recommend using SSI anymore... all comes down to:

if you are going to learn .NET, then code in .NET

User controls are a whole nuther world.. they are replacable/selectable (unlike SSI and how many posts do we see with: "how can i selectively include files" in which the answer is always: you can't), plus they are cachable (<<== very killer stuff, and if you want more info, i can give it)

 Yeah, I wish it was that simple.  We have this problem where we have hundreds of pages in ASP, and all our headers and footers are ASP includes, and then we hired a developer to create something for our site... and he decided to write it in ASP.NET... even though our site is in ASP!

It's been a nightmare trying to get ASP and ASP.NET on the same page.  We finally figured out how to do it, but it wasn't obvious at all.  We actually have to call the ASP header and footer, and then insert the results of the call into the ASP.NET page.  A weird way of doing it, but it works.

( Here's the link BTW:
http://authors.aspalliance.com/stevesmith/articles/netscrape .asp )

We don't have the time or the manpower to maintain an ASP header and footer and also a ASP.NET header and footer for the same website, much less rewrite all the ASP stuff.

But at least the nice thing about all this is that now we can use the same technique to put an ASP header and footer around a Perl Script!  We just have to make the perl script an ASP.NET page and then use the technique explained in the link above.

I already have plans on converting a couple perl scripts to ASP.NET so we could include our ASP headers and footers.

I know that is not how we are supposed to do it, but we are not going to rewrite our entire website.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2003 at 1:47am
It does slows a bit down, since more DLL's are called (my theory). Anyway, if it works,
Gone..
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2003 at 1:59am

Originally posted by Diep-Vriezer Diep-Vriezer wrote:

It does slows a bit down, since more DLL's are called (my theory). Anyway, if it works,

It was either that or make him rewrite it in ASP.  And we have a deadline, so that wasn't really an option either.  And our preliminary tests seem to work out fine with this method.  We may eventually come up with a better solution, but we are kinda under the gun.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 08 December 2003 at 7:03am

Haha, well it works alright, and you can always rebuild it again, maybe in .NET.

Gone..
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.