p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 5th, 2009, 12:20 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 7 WorkflowTransition.aspx

Chapter 7 WorkflowTransition.aspx page has the following method:

private void LoadMethodDropDownList(int entWorkflowId)
{
ENTWorkflowEO workflow = new ENTWorkflowEO();
if (workflow.Load(entWorkflowId))
{
//Create an instance of the type.
MethodInfo[] methods = Type.GetType(workflow.ENTWorkflowObjectName).GetMe thods(
BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public );
//Load the methods for this workflow that return a boolean value into the
//conditions drop down list.
foreach (MethodInfo mi in methods)
{
//Only methods that take a parameter of a data context can be used.
ParameterInfo[] parameters = mi.GetParameters();
if (parameters.Length == 1)
{
if (parameters[0].ParameterType ==
typeof(V2.PaidTimeOffDAL.HRPaidTimeOffDataContext) )
{
ddlPostTransitionMethodName.Items.Add(mi.Name);
}
}
}
ddlPostTransitionMethodName.Items.Insert(0, “”);
}
else
{
throw new Exception(“The workflow can not be found in the database.”);
}
}

Unless I reference this UI project to the DAL project, this code , typeof(V2.PaidTimeOffDAL.HRPaidTimeOffDataContext) , will not work.

I am surprised that no one has this issue yet. Is there a fix beside reference the UI project to the DAL project?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 6th, 2009, 12:49 PM
Authorized User
Points: 319, Level: 6
Points: 319, Level: 6 Points: 319, Level: 6 Points: 319, Level: 6
Activity: 80%
Activity: 80% Activity: 80% Activity: 80%
 
Join Date: Mar 2009
Posts: 72
Thanks: 4
Thanked 4 Times in 4 Posts
Default

I think you are right. I checked one of my projects real quick and my UI does have a reference to the DAL. However, I noticed that the UI has a reference to all classes.

I see where you are coming from though, this is a 3 tier and the UI should communicate only with the BLL and BLL communicates with the DAL and UI. I worked the book backwards so I never really caught it, good find.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the default.aspx in chapter 1? jkacher BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 February 29th, 2008 02:30 PM
Problems in Chapter 2 - Default.aspx nduckste BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 October 30th, 2006 11:50 PM
Chapter 2 datacontrol.aspx frogfur BOOK: Beginning ASP.NET 1.0 1 March 19th, 2005 12:59 PM
Chapter 1. Punctual.aspx dad62896 BOOK: Beginning ASP.NET 1.0 9 January 27th, 2004 01:11 PM
Chapter 3, listpage2.aspx jhock7 BOOK: Beginning ASP.NET 1.0 3 December 9th, 2003 04:19 PM



All times are GMT -4. The time now is 09:52 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc