<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Technology Bits and Bytes &#187; murulidhara.k</title>
	<atom:link href="http://blogs.circlesource.com/author/murulidharak/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.circlesource.com</link>
	<description>CircleSource Technical Talent ShowCase</description>
	<lastBuildDate>Thu, 10 Dec 2009 20:01:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamically Changing MasterPage</title>
		<link>http://blogs.circlesource.com/2009/04/27/dynamically-changing-masterpage/</link>
		<comments>http://blogs.circlesource.com/2009/04/27/dynamically-changing-masterpage/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 10:49:21 +0000</pubDate>
		<dc:creator>murulidhara.k</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Baseclass]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Cookies]]></category>
		<category><![CDATA[Inheritence]]></category>
		<category><![CDATA[MasterPage]]></category>
		<category><![CDATA[OnPreinit]]></category>
		<category><![CDATA[Overriding]]></category>
		<category><![CDATA[Page Class]]></category>
		<category><![CDATA[Sessions]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://blogs.circlesource.com/?p=453</guid>
		<description><![CDATA[Changing MasterPage Dynamically
In real-time we may come across scenario where depending on the particular group of users we need to show different layout, colors, themes, functionalities and so on. To achieve this there are various ways, maintain the settings for each user in table , maintain the cookies and so on. 
 In .net the best [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0in 0in 10pt; text-indent: 0.25in; line-height: 150%;"><strong><span style="font-size: small;"><span style="font-family: Calibri;">Changing MasterPage Dynamically</span></span></strong></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-indent: 0.25in; line-height: 150%;"><span style="font-size: small;"><span style="font-family: Calibri;">In real-time we may come across scenario where depending on the particular group of users we need to show different layout, colors, themes, functionalities and so on. To achieve this there are various ways, maintain the settings for each user in table , maintain the cookies and so on. </span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 10pt; text-indent: 0.25in; line-height: 150%;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;"> </span>In .net the best way to achieve this is to change master page dynamically where the master pages will have different layout , different look and feel for different users.<span style="mso-spacerun: yes;">  </span>This we can achieve by following below mentioned steps.</span></span></p>
<p class="MsoListParagraphCxSpFirst" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; line-height: 150%; mso-list: l1 level1 lfo1;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">1.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">All the WebPages will be inherited form System.UI.Web.Page base class</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; line-height: 150%; mso-list: l1 level1 lfo1;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">2.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">In page directive we<span style="mso-spacerun: yes;">  </span>have a property to set masterpage file</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; line-height: 150%; mso-list: l1 level1 lfo1;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">3.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Once we attach any master page to any child, first all the controls of the master page are instantiated, then child page controls are instantiated</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; line-height: 150%; mso-list: l1 level1 lfo1;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">4.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">If we want to apply master page in code behind file ,the page’s master page property needs to be applied in Onpreinit method only.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; line-height: 150%; mso-list: l1 level1 lfo1;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">5.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">After instantiating controls, child page load will be called first, then the master page will be loaded.</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.5in; line-height: 150%;"><span style="font-size: small;"><span style="font-family: Calibri;">To change master page dynamically we need to follow the below mentioned process/method</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; line-height: 150%; mso-list: l0 level1 lfo2; mso-add-space: auto;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">1.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Create one separate class file as public, which will inherits System.UI.Web.Page base class</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; line-height: 150%; mso-list: l0 level1 lfo2; mso-add-space: auto;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">2.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Override the Page base class method onPreinit(), in this method set the master page property of the page, give the name of the master page file which you want to apply</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; line-height: 150%; mso-list: l0 level1 lfo2; mso-add-space: auto;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">3.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">At the end of the onPreinit() method call the base class onpreinit method</span></span></p>
<p class="MsoListParagraphCxSpMiddle" style="margin: 0in 0in 0pt 0.75in; text-indent: -0.25in; line-height: 150%; mso-list: l0 level1 lfo2; mso-add-space: auto;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">4.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Inherit the newly created class in all of your web pages.</span></span></p>
<p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 0.75in; text-indent: -0.25in; line-height: 150%; mso-list: l0 level1 lfo2; mso-add-space: auto;"><span style="mso-bidi-font-family: Calibri;"><span style="mso-list: Ignore;"><span style="font-size: small; font-family: Calibri;">5.</span><span style="font: 7pt &quot;Times New Roman&quot;;">       </span></span></span><span style="font-size: small;"><span style="font-family: Calibri;">To provide the custom master page, we may use cookies, sessions or the values stored from database, it depends on how we want to manage the customization.</span></span></p>
<p class="MsoListParagraphCxSpLast" style="margin: 0in 0in 10pt 0.75in; text-indent: -0.25in; line-height: 150%; mso-list: l0 level1 lfo2; mso-add-space: auto;"> </p>
<div></div>
<p><span style="font-size: small;"><span style="font-family: Calibri;"></p>
<div id="attachment_454" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-454" src="http://blogs.circlesource.com/wp-content/uploads/2009/04/classdiagram-300x273.jpg" alt="Illustration" width="300" height="273" /><p class="wp-caption-text">Illustration</p></div>
<p> </p>
<p> </p>
<p></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.circlesource.com/2009/04/27/dynamically-changing-masterpage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>UML: Usecase Diagrams and Class Diagrams</title>
		<link>http://blogs.circlesource.com/2009/02/02/uml-usecase-diagrams-and-class-diagrams/</link>
		<comments>http://blogs.circlesource.com/2009/02/02/uml-usecase-diagrams-and-class-diagrams/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 15:58:57 +0000</pubDate>
		<dc:creator>murulidhara.k</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blogs.circlesource.com/?p=199</guid>
		<description><![CDATA[Uses Cases and Class Diagrams
The use cases and class diagrams are very useful in order to plan and designing any project. Before understanding use cases and diagrams we need to know regarding UML.
UML can be abbreviated as Unified Modeling Language, which is used in order to provide a common modeling for various
problems/projects which are platform [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><strong><span style="font-size:14.0pt;line-height:115%">Uses Cases and Class Diagrams</span></strong></p>
<p class="MsoNormal" style="text-indent:.5in">The use cases and class diagrams are very useful in order to plan and designing any project. Before understanding use cases and diagrams we need to know regarding UML.</p>
<p class="MsoNormal" style="text-indent:.5in">UML can be abbreviated as Unified Modeling Language, which is used in order to provide a common modeling for various<br />
problems/projects which are platform independent, technology independent and support purely object oriented programming languages.</p>
<p class="MsoNormal" style="text-indent:.5in">The use cases can be defined in simple word as scenario in which the given problem solution will be used and what are all the cases that may arise while using the project/solution.</p>
<p class="MsoNormal" style="text-indent:.5in">The use cases helps the system design and development easier by providing the necessary and mandatory cases that are the users of any project.  The use cases can be represented by using standard notations.  The following are the notations which are used in order derive the use cases most commonly.</p>
<p class="MsoNormal"><img class="aligncenter size-medium wp-image-218" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image001-300x123.jpg" alt="image001" width="300" height="123" /></p>
<p class="Section1">In order to understand the use cases in better way, let me explain an example, consider the video conference system as a problem/project, in order to implement this project first I need to gather the information from user/client properly once the required information is gathered by using any of the information gathering techniques, I can start on writing the use cases for video conference system.</p>
<p class="MsoNormal" style="text-indent:.5in">The use cases are formed or designed by considering the main functional requirements of the system not mapped one-to-one and it shows what behavior the actor can expect and not how the system will work to provide the service.</p>
<p class="MsoNormal">In order to write the use cases we need to know two things properly in use cases</p>
<p class="MsoNormal" style="margin-left:.75in;text-indent:-.25in">1.  Actor,the external agent who will make use of the system</p>
<p class="MsoNormal" style="margin-left:.75in;text-indent:-.25in">2. Service provided by the System</p>
<p class="MsoNormal" style="text-indent:.5in">In the video conference system the actors are the persons who will make use of the system by connecting to the system, and the services provided by the system are login authentication, video conferencing, video recording, text messaging.  These are all the main functional requirements which are identified in order to develop the video conferencing system.  The following are the different use cases those can be derived or drawn by considering the video conferencing system and the services provided by the system.</p>
<p class="MsoNormal" style="text-indent:.5in">The following are the example/illustrative use case diagrams with respect to web based video conferencing system, which is used for video conferencing over the internet.</p>
<div class="Section1">
<ul>
<li>
<div class="MsoNormal">Login Authentication</div>
</li>
<li>
<div class="MsoNormal">Video Conferencing</div>
</li>
<li>
<div class="MsoNormal">Chat: Text Messaging</div>
</li>
<li>
<div class="MsoNormal">Video Recording</div>
</li>
</ul>
</div>
<p> </p>
<p class="MsoNormal">  <img class="size-medium wp-image-205 alignnone" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image002-300x159.jpg" alt="image002" width="300" height="159" /></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> <img class="aligncenter size-medium wp-image-206" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image003-300x167.jpg" alt="image003" width="300" height="167" /></p>
<p class="MsoNormal"> </p>
<p><img class="aligncenter size-medium wp-image-210" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image0041-300x185.jpg" alt="image0041" width="300" height="185" /></p>
<p><img class="aligncenter size-medium wp-image-211" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image0052-300x258.jpg" alt="image0052" width="300" height="258" /><img class="aligncenter size-medium wp-image-213" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image006-300x123.jpg" alt="image006" width="300" height="123" /> </p>
<p class="MsoNormal">The use case diagrams does have extension, aggregation and interface concept those can be represented pictorially as above.</p>
<p><span style="font-size:11.0pt;line-height:115%;font-family:"><br />
</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><strong><span style="font-size:14.0pt;line-height:115%">Class Diagrams</span></strong></p>
<p class="MsoNormal">                The class diagrams are diagrams which are used in order to represent the classes used or to be used in any solution<br />
implementation using notations.  The class diagrams makes the understandability of the project flow and the pictorially represents the different classes used and how they were connected to each other  and which are all the classes that depends on the other classes can be represented.</p>
<p class="MsoNormal" style="text-indent:.5in">The class diagram can be represented by following notation and it does mainly have 3 parts first part is the name of the class, the second box or part is declaration of members or variables which are used in the class, the third part/box will be list of all the methods which are implemented in the class in order to perform the operations on class data members.</p>
<p class="MsoNormal">The following notations are used in drawing class diagrams.</p>
<p><img class="aligncenter size-medium wp-image-214" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image0071-300x133.jpg" alt="image0071" width="300" height="133" /></p>
<p class="MsoNormal" style="text-indent:.5in">The Class diagrams can be used to represent all the available variants of classes in Object oriented languages.</p>
<p class="MsoNormal" style="text-indent:.5in">The example class diagram used in web based video conferencing system.</p>
<p class="MsoNormal" style="text-indent:.5in"><img class="aligncenter size-medium wp-image-215" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image008-300x157.jpg" alt="image008" width="300" height="157" /></p>
<p class="MsoNormal" style="text-indent:.5in">In this diagram, as we can see the class is of type public and class name is enter_002dconf2_jsp used in web based video conferencing system, the member of the class is<strong> _dependants</strong> of  type Vector and access mode is private.</p>
<p class="MsoNormal" style="text-indent:.5in"><img class="aligncenter size-medium wp-image-216" src="http://blogs.circlesource.com/wp-content/uploads/2009/02/image009-300x119.jpg" alt="image009" width="300" height="119" /></p>
<p class="MsoNormal" style="text-indent:.5in">The two methods are defined of type public in order to perform the required operation, the <strong>getDependants() ,</strong><br />
method will get all the necessary dependents needed to start the video conferencing service, and the second method will <strong>_jspService()</strong> will start the service and write the required information on to the browser, if the required dependents are present then the client application will run through which the user can able to perform video conferencing, if not then the<br />
necessary information will be written on to the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.circlesource.com/2009/02/02/uml-usecase-diagrams-and-class-diagrams/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
