<?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>Sehajpal.com</title>
	<atom:link href="http://www.sehajpal.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sehajpal.com</link>
	<description>No path is too difficult. No destination is too far !</description>
	<lastBuildDate>Thu, 04 Mar 2010 12:54:03 +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>.NET MEGA Walkin interviews and on spot offers at Birlasoft Noida</title>
		<link>http://www.sehajpal.com/index.php/2010/03/dotnet-walkins-at-birlasoft-noida/</link>
		<comments>http://www.sehajpal.com/index.php/2010/03/dotnet-walkins-at-birlasoft-noida/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 12:54:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Job Openings]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=84</guid>
		<description><![CDATA[Headquartered at Noida, India, Birlasoft has 4,000+ employees across US, UK, Germany, Netherlands, Czech Republic, Malaysia, Australia, Singapore and India. The Noida centers of the company have been recently assessed at PCMM Level 3 for its HR practices.
If your profile is matching to the skills mentioned below, kindly come for an in person discussion with [...]]]></description>
			<content:encoded><![CDATA[<p>Headquartered at Noida, India, Birlasoft has 4,000+ employees across US, UK, Germany, Netherlands, Czech Republic, Malaysia, Australia, Singapore and India. The Noida centers of the company have been recently assessed at PCMM Level 3 for its HR practices.</p>
<p>If your profile is matching to the skills mentioned below, kindly come for an in person discussion with Birlasoft on Saturday 6th March 2010 at the following venue:</p>
<p><strong>Birlasoft India Ltd.<br />
</strong>H 9, Sector 63<br />
Noida. (India)</p>
<p>Assessment timings is between 9.30 AM (IST) till 5.30 PM (IST), do carry a copy of your resume, also drop a confirmation mail regarding the same.</p>
<p>.<strong>Net Job Description:</strong></p>
<ul>
<li>2-8 years of experience</li>
<li>Experience in .net 2.0 and 3.5 (C#, ASP.net, VB.Net) . Minimum resource should have experience in .net 2.0 </li>
<li>Experience in WCF, WPF, XML, JavaScript, WebServices</li>
<li>Database: SQL Server or Oracle</li>
<li>Good Communication Skills</li>
</ul>
<p><strong>Desirables</strong>:</p>
<ul>
<li>Exposure to Silverlight or Cloud Computing a big plus</li>
<li>Sharepoint </li>
<li>Biztalk server</li>
</ul>
<p>Would request you to send your detailed profile at <a href="mailto:abhinav.prakash@birlasoft.com">abhinav.prakash@birlasoft.com</a> along with the following details:</p>
<ul>
<li>Total IT Experience</li>
<li>Current Company</li>
<li>Current Salary</li>
<li>Expected Salary</li>
<li>Joining Time</li>
<li>Contact Number</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/03/dotnet-walkins-at-birlasoft-noida/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to pass InitParameters to Silverlight in HTML object control</title>
		<link>http://www.sehajpal.com/index.php/2010/03/how-to-pass-initparameters-to-silverlight-in-html-object-control/</link>
		<comments>http://www.sehajpal.com/index.php/2010/03/how-to-pass-initparameters-to-silverlight-in-html-object-control/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 08:21:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Init Parameters]]></category>
		<category><![CDATA[SilverLight]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=74</guid>
		<description><![CDATA[There are three different ways in which we can pass parameters to Silverlight from the HTML side:
1. Pass parameters using the HTML object control.
This may be the case using pure HTML page to call silverlight control in it or may be the simple ASp.Net page as usual.
 &#60;object width="100%" height="100%"&#62;
   &#60;param  name="source"  value="ClientBin/SomethingFunny.xap" /&#62;
   &#60;!-- you can pass [...]]]></description>
			<content:encoded><![CDATA[<p>There are three different ways in which we can pass parameters to Silverlight from the HTML side:</p>
<p><strong>1. Pass parameters using the HTML object control.</strong></p>
<p>This may be the case using pure HTML page to call silverlight control in it or may be the simple ASp.Net page as usual.</p>
<blockquote><p> &lt;object width="100%" height="100%"&gt;<br />
   &lt;param  name="source"  value="ClientBin/SomethingFunny.xap" /&gt;<br />
   &lt;!-- you can pass InitParameters to it. Pass anything like EndPointURI, EndPointName or Even StartPage --&gt;<br />
   &lt;param name="InitParameters" value="startPage=UnRegisteredLandingPage, EndPointURI=http://www.sehajpal.com/testservice.svc" /&gt;<br />
 &lt;/object&gt;</p></blockquote>
<p><strong>2. Using ASP.Net page to call silverlight control in it</strong>, we can easily pass parameters to it in anyway. One of the old tricks is to have an asp-literal control on the HTML side i.e. MarkUp side, and set its text to the desired HTML output fom code behind.</p>
<blockquote><p><strong>In the markup:<br />
</strong>  &lt;asp:Literal ID="litParam" runat="server" /&gt;</p>
<p><strong>In the code behind:</strong><br />
  this.litParam.Text = String.Format("&lt;param name=\"ParamInitParameters\" value=\"{0}\" /&gt;", sInitParms);</p></blockquote>
<p><strong>3. Using asp-silverlight control</strong> to host Silverlight application in an ASP.net website as usual. This is pretty neat approach in terms of playing around with parameters and properties of control hosting the Silverlight app.</p>
<blockquote><p><strong>In the markup:<br />
</strong>  &lt;asp:Silverlight ID="SLControl" runat="server" Width="100%" Height="100%" /&gt;<br />
<strong>In the code behind:</strong><br />
   SLControl.InitParameters = "EndPointURI=" + endPointURI + ",EndPointName=commonservice, UserCredentials=" + CredentialString;</p></blockquote>
<p> </p>
<p>Hope it works for you in different scenarios.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/03/how-to-pass-initparameters-to-silverlight-in-html-object-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thanks Sachin!</title>
		<link>http://www.sehajpal.com/index.php/2010/02/thanks-sachin/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/thanks-sachin/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 12:54:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cricket]]></category>
		<category><![CDATA[Sachin Tendulkar]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/index.php/2010/02/thanks-sachin/</guid>
		<description><![CDATA[You being the God of Indian Cricket made us proud once again hitting a voluptous 200. Just grant one world cup to us. That's it.
]]></description>
			<content:encoded><![CDATA[<p>You being the God of Indian Cricket made us proud once again hitting a voluptous 200. Just grant one world cup to us. That's it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/thanks-sachin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dot net openings at Microsoft,  Hyderabad.</title>
		<link>http://www.sehajpal.com/index.php/2010/02/dot-net-openings-at-microsoft-hyderabad/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/dot-net-openings-at-microsoft-hyderabad/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 09:58:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Job Openings]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=70</guid>
		<description><![CDATA[Job Description/Responsibilities: 
This position is responsible for developing several units of functionality usually making up part of an application. Examples include designing and implementing process workflow, simple schemas, read only access etc.  “Simple” is defined as a limited number of requirements, isolated or a limited number of interfaces, low transaction volume, and/or deployment in a single [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Job Description/Responsibilities:</strong><strong> </strong></p>
<p>This position is responsible for developing several units of functionality usually making up part of an application. Examples include designing and implementing process workflow, simple schemas, read only access etc.  “Simple” is defined as a limited number of requirements, isolated or a limited number of interfaces, low transaction volume, and/or deployment in a single region.   The position may include working on multiple development projects simultaneously ensuring that they are being developed in line with all internal standards and best practices. SQL and .Net experience as well as structured software development methodologies is required.<br />
As IT Software Development Engineer,  this person will be responsible for: </p>
<ul>
<li>Code and test applications in accordance to design specifications and standards.</li>
<li>Code and test SQL Server database applications that support the requirements defined by users and analysts.</li>
<li>Design as per architectural directions simple to medium complexity modules/features</li>
<li>Responsible for developing major subsystems on high risk business systems under deadline pressure</li>
<li>Responsible for successful completion of development aspects of projects in conformance to project goals and requirements</li>
<li>Deliver assignments according to a schedule</li>
<li>Analyze applications and make necessary changes to optimize performance</li>
<li>Analyze and troubleshoot existing processes and optimize code in order to improve performance whenever possible</li>
<li>Develop and enforce coding practices designed to promote code reusability; assist in defining and updating the team standards to improve the development process and quality of deliverables</li>
<li>Participate in design reviews and code reviews</li>
<li>Assist Test and Production Support teams with installation of the application</li>
<li>Design and code database applications that perform efficiently, are operationally stable, and meet the business requirements.</li>
<li>Accurately estimates work/time required to complete tasks within their skill set</li>
<li>Assist with the creation of project plans.</li>
<li>Communicates and defends design, requirements, feature set, functionality and limitations of subsystem to team members and development lead.</li>
<li>Fosters  proactive and cooperative relationships within the project team</li>
<li>Participates in project team activities and contributes to documentation requirements consistent with methodology.</li>
<li>When necessary, participates in the creation of new guidelines and procedures.</li>
<li>Act in lead role (if required), and oversees the design and development for smaller, lower risk business systems</li>
<li>Exercises independent judgment in selecting methods and techniques for obtaining solutions.</li>
<li>Ensures that team’s code meets specifications and is easily maintainable.</li>
<li>Participates in project team activities and contributes to documentation requirements consistent with methodology</li>
<li>Prepares presentations and status reports.</li>
<li> Fosters  proactive and cooperative relationships exist within the project team</li>
<li>Proficient with and guides others in using development tools.</li>
<li>May make recommendations on staffing and hiring decisions.</li>
</ul>
<p><strong>Requirements/Qualifications and Previous Work and Related Experience (including educational requirements):</strong> </p>
<ul>
<li>Excellent English communications skills, both written and oral. Must be able to effectively communicate technical and business problems in a non technical manner to multiple groups (customer groups, project team, IT support groups)</li>
<li>Understands networking</li>
<li>Strong understanding of how to design applications for optimal network performance</li>
<li>Proficiency in multiple program languages, especially c# and vb.net, ASP/ASP.Net, n-tier development environment and HTML scripting languages (Javascript.Jscript,VbScript) or similar application structures</li>
<li>A solid working knowledge of SQL Server, Windows NT, and development practices for working with a team of developers.</li>
<li>Experience working with relational database management systems and client-server technologies</li>
<li>Strong leadership skills</li>
<li>Sound problem resolution, judgment, negotiating and decision making skills required.</li>
<li>Strong analytical and organizational skills.</li>
<li>Able to participate in a team environment, communicate effectively and promote cooperative relationships.</li>
<li>Ability to work under pressure and be able to work to tight deadlines.</li>
<li>Must have a strong understanding of software architectures and MS products.</li>
<li>Demonstrated experience with a Software Development Life Cycle Methodology and information systems development. Experience with agile development methodologies and PSP/TSP would be an advantage.</li>
<li>Strong knowledge and ability to apply latest technology, standards, capabilities and limitations of technology.</li>
<li>Demonstrated knowledge of relational database and client-server technologies.</li>
<li>Promotes cooperative relationships</li>
<li>Ability to work with multiple people, resources and partners, remotely if necessary</li>
<li>BS/BA in computer science or related field</li>
<li>Minimum of five to eight years of related developer experience – or – An equivalent combination of training and related work experience</li>
</ul>
<p><strong><strong>Please send your updated resume in word format and give below details </strong></strong></p>
<p><strong><strong>Current CTC:<br />
</strong></strong><strong><strong>Expected CTC:<br />
</strong></strong><strong><strong>Notice period:</p>
<p>Send these details to </strong></strong><a href="mailto:balraj@techpointsolutions.com" target="_blank"><strong><strong>balraj@techpointsolutions.com</strong></strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/dot-net-openings-at-microsoft-hyderabad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java professional required in chennai</title>
		<link>http://www.sehajpal.com/index.php/2010/02/java-professional-required-in-chennai/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/java-professional-required-in-chennai/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 09:54:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Job Openings]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/index.php/2010/02/java-professional-required-in-chennai/</guid>
		<description><![CDATA[Urgent opening with one of esteemed CMMI level Client for the position of SSE/ Lead
Position: SSE/Lead with 5 to 7 Years of Exp
Work Location: Chennai (India)
Required Skills:
· Relevant 3.5 Yrs hands on experience in Java and j2ee.
· Must have Hands on experience in web services.
· Need Candidates who can join with in 10 Days is [...]]]></description>
			<content:encoded><![CDATA[<p>Urgent opening with one of esteemed CMMI level Client for the position of SSE/ Lead</p>
<p>Position: SSE/Lead with 5 to 7 Years of Exp<br />
Work Location: Chennai (India)<br />
Required Skills:<br />
· Relevant 3.5 Yrs hands on experience in Java and j2ee.<br />
· Must have Hands on experience in web services.<br />
· Need Candidates who can join with in 10 Days is preferable but not mandatory.</p>
<p>If Ur profile matches the above requirement plz send Ur CV to j.priya@aequor.com with the details of<br />
Tot Exp:<br />
Rev Experience in web services:<br />
Current CTC:<br />
Expected CTC:<br />
Notice Period:<br />
Current Location:<br />
Willing to relocate to Chennai (Yes/No):<br />
Current Employment (Contract/Permanent):<br />
Can u able to take up F2F interview on 27th Feb Saturday (Yes/No):<br />
Can u join in 10 Days (Yes/No):</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/java-professional-required-in-chennai/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pain of economical crisis</title>
		<link>http://www.sehajpal.com/index.php/2010/02/pain-of-economical-crisis/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/pain-of-economical-crisis/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Economical Crisis]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/index.php/2010/02/pain-of-economical-crisis/</guid>
		<description><![CDATA[

]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;">
<p style="text-align: center;">
<div class="wp-caption aligncenter" style="width: 499px"><a href="http://www.sehajpal.com/images/sarkari.jpg"><img class="  " title="Agle janam mohe...." src="http://www.sehajpal.com/images/sarkari.jpg" alt="agle janam mohe sarkari karamchari kijo" width="489" height="222" /></a><p class="wp-caption-text">agle janam mohe sarkari karamchari kijo</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/pain-of-economical-crisis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bind with Enum in Silverlight</title>
		<link>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 14:54:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Bind with Enum]]></category>
		<category><![CDATA[SilverLight]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=62</guid>
		<description><![CDATA[Silverlight doesn't have any kind of ObjEctDataProvider with it. So the famous example of binding the controls with an ObjectDataProvider doesn't work with silverlight as it works with WPF  
&#60;UserControl.Resources&#62;
&#60;ObjectDataProvider MethodName="GetValues" ObjectType="{x:Type sys:Enum}"  x:Key="AlignmentValues"&#62;   &#60;ObjectDataProvider.MethodParameters&#62;
          &#60;x:Type TypeName="HorizontalAlignment" /&#62;
   &#60;/ObjectDataProvider.MethodParameters&#62;
&#60;/ObjectDataProvider&#62;
This can be done via code behind in the Silverlight.  Just add a reference to [...]]]></description>
			<content:encoded><![CDATA[<p>Silverlight doesn't have any kind of ObjEctDataProvider with it. So the famous example of binding the controls with an ObjectDataProvider doesn't work with silverlight as it works with WPF <img src='http://www.sehajpal.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><span style="color: #5f5fd8;">&lt;UserControl.Resources&gt;<br />
</span><span style="color: #5f5fd8;">&lt;ObjectDataProvider</span><span style="color: #c7c7f1;"> MethodName</span><span style="color: #5f5fd8;">=</span><span style="color: #60ff60;">"GetValues" </span><span style="color: #c7c7f1;">ObjectType</span><span style="color: #5f5fd8;">="{</span><span style="color: #a31515;">x</span><span style="color: #5f5fd8;">:</span><span style="color: #a31515;">Type</span><span style="color: #5f5fd8;"> sys:Enum}</span><span style="color: #60ff60;">"  </span><span style="color: #c7c7f1;">x</span><span style="color: #5f5fd8;">:</span><span style="color: #c7c7f1;">Key</span><span style="color: #5f5fd8;">=</span><span style="color: #60ff60;">"AlignmentValues"</span><span style="color: #5f5fd8;">&gt;</span><span style="color: #60ff60;"> </span><span style="color: #5f5fd8;">  &lt;ObjectDataProvider.MethodParameters&gt;<br />
    </span><span style="color: #60ff60;">      </span><span style="color: #5f5fd8;">&lt;x:Type</span><span style="color: #c7c7f1;"> TypeName</span><span style="color: #5f5fd8;">=</span><span style="color: #60ff60;">"HorizontalAlignment"</span><span style="color: #5f5fd8;"> /&gt;<br />
</span><span style="color: #60ff60;">   </span><span style="color: #5f5fd8;">&lt;/ObjectDataProvider.MethodParameters&gt;<br />
</span><span style="color: #5f5fd8;">&lt;/ObjectDataProvider&gt;</span></p>
<p><span style="color: #5f5fd8;"><span style="color: #000000;">This can be done via code behind in the Silverlight.  Just add a reference to the Reflection assembly.<br />
</span></span><span style="color: #8080c0;">using </span><span style="color: #3366ff;">System</span><span style="color: #e0e0e0;">.</span><span style="color: #3366ff;">Reflection</span><span style="color: #e0e0e0;">;</span></p>
<p><span style="color: #000000;">Use this simple function to get IEnumerable collection out of Enum type.</p>
<p>        public IEnumerable&lt;Enum&gt; GetEnumValues(Enum enumeration)<br />
        {<br />
            return from gField in enumeration.GetType().GetFields(BindingFlags.Static | BindingFlags.Public)<br />
                   select (Enum)gField.GetValue(enumeration);<br />
        }</span></p>
<p><span style="color: #000000;">Just bind the results of this function with your control and its done !</span></p>
<p> ComboFrom.ItemsSource = GetEnumValues(new SehajService.Currency());</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/bind-with-enum-in-silverlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Currency amount in words in indian format using T-SQL Stored Procedure</title>
		<link>http://www.sehajpal.com/index.php/2010/02/indian-fromat-currency-amount-using-t-sql-stored-procedure/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/indian-fromat-currency-amount-using-t-sql-stored-procedure/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 15:53:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Amount in words]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=59</guid>
		<description><![CDATA[I know it is not that much crucial but neither easy to get rid of financial application’s requirements as clients demand more and more facilities even they are small in size.
Here is one that kinda SQL Script that every finance domain expert looks for. That is the currency writer in WORDS instead of digits.
CREATE FUNCTION [...]]]></description>
			<content:encoded><![CDATA[<p>I know it is not that much crucial but neither easy to get rid of financial application’s requirements as clients demand more and more facilities even they are small in size.</p>
<p>Here is one that kinda SQL Script that every finance domain expert looks for. That is the currency writer in WORDS instead of digits.</p>
<p><span style="color: #0000ff;">CREATE FUNCTION</span> dbo.AMOUNT_IN_WORDS<br />
(<br />
 @Amount <span style="color: #0000ff;">INT</span>,<br />
 @PAISE <span style="color: #0000ff;">INT</span><br />
)<br />
<span style="color: #0000ff;">RETURNS int</span></p>
<p><span style="color: #0000ff;">BEGIN</span></p>
<p><span style="color: #0000ff;">DECLARE</span><br />
<span style="color: #339966;">--Step 1:<br />
--Here we define the temporary tables to hold the WORDs representation of possible digits/amounts</span></p>
<p><span style="color: #0000ff;">DECLARE</span> @INNTBL_01 <span style="color: #0000ff;">TABLE</span> (RECNO <span style="color: #0000ff;">INT IDENTITY</span>(1, 1), MTEXT <span style="color: #0000ff;">NVARCHAR</span>(50))</p>
<p><span style="color: #0000ff;">DECLARE</span> @INNTBL_02 <span style="color: #0000ff;">TABLE</span> (RECNO <span style="color: #0000ff;">INT</span> <span style="color: #0000ff;">IDENTITY</span>(1, 1), MTEXT <span style="color: #0000ff;">NVARCHAR</span>(50))</p>
<p><span style="color: #339966;">--Step 2:<br />
--Now add up the salt and pepper onto table  i.e. insert the WORDs into it</span></p>
<p><span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'ONE'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'TWO'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'THREE'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'FOUR'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'FIVE'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'SIX'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'SEVEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'EIGHT'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'NINE'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'TEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'ELEVEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'TWELVE'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'THIRTEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'FOURTEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'FIFTEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'SIXTEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'SEVENTEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'EIGHTEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'NINETEEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_01 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'TWENTY'<span style="color: #339966;">--Similary, insert the multiples</span></span></p>
<p><span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'TEN'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'TWENTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'THIRTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'FORTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'FIFTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'SIXTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'SEVENTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'EIGHTY'</span><br />
<span style="color: #0000ff;">INSERT INTO</span> @INNTBL_02 <span style="color: #0000ff;">SELECT</span> <span style="color: #ff0000;">'NINETY'</span></p>
<p><span style="color: #339966;">--Step 3:<br />
--Check for the limit of the amount i.e. what is the place value of digits - LACs, Thousands or Hundreds</span><br />
<span style="color: #0000ff;">DECLARE</span> @WORD <span style="color: #0000ff;">VARCHAR</span>(300)<br />
<span style="color: #0000ff;">SELECT</span> @WORD = ''</p>
<p><span style="color: #0000ff;">DECLARE</span> @M_AMT01  <span style="color: #0000ff;">INT</span>, @M_AMT02 <span style="color: #0000ff;">INT</span></p>
<p><span style="color: #0000ff;">IF</span> @AMOUNT &lt; 10000000 <span style="color: #0000ff;">AND</span> @AMOUNT &gt;= 100000 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = @AMOUNT<br />
<span style="color: #0000ff;">SELECT</span> @AMOUNT = ( @AMOUNT % 100000 )<br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = ( @M_AMT01 - @AMOUNT ) / 100000<br />
<span style="color: #0000ff;">DECLARE</span> @WORD1 <span style="color: #0000ff;">VARCHAR</span>(300)<br />
<span style="color: #0000ff;">SET</span> @WORD1 = ''<br />
<span style="color: #0000ff;">IF</span> @M_AMT01 &lt; 100 <span style="color: #0000ff;">AND</span> @M_AMT01 &gt; 20 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @M_AMT02 = @M_AMT01<br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = ( @M_AMT01 % 10)<br />
<span style="color: #0000ff;">SET</span> @M_AMT02 = ( @M_AMT02 - @M_AMT01 ) / 10<br />
<span style="color: #0000ff;">SET</span> @WORD1 = ( <span style="color: #0000ff;">SELECT</span> @WORD1 + MTEXT <span style="color: #0000ff;">FROM</span> @INNTBL_02 <span style="color: #0000ff;">WHERE</span> RECNO = @M_AMT02 )<br />
<span style="color: #0000ff;">END<br />
</span><br />
<span style="color: #0000ff;">IF</span> @M_AMT01 &lt;= 20 <span style="color: #0000ff;">AND</span> @M_AMT01 &lt;&gt; 0 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @WORD1 = ( <span style="color: #0000ff;">SELECT</span> @WORD1 + MTEXT <span style="color: #0000ff;">FROM</span> @INNTBL_01 <span style="color: #0000ff;">WHERE</span> RECNO = @M_AMT01 )<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">SET</span> @WORD = @WORD + @WORD1 + ' <span style="color: #ff0000;">LAC</span> '<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">IF</span> @AMOUNT &lt; 100000 <span style="color: #0000ff;">AND</span> @AMOUNT &gt;= 1000 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = @AMOUNT<br />
<span style="color: #0000ff;">SET</span> @AMOUNT = ( @AMOUNT % 1000 )<br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = ( @M_AMT01 - @AMOUNT ) / 1000<br />
<span style="color: #0000ff;">SET</span> @WORD1 = ''<br />
<span style="color: #0000ff;">IF</span> @M_AMT01 &lt; 100 <span style="color: #0000ff;">AND</span> @M_AMT01 &gt; 20 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @M_AMT02 = @M_AMT01<br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = ( @M_AMT01 % 10 )<br />
<span style="color: #0000ff;">SET</span> @M_AMT02 = ( @M_AMT02 - @M_AMT01 ) / 10<br />
<span style="color: #0000ff;">SET</span> @WORD1 = ( <span style="color: #0000ff;">SELECT</span> @WORD1 + MTEXT + ' ' <span style="color: #0000ff;">FROM</span> @INNTBL_02 <span style="color: #0000ff;">WHERE</span> RECNO = @M_AMT02 )<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">IF</span> @M_AMT01 &lt;= 20 <span style="color: #0000ff;">AND</span> @M_AMT01 &lt;&gt; 0 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @WORD1 = ( <span style="color: #0000ff;">SELECT</span> @WORD1 + MTEXT +' ' <span style="color: #0000ff;">FROM</span> @INNTBL_01 <span style="color: #0000ff;">WHERE</span> RECNO = @M_AMT01 )<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">SET</span> @WORD = @WORD + @WORD1 + ' <span style="color: #ff0000;">THOUSAND</span> '<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">IF</span> @AMOUNT &lt; 1000 <span style="color: #0000ff;">AND</span> @AMOUNT &gt; = 100 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = @AMOUNT<br />
<span style="color: #0000ff;">SET</span> @AMOUNT = ( @AMOUNT % 100 )<br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = ( @M_AMT01 - @AMOUNT ) / 100<br />
<span style="color: #0000ff;">SET</span> @WORD = ( <span style="color: #0000ff;">SELECT</span> @WORD + ' ' +MTEXT + ' HUNDRED ' <span style="color: #0000ff;">FROM</span> @INNTBL_01 <span style="color: #0000ff;">WHERE</span> RECNO = @M_AMT01</p>
<p>)<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">IF</span> @AMOUNT &lt; 100 <span style="color: #0000ff;">AND</span> @AMOUNT &gt; 20 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = @AMOUNT<br />
<span style="color: #0000ff;">SET</span> @AMOUNT = ( @AMOUNT % 10 )<br />
<span style="color: #0000ff;">SET</span> @M_AMT01 = ( @M_AMT01 - @AMOUNT ) / 10<br />
<span style="color: #0000ff;">SET</span> @WORD = ( <span style="color: #0000ff;">SELECT</span> @WORD + MTEXT + ' ' <span style="color: #0000ff;">FROM</span> @INNTBL_02 <span style="color: #0000ff;">WHERE</span> RECNO = @M_AMT01 )<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">IF</span> @AMOUNT &lt;= 20 <span style="color: #0000ff;">AND</span> @AMOUNT &gt;= 1 BEGIN<br />
<span style="color: #0000ff;">SET</span> @WORD = ( <span style="color: #0000ff;">SELECT</span> @WORD + MTEXT +' ' <span style="color: #0000ff;">FROM</span> @INNTBL_01 <span style="color: #0000ff;">WHERE</span> RECNO = @AMOUNT )<br />
<span style="color: #0000ff;">END</span></p>
<p>--STEP 4:<br />
--Calculate the paise also.<br />
<span style="color: #0000ff;">DECLARE</span> @WORDP <span style="color: #0000ff;">VARCHAR</span>(300)<br />
<span style="color: #0000ff;">SET</span> @WORDP = ''<br />
<span style="color: #0000ff;">IF</span> @PAISE &lt;&gt; 0 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">IF</span> @PAISE &lt; 100 <span style="color: #0000ff;">AND</span> @PAISE &gt; 20 <span style="color: #0000ff;">BEGIN</span><br />
<span style="color: #0000ff;">DECLARE</span> @PAISE_01 <span style="color: #0000ff;">VARCHAR</span>(300)<br />
<span style="color: #0000ff;">SET</span> @PAISE_01 = @PAISE<br />
<span style="color: #0000ff;">SET</span> @PAISE = ( @PAISE % 10 )<br />
<span style="color: #0000ff;">SET</span> @PAISE_01 = ( @PAISE_01 - @PAISE ) / 10<br />
<span style="color: #0000ff;">SET</span> @WORDP = ( <span style="color: #0000ff;">SELECT</span> @WORDP + MTEXT <span style="color: #0000ff;">FROM</span> @INNTBL_02 <span style="color: #0000ff;">WHERE</span> RECNO = @PAISE_01 )<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">IF</span> @PAISE &lt;= 20 <span style="color: #0000ff;">AND</span> @PAISE &gt;= 1 BEGIN<br />
<span style="color: #0000ff;">SET</span> @WORDP = ( <span style="color: #0000ff;">SELECT</span> @WORDP + MTEXT <span style="color: #0000ff;">FROM</span> @INNTBL_01 <span style="color: #0000ff;">WHERE</span> RECNO = @PAISE )<br />
<span style="color: #0000ff;">END</span><br />
<span style="color: #0000ff;">SET</span> @WORD = @WORD + <span style="color: #ff0000;">'AND</span> ' + @WORDP + ' <span style="color: #ff0000;">PAISE'</span><br />
<span style="color: #0000ff;">END</span></p>
<p><span style="color: #339966;">--STEP 5:<br />
--Time to return answer from the function.</span><br />
<span style="color: #0000ff;">RETURN</span> (<span style="color: #ff00ff;">REPLACE</span>(@WORD, '  ', ' '))</p>
<p><span style="color: #339966;">--Its done dude. Try by yourself.</span><br />
<span style="color: #0000ff;">END</span></p>
<p>Now when you need to use this function, simply call it inline to any select statement.</p>
<p><strong>CALLING THE FUNCTION</strong></p>
<p><span style="color: #0000ff;">Select</span> dbo.AMOUNT_IN_WORDS(IM.GRAND_TOTAL, 0) <span style="color: #0000ff;">AS</span> words <span style="color: #0000ff;">from</span> TBL_INVOICE_MAIN IM</p>
<p>Here, it will convert <strong>GRAND_TOTAL</strong> field from the table <strong>TBL_INVOICE_MAIN</strong>.</p>
<p>or more simply,</p>
<p>Select dbo.AMOUNT_IN_WORDS(654321, 0)</p>
<p>Isn't it simple enough !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/indian-fromat-currency-amount-using-t-sql-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Word Document with Hyperlinks in it with C# code</title>
		<link>http://www.sehajpal.com/index.php/2010/02/create-word-document-with-hyperlinks-in-it-with-csharp-code/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/create-word-document-with-hyperlinks-in-it-with-csharp-code/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:59:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Create Word Document]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=56</guid>
		<description><![CDATA[First of all you need to add reference to COM library in project.
Add reference to Microsoft word 11.0 word library under COM reference tab Add this in the code behind “using” section
using Microsoft.Office.Interop.Word;
private void CreateWordDocument()
{
// create annonymous object to be referenced throughout
object oMissingReference = System.Reflection.Missing.Value;
object Visible=true;
// define arbitrary starting point for defining range object.
object oStartRange [...]]]></description>
			<content:encoded><![CDATA[<p>First of all you need to add reference to COM library in project.<br />
Add reference to Microsoft word 11.0 word library under COM reference tab Add this in the code behind “using” section</p>
<p>using <span style="color: #0000ff;">Microsoft.Office.Interop.Word</span>;<br />
private void CreateWordDocument()<br />
{<br />
<span style="color: #99cc00;">// create annonymous object to be referenced throughout<br />
</span>object oMissingReference = System.Reflection.Missing.Value;<br />
object Visible=true;<br />
<span style="color: #99cc00;">// define arbitrary starting point for defining range object.</span><br />
object oStartRange = 0;<br />
object oEndRange = 0;<br />
<span style="color: #99cc00;">// create instance of application class</span><br />
ApplicationClass WordApp = new ApplicationClass();<br />
<span style="color: #99cc00;">// create document instance</span><br />
Document docObject = WordApp.Documents.Add(ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference );<br />
<span style="color: #99cc00;">// select a range to add some text/image there</span><br />
Range rng=docObject.Range(ref oStartRange,ref oMissingReference );<br />
rng.Font.Name=”Arial”;<br />
rng.InsertAfter(”Ashish Sehajpal”);<br />
<span style="color: #99cc00;">// create Hyperlink object and assign address, screen tip to it</span><br />
Object address = @”http://www.sehajpal.com”;<br />
Object screenTip = “Welcome to sehajpal.com”;<br />
<span style="color: #99cc00;">// adding Hyperlink to the text “Ashish Sehajpal“<br />
</span>rng.Hyperlinks.Add(rng, ref address, ref oMissingReference , ref screenTip, ref oMissingReference , ref oMissingReference );<br />
<span style="color: #99cc00;">// give file name to it so as to save the document<br />
</span>object filename = @”C:\createdbycsharp.doc”;<br />
docObject.<span style="color: #0000ff;">SaveAs</span>(ref filename, ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference ,ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference , ref oMissingReference );</p>
<p>WordApp.Visible=true;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/create-word-document-with-hyperlinks-in-it-with-csharp-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to debug the silverlight project</title>
		<link>http://www.sehajpal.com/index.php/2010/02/unable-to-debug-the-silverlight-project/</link>
		<comments>http://www.sehajpal.com/index.php/2010/02/unable-to-debug-the-silverlight-project/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:55:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SilverLight]]></category>
		<category><![CDATA[Unable to debug]]></category>

		<guid isPermaLink="false">http://www.sehajpal.com/?p=53</guid>
		<description><![CDATA[I have some strange thing happening in my application. I was able to debug anything but silverlight code !!
I did so much of RnD on net and tried various tricks, but only this thing worked : -
When you add a Silverlight project to a asp.net solution, you create 2 projects…
A. the startup project (interface starter)
B. [...]]]></description>
			<content:encoded><![CDATA[<p>I have some strange thing happening in my application. I was able to debug anything but silverlight code !!<br />
I did so much of RnD on net and tried various tricks, but only this thing worked : -</p>
<p>When you add a Silverlight project to a asp.net solution, you create 2 projects…<br />
A. the startup project (interface starter)<br />
B. the interface itself</p>
<p>1. right click on the startup project (SilverlightWeb — the one with default.aspx in it )…<br />
2. click on ‘Property Pages’<br />
3. open ‘Start Options’ Tab<br />
4. enable Silverlight Debugger<br />
5. OK</p>
<p>This was the solution for me</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sehajpal.com/index.php/2010/02/unable-to-debug-the-silverlight-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
