<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Architecture</title><link>http://forums.asp.net/16.aspx</link><description>Discuss and debate ASP.NET application designs. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=8&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Sending automatic emails</title><link>http://forums.asp.net/thread/3528386.aspx</link><pubDate>Mon, 23 Nov 2009 17:24:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528386</guid><dc:creator>batool</dc:creator><author>batool</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3528386.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3528386</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;How to send automatic emails to my list of subscribers&amp;#39; email&amp;nbsp;addresses&amp;nbsp;once I have updated something in my website.&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;batool&lt;/p&gt;</description></item><item><title>Polymorphism question</title><link>http://forums.asp.net/thread/3528701.aspx</link><pubDate>Mon, 23 Nov 2009 20:22:25 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3528701</guid><dc:creator>edhc44</dc:creator><author>edhc44</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3528701.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3528701</wfw:commentRss><description>&lt;p&gt;Hello all. I&amp;#39;m developing a system where I&amp;#39;m gonna use inherited classes and polymorphism to control its state, however, I ran into a setback. In my model, all possible states are gonna be derived from a base abstract State class, since I want its behavior to change dynamically depending on which state it is (therefore, I won&amp;#39;t need a ton of switches and if/elses; polymorphism works great in my case). The base class has a virtual method to access the database which is overriden by all derived classes, since diferent fields on the DB will be updated depending on which state the system is in.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But it&amp;#39;s not all about system state. The system has an &amp;quot;Edit mode&amp;quot; and I want the system to have a different behavior regardless of the state it is when calling the method to update the database - this behavior is different from all states but it is the same no matter what state the system is. To make it clear, depending on what state the system is, a different set of fields will be updated in the database when submiting data, but in edit mode, I want ALL fields to be updated. Before calling the update method, I tried to check if the system is in this state and if it is, I tried to cast the object calling the updateData method to the base class and call its implementation, but it doesn&amp;#39;t work and I read somewhere else that it&amp;#39;s not the way to do it (unfortunatelly, they didn&amp;#39;t say what IS the way). I wrote a very primitive system that mimicks the actual system workings to further clarify the problem:&lt;/p&gt;&lt;p&gt;File State.cs&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;    public enum SystemStatus&lt;br /&gt;    {&lt;br /&gt;        INITIAL, FINAL&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    public abstract class State&lt;br /&gt;    {&lt;br /&gt;        protected SystemStatus systemStatus;&lt;br /&gt;&lt;br /&gt;        public virtual string UpdateData()&lt;br /&gt;        {&lt;br /&gt;            return &amp;quot;Update all fields.&amp;quot;;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;File StartingState.cs&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;    public class StartingState : State&lt;br /&gt;    {&lt;br /&gt;        public StartingState()&lt;br /&gt;        {&lt;br /&gt;            systemStatus = SystemStatus.INITIAL;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public override string UpdateData()&lt;br /&gt;        {&lt;br /&gt;            return &amp;quot;Update fields regarding the initial state&amp;quot;;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;File FinalState.cs&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;    public class FinalState : State&lt;br /&gt;    {&lt;br /&gt;        public FinalState()&lt;br /&gt;        {&lt;br /&gt;            systemStatus = SystemStatus.FINAL;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        public override string UpdateData()&lt;br /&gt;        {&lt;br /&gt;            return &amp;quot;Update fields regarding the Final State.&amp;quot;;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;File Program.cs&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;    class Program&lt;br /&gt;    {&lt;br /&gt;        static void Main(string[] args)&lt;br /&gt;        {&lt;br /&gt;            StartingState startingState = new StartingState();&lt;br /&gt;            FinalState finalState = new FinalState();&lt;br /&gt;            State currentState = startingState;&lt;br /&gt;            bool editMode = false;&lt;br /&gt;&lt;br /&gt;            Console.Write(@&amp;quot;Currently the system is in its Initial State.&lt;br /&gt;Press &amp;#39;f&amp;#39; to go to the Final State or &amp;#39;e&amp;#39; to go to Edit Mode.&lt;br /&gt;Press return to call the Inicial State method&lt;br /&gt;&amp;quot;);&lt;br /&gt;            switch (Console.ReadLine())&lt;br /&gt;            {&lt;br /&gt;                case &amp;quot;f&amp;quot;: currentState = finalState; break;&lt;br /&gt;                case &amp;quot;e&amp;quot;: editMode = true; break;&lt;br /&gt;                default: break;&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            if (editMode)&lt;br /&gt;                //In Edit Mode, I want the system to update all data (use the base class method implementation)&lt;br /&gt;                Console.WriteLine(((State)currentState).UpdateData());&lt;br /&gt;            else&lt;br /&gt;                //Else, I want it to use the implementation regarding the current system state (initial or final)&lt;br /&gt;                Console.WriteLine(currentState.UpdateData());&lt;br /&gt;&lt;br /&gt;            Console.ReadLine();&lt;br /&gt;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I don&amp;#39;t thing using statements or namespaces are necessary to paste here and I added the enum attribute just so people don&amp;#39;t think the only thing the derived classes in the actual system do is calling the updateData method.&lt;br /&gt;Anyway, I thought of two possible solutions to this problem.&lt;br /&gt;1) Instead of trying to cast the currentState object to the base class, create an instance of the base class and call the method directly. That doesn&amp;#39;t work because the State class is not an actual State hence it would be stupid to instantiate it (I even made the class abstract);&lt;br /&gt;2) Create a non-virtual method in the base class, an &amp;quot;UpdateAll&amp;quot; of sorts and leave the UpdateData to be implemented only by the derived classes. Then, upon checking if the system is in Edit Mode or not, I&amp;#39;d call the currentState.UpdateAll () and that would be it. I don&amp;#39;t really have a problem in doing so but... &lt;b&gt;Is it the right way to do it? If not, what&amp;#39;s the best way to solve this issue?&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Does web.config files in subfolders not support &lt;probing privatePath="..." /&gt; ?</title><link>http://forums.asp.net/thread/3527941.aspx</link><pubDate>Mon, 23 Nov 2009 13:45:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527941</guid><dc:creator>Cybrosys</dc:creator><author>Cybrosys</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3527941.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3527941</wfw:commentRss><description>&lt;p&gt;Here&amp;#39;s a dilemma:&lt;/p&gt;
&lt;p&gt;I am developing for a CMS (Content Management System) and&amp;nbsp;the &amp;quot;modules/apps/widgets/...&amp;quot; can reference&amp;nbsp;and add any dlls to their &amp;quot;module&amp;quot;. The problem&amp;nbsp;is that all the&amp;nbsp;&amp;quot;modules&amp;quot; has to place their assemblies in the CMS&amp;#39;&amp;nbsp;/bin folder of course, otherwise the IIS won&amp;#39;t find them. So how can i avoid conflicting&amp;nbsp;.dll names and third party&amp;nbsp;control versioning hell (one modules uses v3 of&amp;nbsp;a&amp;nbsp;control while another uses v4 and depending on which module was installed&amp;nbsp;last, that module&amp;#39;s version of the&amp;nbsp;.dll will overwrite the other one).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So i found out about:&lt;/p&gt;
&lt;div style="FONT-FAMILY:Courier New;BACKGROUND:white;COLOR:black;FONT-SIZE:10pt;"&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style="COLOR:#a31515;"&gt;runtime&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style="COLOR:#a31515;"&gt;assemblyBinding&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;xmlns&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;urn:schemas-microsoft-com:asm.v1&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style="COLOR:#a31515;"&gt;probing&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;privatePath&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&amp;quot;&lt;span style="COLOR:blue;"&gt; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style="COLOR:#a31515;"&gt;assemblyBinding&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span style="COLOR:#a31515;"&gt;runtime&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;However, the modules can&amp;#39;t modify the CMS&amp;#39; web.config file, all they can do is have their own web.config files&amp;nbsp;with the above information that&amp;nbsp;is placed in the module&amp;#39;s subfolder, for example: /Custom/Modules/Blog/web.config&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the part that&amp;#39;s upsetting, the above xml does not work unless it&amp;#39;s in the CMS&amp;#39; web.config file, which renders it moot since the module&amp;#39;s can&amp;#39;t modify the CMS&amp;#39; web.config file...&lt;/p&gt;
&lt;p&gt;The dream scenario would be that the /bin folder is always searched recursively when a .dll needs to be loaded, thus every module can create their own subfolder in the CMS&amp;#39; /bin folder.&lt;/p&gt;</description></item><item><title>Data Access Layer help</title><link>http://forums.asp.net/thread/3525096.aspx</link><pubDate>Sat, 21 Nov 2009 04:30:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3525096</guid><dc:creator>JBeckton</dc:creator><author>JBeckton</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3525096.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3525096</wfw:commentRss><description>&lt;p&gt;Trying to learn ASP.Net but becoming increasingly confused about data access.&lt;/p&gt;
&lt;p&gt;Looking at building a web app with ASP.Net&amp;nbsp;I could not imagine not using some sort of separation of my database code from my UI code at the least, I also prefer using a service or business layer. So I am really trying to focus on implementing these layers properly. I am just learning .Net so I am not interested&amp;nbsp;in anything too difficult like an ORM and such.&lt;/p&gt;
&lt;p&gt;The problem I am having is I read in many places that using&amp;nbsp;datasets can lead to performance hits and the datareader is the most efficient way. But all the books,&amp;nbsp;online tutorials as well as videos I have purchased all demonstrate using datasets and very little if any on just plain datareader implementations. I also just read an article that mentioned passing a datareader up through the layers of your app is not possible so one would have to serialize the reader results or use collections etc.. but data bound controls require either a dataset or a datareader object.&lt;/p&gt;
&lt;p&gt;So if I am using a DAL and BLL&amp;nbsp;&amp;nbsp;can I use datareader? Unfortunately all the books and videos I have fail to explain in depth how to implement n-tiers and how they all communicate with each other.&lt;/p&gt;
&lt;p&gt;As for the methods in my DAL; getProducts(), getCategories() etc... what datatype should they return? a dataset or a datareader? if I need a dataset can&amp;#39;t i just create it in my BLL from the datareader that is passed up from the DAL?&lt;/p&gt;
&lt;p&gt;If I use objectDataSource&amp;nbsp;shouldn&amp;#39;t that&amp;nbsp;call methods in my BLL which in turn get the data from the DAL? if so what should my DAL return, a&amp;nbsp;dataset or datareader?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and lastly, datasets seem alot easier to use and have more features that the datareader; are they really all that bad on performance?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>A question of threading in my application</title><link>http://forums.asp.net/thread/3183310.aspx</link><pubDate>Sat, 23 May 2009 22:12:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3183310</guid><dc:creator>dogcow813</dc:creator><author>dogcow813</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3183310.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3183310</wfw:commentRss><description>First let me preface by saying I am a LAMP developer for 12yrs. I am new to .NET, I work in a LAMP shop but we need to use .NET to get this project working.


Heres the situation, we have a windows program that can take a street address and return long/lat coordinates from it (geocode). It has an API in C. We wanted to take these methods and expose them as a webservice so our LAMP based applications can access them and we can access them in javascript. I&amp;#39;ve managed to import the unmanaged C functions into C# already and have a basic running ver of it.

The problem is this.. the software limits you to only 8 concurrent API instances at one time. However, each API instance allows you to perform 32 concurrent geocode within that instance at once. 

So right now, I have it set up so each instance of the web service controls an API instance. It uses the threading.semaphore class so that if you call more than 8 instances at once, they have to wait until others finish ( or return a too busy error if timeout).

My question is there a way to set it up so that we can use the full power of 256 concurrent searches (8 instance * 32 search threads) ? 

In case you are wondering, the software we&amp;#39;re talking to through the API is designed for batch querying , we want to use it to just do 1 address at a time. 

Any help would be GREATLY appreciated.</description></item><item><title>VB.NET Class structure issue</title><link>http://forums.asp.net/thread/3527281.aspx</link><pubDate>Mon, 23 Nov 2009 08:03:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3527281</guid><dc:creator>nileshbs</dc:creator><author>nileshbs</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3527281.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3527281</wfw:commentRss><description>&lt;p&gt;Hello friends,&lt;/p&gt;
&lt;p&gt;I have&amp;nbsp;little doubt in&amp;nbsp;class&amp;nbsp;structure.&lt;/p&gt;
&lt;p&gt;I have following tables &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ChannelMaster (Id, Name, Status)&lt;/p&gt;
&lt;p&gt;SubChannelMaster (Id, Name, Status, ChannelId)&lt;/p&gt;
&lt;p&gt;Entity&amp;nbsp;(Id, Name, Status, ChannelId)&lt;/p&gt;
&lt;p&gt;SubChannel_Entitty (SubChannelId, EntityId)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What will be the Class structure for this? should I create classes for each table and add objects of reference classes (tables) or is there any another way?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;nilesh.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Generating and compiling C# code from within an ASP.NET application</title><link>http://forums.asp.net/thread/3524761.aspx</link><pubDate>Fri, 20 Nov 2009 20:38:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524761</guid><dc:creator>davepl_ms</dc:creator><author>davepl_ms</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3524761.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3524761</wfw:commentRss><description>&lt;p&gt;I have an ASP.NET 3.5 web application that generates, compiles, and&amp;nbsp;invokes a method to evaluate some complex math equations.&amp;nbsp; Works great on my dev environment, but on the deployment machine I am running&amp;nbsp;into permission problems.&lt;/p&gt;
&lt;p&gt;The first was the location of the&amp;nbsp;compiler temp files, which I moved to the current folder and that fixed that.&amp;nbsp; But now I am faced with w3wp.exe generating access exceptions when it tries to do the compile.&lt;/p&gt;
&lt;p&gt;Short of locating everything on the machine that the compiler needs and granting the ASPNET account access to it, what&amp;#39;s the best solution here?&amp;nbsp; And if there is no better solution, how do I determine the canonical set of things that ASPNET needs access to?&amp;nbsp; Obviously, I&amp;#39;m not thrilled with the prospect of cascading access too widely.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;br /&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Swapping out a Data Access Layer</title><link>http://forums.asp.net/thread/3526608.aspx</link><pubDate>Sun, 22 Nov 2009 20:33:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526608</guid><dc:creator>Freakish_05</dc:creator><author>Freakish_05</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3526608.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3526608</wfw:commentRss><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;&lt;p&gt;A general achitecture query query really...&lt;/p&gt;&lt;p&gt;I&amp;#39;m creating a component that may have to use different types of datasource (i.e. SQL, XML) depending on the deployment sinario.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve already written all the code for a SQL deployment and I&amp;#39;ve used the repository pattern in much the same way that Rob Conery did with his MVC Storefront tutorials.&lt;/p&gt;&lt;p&gt;Can someone please tell me how best to achieve this?&amp;nbsp; I&amp;#39;ve tried refactoring the data access classes (mainly the repository stuff) into a separate assembly but because both assemblies (business logic and data access) need to know about the interface, I&amp;#39;m getting a lot of circular dependency errors in Visual Studio.&lt;/p&gt;&lt;p&gt;My thanks in advance for any contributions to this thread.&lt;/p&gt;&lt;p&gt;Jason&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Recommendation System</title><link>http://forums.asp.net/thread/3526491.aspx</link><pubDate>Sun, 22 Nov 2009 17:49:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526491</guid><dc:creator>valerio006</dc:creator><author>valerio006</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3526491.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3526491</wfw:commentRss><description>&lt;p&gt;I am creating a web system which recommends submitted articles that are on the database to the current logged in user...are there any sort of publications that you know of that can push me in the right direction when it comes to actually implementing this sort of thing?&amp;nbsp; Right now the system just displays all articles from the database onto the front page, regardless of who you are logged in as.&amp;nbsp; I have seen numerous algorithms and system archtictures, but when it comes to actually PROGRAMMING a recommendation system, I&amp;#39;m still rather clueless...any ideas?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Business logic layer</title><link>http://forums.asp.net/thread/3526281.aspx</link><pubDate>Sun, 22 Nov 2009 13:03:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3526281</guid><dc:creator>Mitja Bonca</dc:creator><author>Mitja Bonca</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3526281.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3526281</wfw:commentRss><description>&lt;p&gt;I am learing programming for a bit more then 6 months, and recently someone told me my concept is not the best one, he proposed me that I rather split my code into business logic layer and data access layer.&lt;br style="padding:0px;margin:0px;" /&gt;&lt;br style="padding:0px;margin:0px;" /&gt;And now I would like to ask someone if he can help me out on a simple example of how to do business logic for this example (it`s about library):&lt;br style="padding:0px;margin:0px;" /&gt;&lt;br style="padding:0px;margin:0px;" /&gt;Database tables(Parameters):&lt;br style="padding:0px;margin:0px;" /&gt;&lt;br style="padding:0px;margin:0px;" /&gt;1. Author (IDAuthor, Name, SureName)&lt;br style="padding:0px;margin:0px;" /&gt;2. Book (IDBook, IDAuthorFK, Title)&lt;br style="padding:0px;margin:0px;" /&gt;&lt;br style="padding:0px;margin:0px;" /&gt;I would like to have methods:&lt;br style="padding:0px;margin:0px;" /&gt;1.1. Get author name and surename&lt;br style="padding:0px;margin:0px;" /&gt;1.2. Add new author (insert)&lt;br style="padding:0px;margin:0px;" /&gt;1.3. Update author&lt;br style="padding:0px;margin:0px;" /&gt;1.4. Delete author&lt;br style="padding:0px;margin:0px;" /&gt;&lt;br style="padding:0px;margin:0px;" /&gt;2.1 Get books (returns all books)&lt;br style="padding:0px;margin:0px;" /&gt;2.2. Get book by author`s ID (returns a value by author`s ID)&lt;br style="padding:0px;margin:0px;" /&gt;2.3. Add new book&lt;br style="padding:0px;margin:0px;" /&gt;2.4. Update book&lt;br style="padding:0px;margin:0px;" /&gt;2.5. Delete book&lt;/p&gt;</description></item><item><title>How to create Business Entities in .Net.</title><link>http://forums.asp.net/thread/3521693.aspx</link><pubDate>Thu, 19 Nov 2009 11:13:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3521693</guid><dc:creator>NagarajuK</dc:creator><author>NagarajuK</author><slash:comments>6</slash:comments><comments>http://forums.asp.net/thread/3521693.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3521693</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got a chance to design an architecture for a .net web application using .net 3.5. I started creating the architecture&amp;nbsp;by defining the following three layers.&lt;/p&gt;
&lt;p&gt;1. Presentation Layer.&lt;/p&gt;
&lt;p&gt;2. Business Layer.&lt;/p&gt;
&lt;p&gt;3. Data Access Layer.&lt;/p&gt;
&lt;p&gt;Now, I need to create a common layer called &amp;quot;Business Objects&amp;quot;(Entities) where&amp;nbsp;I need to create entities using classes. &lt;/p&gt;
&lt;p&gt;Can you please clarify the following queries?&lt;/p&gt;
&lt;p&gt;1. Should I create a seperate entity(class with fields and properties)&amp;nbsp;for each database table(&lt;strong&gt;more than 100 tables are there&lt;/strong&gt;)?&lt;/p&gt;
&lt;p&gt;2. If I create entity for each database table, how can I get different columns from different tables using sp/select query?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Nagaraju.K&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>ClientInfo - Session</title><link>http://forums.asp.net/thread/3524800.aspx</link><pubDate>Fri, 20 Nov 2009 21:05:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3524800</guid><dc:creator>Ozo</dc:creator><author>Ozo</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3524800.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3524800</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;use&amp;nbsp;ClientInfo to conenct database.&amp;nbsp;When user&amp;nbsp;login &amp;nbsp;the page,&amp;nbsp;ClientInfo create for user.&amp;nbsp;I use this to conenct database. I transfer the ClientInfo in Sessin Inproc Mode.&lt;/p&gt;
&lt;p&gt;Can you give me some addvice, which way I transfer the ClientInfo.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;</description></item><item><title>punchout request</title><link>http://forums.asp.net/thread/3523499.aspx</link><pubDate>Fri, 20 Nov 2009 08:33:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523499</guid><dc:creator>sanjit</dc:creator><author>sanjit</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3523499.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3523499</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;What I have to do - We have a web based procurement software that is run on client. When user click on supplier list , a list of suppliers appears. Now for example Dell is one of the supplier in the list and user click on Dell, then request go to Dell server(Dell Website) and open the catalog of Dell, then user select the products and the request comeback with the details of product to our server. Please advice me how can I do that. I search a lot on web but didnt get anything. &lt;/p&gt;
&lt;p&gt;Thanks &lt;/p&gt;</description></item><item><title>Loosely coupled DataBind class</title><link>http://forums.asp.net/thread/3519959.aspx</link><pubDate>Wed, 18 Nov 2009 15:24:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519959</guid><dc:creator>qarjami</dc:creator><author>qarjami</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3519959.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3519959</wfw:commentRss><description>&lt;p&gt;I have a class with 26 different &amp;quot;Public Dataset&amp;quot;&amp;nbsp;Fillproduct or fillCategory or FillStudent or FillOrder&lt;/p&gt;
&lt;p&gt;Is there such a way to make one method (more like loosely coupled) with optional parameters (cause each of this method has it&amp;#39;s own defined parameters)&amp;nbsp;&lt;/p&gt;</description></item><item><title>How to create an email with our own domain</title><link>http://forums.asp.net/thread/3514928.aspx</link><pubDate>Mon, 16 Nov 2009 09:30:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514928</guid><dc:creator>jmhemadri</dc:creator><author>jmhemadri</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3514928.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3514928</wfw:commentRss><description>&lt;p&gt;Hi All&lt;/p&gt;&lt;p&gt;I got a new requirement, the requirement is design a new application like yahoo email service. if the user register with out site we providing an email, so that he can view or compose emails from his boxes. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Can you please explain the setps to implement the above things or need to purchase softwares?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>ASP.NET Shopping Cart Design - SQL Table or Session Variables?</title><link>http://forums.asp.net/thread/3514505.aspx</link><pubDate>Mon, 16 Nov 2009 05:29:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514505</guid><dc:creator>BKirk</dc:creator><author>BKirk</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3514505.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3514505</wfw:commentRss><description>&lt;p&gt;To date i have been using ASP Classic, SQL Server Standard 2005 and Dreamweaver as my web development tool of choice. &lt;/p&gt;
&lt;p&gt;Now i&amp;#39;m moving into&amp;nbsp;ASP.NET with VWD, SQL Server 2005 and want to replicate my shopping cart system as best i can. &lt;/p&gt;
&lt;p&gt;I have been using the WebAssist eCart product for all my ASP Classic shopping cart needs which is incredibly powerful and flexible. Only problem is they don&amp;#39;t have a .NET version so i&amp;#39;ve decided to build my own from scratch.&lt;/p&gt;
&lt;p&gt;I was wondering the best approach for ASP.NET shopping cart design. I figure there are probably only 2 ways i&amp;#39;d like to go but not sure of the PROs vs. CONs?&lt;/p&gt;
&lt;p&gt;1) SQL Table design for storing all current cart sessions (public or logged in); OR&lt;/p&gt;
&lt;p&gt;2) Session State using Variables in current browser - This is how Webassist eCart was built which worked pretty good. &lt;/p&gt;
&lt;p&gt;Is there are special way i can contruct a secure, highly functional and customisable shopping cart in ASP.NET using classes, sql tables?&amp;nbsp; Or sessions?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>High Volume Websites Strategies...</title><link>http://forums.asp.net/thread/3519419.aspx</link><pubDate>Wed, 18 Nov 2009 10:02:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3519419</guid><dc:creator>Mark DotNet Evans</dc:creator><author>Mark DotNet Evans</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3519419.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3519419</wfw:commentRss><description>&lt;p&gt;Hi Folks,&amp;nbsp;does anyone have any advice for designing high volume websites?&amp;nbsp; All the sites I have done in the past have been relatively low demand sites so are there any techniques or considerations that I should be aware of when tackling this new website?&lt;/p&gt;
&lt;p&gt;All my sites employ N-Tier OOP architecture and I try to minimise the work the asp engine has to do on a per hit basis (be that using ajax or just through data organisation)&amp;nbsp;so I&amp;#39;m wondering what other things I need to consider?&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Mark&lt;/p&gt;</description></item><item><title>Hierarchical Roles</title><link>http://forums.asp.net/thread/1291289.aspx</link><pubDate>Fri, 19 May 2006 23:18:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1291289</guid><dc:creator>nick7272</dc:creator><author>nick7272</author><slash:comments>9</slash:comments><comments>http://forums.asp.net/thread/1291289.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=1291289</wfw:commentRss><description>I'm having trouble coming up with a good way of handling roles in my
application. I would like roles to have a hierarchy, such that if a
user is in the role "Sargeant" he can do all the things a "Foot
Soldier" can do.&lt;br /&gt;&lt;br /&gt;For the purposes of my example, assume my role hierarchy is:&lt;br /&gt;&lt;br /&gt;General&lt;br /&gt;-&amp;gt; Lieutenant&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; Sargeant&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  -&amp;gt; Foot Soldier&lt;br /&gt;&lt;br /&gt;Problems:&lt;br /&gt;&lt;br /&gt;1.
The .NET security framework doesn't support a hierarchy when it comes
to controlling access to views. In order to give access to a view to
all of my roles, in a web.config file I would have to list all of them.
I would prefer to simply say "Foot Soldier" can access the view and
assume that that implies that "Sargeant", "Lieutenant", and "General"
can all access the view.&lt;br /&gt;&lt;br /&gt;When dealing with this at the level of
the domain it's not an issue. I can rewrite the IPrincipals IsInRole
method to check whether a particular role is a child of another role.
I'll be doing this at the service/business facade layer.&lt;br /&gt;&lt;br /&gt;2.
Where to store the hierarchy? I assume XML is the best for this purpose
since once can easily define a hierarchy and XPath queries can easily
tell me if a more specific is a child of a more general role. This is
especially true if I have many branches to my role trunk. E.g.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Role 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  Role 2&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  Role 3&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  Role 4&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  Role 5&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  &amp;nbsp;&amp;nbsp;  Role 6&lt;br /&gt;&lt;br /&gt;I would want to say that Role 4 can do whatever Role 6 can do but not what Role 3 can do.&lt;br /&gt;&lt;br /&gt;3.
Relating users and roles. Roles must be represented as strings for the
.NET security framework, but are classes in my application. Therefore,
I've given each Role class a Name property. When I create my
IPrincipal, I iterate through the User's roles and add each Role.Name
to the IPrincipals private role collection. I'm not particularly happy
that I have to represent roles in two different ways but I can't think
of any alternatives.&lt;br /&gt;&lt;br /&gt;Anyway, these are some of the problems I'm dealing with. Does anyone have any thoughts?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>ASP.Net Project Like ERP</title><link>http://forums.asp.net/thread/3515754.aspx</link><pubDate>Mon, 16 Nov 2009 16:26:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515754</guid><dc:creator>Mahender Singh</dc:creator><author>Mahender Singh</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3515754.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3515754</wfw:commentRss><description>&lt;p&gt;Hello to All&lt;br /&gt;&lt;br /&gt;My self Mahender Singh and now i know little bit about Dot Net(C#) and SQL Server. I want to make a project for my practice and knowledge in these technology for&amp;nbsp;keen my skills like ERP or CRM projects. &lt;br /&gt;&lt;br /&gt;So can any one help me in this by sending the specification about project means what they(Industry) want. I need full specification for developing database as well as site.&lt;br /&gt;&lt;br /&gt;I shall be thankful to you.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Mahender Singh&amp;nbsp;&lt;/p&gt;</description></item><item><title>Creating methods on runtime with database-values</title><link>http://forums.asp.net/thread/3516341.aspx</link><pubDate>Mon, 16 Nov 2009 22:07:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3516341</guid><dc:creator>johannes.hiemer</dc:creator><author>johannes.hiemer</author><slash:comments>2</slash:comments><comments>http://forums.asp.net/thread/3516341.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3516341</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I got a question regarding dynamic method creation on runtime. My case looks like that: I have a database that stores different plattforms, each with different commands for doing the same thing in their enviroment. As an example for visualisation we take the method CreateUser().&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Plattform 1: CreateUser(string username, string password, string birthday, string email)...&lt;/span&gt; &lt;td&gt;&lt;/td&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Plattform 2: CreateUser(string username, string password, string email, string birthday)..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Depending on the type of runtime I want to call one of those methods getting the method-heads from the database. The example above is quite simplified. There much more complex cases. The methods are webservices.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any chance to that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks a lot for all ideas and help.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Access to page properties with bridge pattern</title><link>http://forums.asp.net/thread/3509615.aspx</link><pubDate>Thu, 12 Nov 2009 20:18:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3509615</guid><dc:creator>eniac0</dc:creator><author>eniac0</author><slash:comments>3</slash:comments><comments>http://forums.asp.net/thread/3509615.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3509615</wfw:commentRss><description>&lt;p&gt;Hi, ok so title is cryptic, and yet i couldn&amp;#39;t think of a better wording, allow me to explain.&lt;/p&gt;&lt;p&gt;I&amp;#39;m working on class that needs to provide the same functionality to two types of pages. To be specific, I have two sections in my application that are significantly different from each other but very close for a small part.&lt;/p&gt;&lt;p&gt;So, i created a base class and thought I&amp;#39;d just write a specific class for each that inherits. Both that doesn&amp;#39;t do because we&amp;#39;re in vb.net and the specific classes already inherits from a base class that THEY NEED to inherit from, a base class providing ground work for the specifics of the section.&lt;/p&gt;&lt;p&gt;So instead, I created an interface that matches the base call to be inherited from and made a bridge in the specific classes. following me ?&lt;/p&gt;&lt;p&gt;Now, i thought this was a done deal, everything compiles, i feel its actually beautiful as far as code can pretty. but it doesn&amp;#39;t work. I&amp;#39;m not sure why but i believe i know why (but not sure what to do)&lt;/p&gt;&lt;p&gt;The error that i get is that the Session object does not exist when the base class tries to get the enumerator of the keys collection. I think its because the base class is not in the context of the page (since i simply do a _base = new BaseClass)&lt;/p&gt;&lt;p&gt;and, if I&amp;#39;m correct, what&amp;#39;s the proper way to do this ?&lt;/p&gt;&lt;p&gt;Thank you so much.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here&amp;#39;s some code to help you understand, I&amp;#39;ve tried to reduce it only to what matters.&lt;/p&gt;&lt;p&gt;(its a bit lenghty but i try to give you bits of all the involved section)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;pre name="code" class="vb.net:showcolumns"&gt;#Region &amp;quot;  Agreement Base Control Interface &amp;quot;
Public Interface IDSAAgreementBase
	ReadOnly Property PageCode() As String
	Property Recordsets(ByVal name As String) As DataTable
	Property Recordsets(ByVal enumValue As enKeyIndex) As DataTable
	Property PageParameters() As Generic.Dictionary(Of String, Object)
	Property PageParameters(ByVal aPageCode As String) As Generic.Dictionary(Of String, Object)
	Property PageParameters(ByVal item As String, ByVal aDefault As Object) As Object
	ReadOnly Property PageParameters(ByVal aPageCode As String, ByVal item As String, ByVal aDefault As Object) As String
	Sub RefreshRecordsets()
	Sub generateDropdown(ByVal target As Object, ByVal recordsetType As IDSAAgreementBase.enKeyIndex, ByVal HeaderText As String, ByVal HeaderValue As String)
End Interface
#End Region

&amp;#39; *** Simplified code for the actual .aspx page using the CH Agreement Base Control ***
Partial Class AdminAgreementsHome : Inherits CHAdminAgreementsBaseControl
	Protected Overrides ReadOnly Property PageCode() As String
		Get
			Return DSAConstants.Sections.Agreements.PAGE_AGREEMENTS_HOME
		End Get
	End Property
End Class

&amp;#39; *** CH Agreement Base Control inherits from CH Base Control and implements interface and bridge pattern for the Agreement Base class ***
Public MustInherit Class CHAdminAgreementsBaseControl
	Inherits CHBaseUserControl
	Implements IDSAAgreementBase
	&amp;#39;In VB you cannot inherit multiple classes so we use a pattern called bridging to access
	&amp;#39;the properties of the Agreement Base control

	Private _base As AgreementsBaseControl

	Public Sub New()
		&amp;#39;Base class not getting into HTTP context since its simply initialized ?? (but it does inherit from UserControl)
		_base = New AgreementsBaseControl()
		_base.CallerCode = Me.PageCode
	End Sub
	
	Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
		Dim messages As Generic.List(Of Message) = Nothing
		&amp;#39; **** Crashes on next line ****
		If Me.PageParameters.TryGetValue(Agreements.PARAMETER_DELAYED_MESSAGES, messages) Then
			For Each aMessage As Message In messages
				Me.MainPage.AddPageMessage(aMessage)
			Next
			Me.PageParameters.Remove(Agreements.PARAMETER_DELAYED_MESSAGES)
		End If
	End Sub

#Region &amp;quot;  Agreement Base Bridge  &amp;quot;
	Protected MustOverride ReadOnly Property PageCode() As String Implements IDSAAgreementBase.PageCode

	Public Property PageParameters() As System.Collections.Generic.Dictionary(Of String, Object) Implements IDSAAgreementBase.PageParameters
		Get
			Return _base.PageParameters
		End Get
		Set(ByVal value As System.Collections.Generic.Dictionary(Of String, Object))
			_base.PageParameters = value
		End Set
	End Property
#End Region	
	
End Class

#Region &amp;quot;  Agreement Base Control Class  &amp;quot;
Public Class AgreementsBaseControl
	Inherits UserControl
	Implements IDSAAgreementBase

	&amp;#39;This will be used by base classes to set the calling page
	&amp;#39;This is to allow &amp;quot;forcing&amp;quot; the page code to remain readonly as per the design
	Public WriteOnly Property CallerCode() As String
		Set(ByVal value As String)
			m_strPageCode = value
		End Set
	End Property

	Public ReadOnly Property PageCode() As String Implements IDSAAgreementBase.PageCode
		Get
			Return m_strPageCode
		End Get
	End Property
	
	&amp;#39;&amp;#39;&amp;#39; &amp;lt;summary&amp;gt;
	&amp;#39;&amp;#39;&amp;#39; Returns the Page Parameters for the specified page code, slower than PageParameters()
	&amp;#39;&amp;#39;&amp;#39; &amp;lt;/summary&amp;gt;
	&amp;#39;&amp;#39;&amp;#39; &amp;lt;value&amp;gt;&amp;lt;/value&amp;gt;
	&amp;#39;&amp;#39;&amp;#39; &amp;lt;returns&amp;gt;a Generic dictionary of objects&amp;lt;/returns&amp;gt;
	&amp;#39;&amp;#39;&amp;#39; &amp;lt;remarks&amp;gt;Will create an empty dictionary automatically if it doesn&amp;#39;t exist&amp;lt;/remarks&amp;gt;
	Public Property PageParameters(ByVal aPageCode As String) As Generic.Dictionary(Of String, Object) Implements IDSAAgreementBase.PageParameters
		Get
			Dim dicPageParams As Generic.Dictionary(Of String, Object) = Nothing
			Dim sessionEnum As System.Collections.IEnumerator = Nothing

			If aPageCode = String.Empty Then
				Throw New ArgumentNullException(&amp;quot;aPageCode parameter not set&amp;quot;)
			End If
			
			&amp;#39; **** BOOM ! - No session ****
			sessionEnum = Session.Keys.GetEnumerator
			While sessionEnum.MoveNext
				If CType(sessionEnum.Current, String) = aPageCode Then
					dicPageParams = DirectCast(Session(aPageCode), Generic.Dictionary(Of String, Object))
					Exit While
				End If
			End While
			If dicPageParams Is Nothing Then
				dicPageParams = New Generic.Dictionary(Of String, Object)
			End If

			Return dicPageParams
		End Get
		Set(ByVal value As Generic.Dictionary(Of String, Object))
			If aPageCode = String.Empty Then
				Throw New ArgumentNullException(&amp;quot;aPageCode parameter not set&amp;quot;)
			End If
			Session(aPageCode) = value
		End Set
	End Property
End Class
#End Region&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Referencing a project from diffrent solution</title><link>http://forums.asp.net/thread/3514797.aspx</link><pubDate>Mon, 16 Nov 2009 08:20:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514797</guid><dc:creator>Zcumbag</dc:creator><author>Zcumbag</author><slash:comments>4</slash:comments><comments>http://forums.asp.net/thread/3514797.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3514797</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a solution wich includes a SilverLight-project of mine. I want to somehow add a reference to this project (ie it&amp;#39;s xap-file) from some of my asp.net projects that exist in other solutions. How would I do this? Can I register my SL-project as an assembly in my asp.net-project?&lt;/p&gt;&lt;p&gt;/D&lt;/p&gt;&lt;p&gt;PS.&amp;nbsp;I could ofcourse simply refernece its virtual path on my localhost, but that does not sound like a good solution, perticularly not when I want to deploy my asp.net solution.&lt;/p&gt;</description></item><item><title>Need Some Info from Ajax Programmers</title><link>http://forums.asp.net/thread/3514130.aspx</link><pubDate>Sun, 15 Nov 2009 22:03:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3514130</guid><dc:creator>geminizebra</dc:creator><author>geminizebra</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3514130.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3514130</wfw:commentRss><description>&lt;p&gt;Hi, everyone!&lt;br /&gt;&lt;br /&gt;I’m working on an entrepreneurship project and my group needs your help in figuring out some of the details.&lt;br /&gt;&lt;br /&gt;To give you the basic rundown of our project, our idea is to develop a new experience when shopping online. Instead of using the traditional, linear online storefront, customers will use a very user-friendly online web application (programmed with Ajax) to shop. We want to simulate the experience of physically shopping by having a layout of the virtual store in front of them. The most important thing is that the application needs to sync up to retail databases to show inventory availability.&lt;br /&gt;&lt;br /&gt;Since many of you are programmers, I need information regarding the set-up and operations of this project. Even your best rough estimate would be incredibly helpful. If you could answer just one of my questions, I would be extremely grateful.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;It’ll take quite a bit of server space to store the information within the application, but how much server space, bandwidth, etc. will be necessary to maintain this kind of application?&lt;/li&gt;&lt;li&gt;How would graphics, usability features, customization, and anything that makes the application more complex affect customer’s ability to access the application, affect the cost to maintain, etc.?&lt;/li&gt;&lt;li&gt;How long would it take to program and set up this kind of application?&lt;/li&gt;&lt;li&gt;How much would it cost to set this up? &lt;br /&gt;&lt;/li&gt;&lt;li&gt;How much would it cost to maintain this?Ajax looks like the best programming option, but is there another you think would work better?&lt;/li&gt;&lt;li&gt;How much would it cost to set up the actual website that would be hosting the application?&lt;/li&gt;&lt;li&gt;I know Google Maps uses something similar to this – would having the store in 3D be too much for it to handle?&lt;/li&gt;&lt;li&gt;If you have any extra information on cost, time, set-up, operations, etc., please let me know!&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt;Thank you so much for your help! If you’re willing to talk to me a little more, explain how programming this would work or if you know anyone who I could contact to get more info, I would love the extra resource. Please just send me a PM and I’ll give you my contact info.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Ashley&lt;/p&gt;</description></item><item><title>search across external punch-out websites / urls</title><link>http://forums.asp.net/thread/3515401.aspx</link><pubDate>Mon, 16 Nov 2009 13:42:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3515401</guid><dc:creator>gsrs_shane</dc:creator><author>gsrs_shane</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3515401.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3515401</wfw:commentRss><description>&lt;p&gt;Hi , &lt;/p&gt;
&lt;p&gt;I have&amp;nbsp; a web application where in I need to search across external urls .&lt;/p&gt;
&lt;p&gt;The Scenario is :-&amp;nbsp; if I need to search for a laptop from sony /dell .&lt;/p&gt;
&lt;p&gt;I will give laptop from my application, it should across sony and dell sites &amp;nbsp;and give the info on my application and when I click on particular item , it should redirect me to that site.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please let me know how to go with this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards,&lt;/p&gt;
&lt;p&gt;Shane&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>IoC instead of Visitor Pattern</title><link>http://forums.asp.net/thread/3513249.aspx</link><pubDate>Sun, 15 Nov 2009 04:03:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3513249</guid><dc:creator>WhatThe12</dc:creator><author>WhatThe12</author><slash:comments>1</slash:comments><comments>http://forums.asp.net/thread/3513249.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=16&amp;PostID=3513249</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I was wondering if anyone has ever used Spring.Net or Unity in order to avoid implementing the visitor pattern?&lt;/p&gt;
&lt;p&gt;Cheers, WT.&lt;/p&gt;</description></item></channel></rss>