Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 19th, 2007, 03:29 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Also, when you are working with the web site model page classes can't see other page's classes. I use a technique I call "strongly typed redirection" which requires compile time knowledge of other page classes. If I used a web site I couldn't use that technique. For large applications, this would make maintenance and feature additions very difficult.

I have a build system that uses the XML based project file to create file lists for automated compilation and deployment. If I used the web site model, I'd only have the source repository to work with. There would be no way to know what files should or shouldn't be included in a project build or deployment. Most developers are not so good about cleaning up source control when things get removed or relocated.

(I'm glad to see Imar is coming back from the "dark side" ;) )

Old July 19th, 2007, 03:34 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Well, I had lots of fun on the dark side..... ;)


Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
Old July 20th, 2007, 03:24 AM
Authorized User
Join Date: May 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to swifty_programmer

Hi all,

Thx all for the reactions. I must say it's difficult for a beginning devloper to choose the good model. But as I said, I don't have a choice in this case. All things mentioned by you I indeed read in those links, but thanks for the help.

Gonzalo, my updatepanel is declared and use in my PageBase (a class library inheriting Page) in the WebUtilities Project, not in a page in the Web App project.

Originally I indeed tried to acces my custom classes in the Old_App_Code dir. And indeed it's just a dir like any other dir, the problem is that for some reason I can't acces those classes. Why? I don't know. So I wanted to put those classes in a seperate WebUtilities project, but that failes to its seems.

My method in this WebUtility class is:

public void CreateMessageAlertInUpdatePanel(UpdatePanel updatePanel, string message, string scriptKey)
            System.Web.UI.ScriptManager.RegisterStartupScript(updatePanel, this.GetType(), scriptKey, "alert('" + message + "');", true);

And the compiler does not recognise this UpdatePanel, I asume because it's not a WebSite or WebApp with AJAX enabled but a simple library class project.

Thx for al response in advance!


Old July 20th, 2007, 04:00 AM
Authorized User
Join Date: May 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to swifty_programmer

Ok guys, I should read more about "don't ask syupid questions".
I forgot to add the reference to System.Web.Extension.
Thx for all help, I have still a lot of issues with my migrating,
if I found a extra issue I REALY can't find on any forum or with google, then I come back here.

Cya all
Old July 20th, 2007, 08:05 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi

Imar, Always nice to find a nice and usefull explain about an issue :) thanks for your time..., also thanks Peter for your help too...and I'm happy that lawrence found a solution to his problem :)



================================================== =========
Read this if you want to know how to get a correct reply for your question:
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
================================================== =========
I know that CVS was evil, and now i got the proof:
================================================== =========

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET Web Application Administration dcct84 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 September 24th, 2007 04:28 PM
performance tuning of asp.net web application swati_joshi ASP.NET 1.0 and 1.1 Basics 3 July 24th, 2006 09:42 AM
can't open asp.net web application project phyzie C# 3 September 26th, 2005 11:40 AM
Convert ASP web application to ASP.NET Steve777 ASP.NET 1.0 and 1.1 Basics 3 June 2nd, 2005 07:26 AM
RAISERROR on my ASP.NET Web Application ozzy SQL Server 2000 3 April 17th, 2005 11:29 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.