<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5831408450174789998</id><updated>2024-09-16T10:11:01.102+05:30</updated><category term="JavaScript"/><category term="AddToFavorites"/><category term="CONVERT()"/><category term="DLL Register"/><category term="Delegates"/><category term="Embeding Images"/><category term="Events"/><category term="Master Pages"/><category term="SQL DateTime"/><category term="UnRegister"/><category term="enum"/><category term="enumeration in C#"/><category term="enumerators in C#"/><title type='text'>Ramesh-Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-1044062350661248859</id><published>2007-10-06T18:20:00.000+05:30</published><updated>2007-10-06T18:34:51.852+05:30</updated><title type='text'>Sample ASP.Net Application for Generics</title><content type='html'>Link to my Article in CodeProject&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.codeproject.com/useritems/Generics.asp&quot;&gt;http://www.codeproject.com/useritems/Generics.asp&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/1044062350661248859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/1044062350661248859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/1044062350661248859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/1044062350661248859'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/10/sample-aspnet-application-for-generics.html' title='Sample ASP.Net Application for Generics'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-619609729165966335</id><published>2007-10-05T19:34:00.000+05:30</published><updated>2007-10-05T19:44:57.767+05:30</updated><title type='text'>&quot;CURSOR&quot; in SQL Server</title><content type='html'>&lt;span style=&quot;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;&quot;&gt;&lt;span style=&quot;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:-1;&quot;&gt;&lt;span style=&quot;font-family:arial,helvetica;font-size:100%;&quot;&gt;Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, instead of the typical SQL commands that operate on all the rows in the set at one time. For example, you can use cursor to include a list of all user databases and make multiple operations against each database by passing each database name as a variable.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;Cursors are the   &lt;strong&gt;SLOWEST&lt;/strong&gt; way to access data inside SQL Server&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;USE &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Northwind&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;DECLARE &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;@EmployeeID &lt;span style=&quot;color: blue;&quot;&gt;varchar&lt;/span&gt;(10), @Counter &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;            &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;CREATE TABLE &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;#tempTbl&lt;br /&gt;(&lt;br /&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;EmployeeID &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;,&lt;br /&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;OrderCount &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&lt;br /&gt;)&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;          &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;SET &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;@Counter = 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;DECLARE &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Employees &lt;span style=&quot;color: blue;&quot;&gt;CURSOR&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;FOR&lt;br /&gt;SELECT DISTINCT&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;(EmployeeID) &lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;Employees&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;            &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;OPEN &lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Employees&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;BEGIN&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;WHILE&lt;/span&gt;( @Counter &lt; @@CURSOR_ROWS)&lt;span style=&quot;&quot;&gt;  &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FETCH NEXT FROM &lt;/span&gt;Employees &lt;span style=&quot;color: blue;&quot;&gt;INTO &lt;/span&gt;&lt;span style=&quot;&quot;&gt;     &lt;/span&gt;@EmployeeID&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INSERT INTO &lt;/span&gt;#tempTbl(EmployeeID, OrderCount)&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;@EmployeeID &lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;EmployeeID, &lt;span style=&quot;color: blue;&quot;&gt;COUNT&lt;/span&gt;(O.EmployeeID) &lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;OrderCount &lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;Employees E, Orders O &lt;span style=&quot;color: blue;&quot;&gt;WHERE &lt;/span&gt;O.EmployeeID = @EmployeeID &lt;span style=&quot;color: blue;&quot;&gt;AND &lt;/span&gt;E.EmployeeID = O.EmployeeID&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SET &lt;/span&gt;@Counter = @Counter + 1&lt;br /&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;* &lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;#tempTbl&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;      &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DROP TABLE &lt;/span&gt;#tempTbl&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;CLOSE &lt;/span&gt;Employees&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;      &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;DEALLOCATE &lt;/span&gt;Employees&lt;/span&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;END&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;Output:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;EmployeeID     OrderCount&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;3                         127&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;4                         156&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;8                         104&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;1                         123&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;2                         96&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;6                         67&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;7                         72&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;5                         42&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: arial; color: rgb(0, 0, 0);&quot;&gt;9                         43&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/619609729165966335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/619609729165966335' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/619609729165966335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/619609729165966335'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/10/cursor-in-sql-server.html' title='&quot;CURSOR&quot; in SQL Server'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-5133761302754596637</id><published>2007-09-10T18:35:00.000+05:30</published><updated>2007-09-10T19:37:26.205+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Embeding Images"/><title type='text'>Embeding Images into Application in C#.</title><content type='html'>&lt;pre&gt; &lt;/pre&gt; &lt;p&gt;&lt;span style=&quot;font-weight: bold; font-family: arial;&quot;&gt;These Methods are used To Embed Images into Applications.......&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;        ///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green;&quot;&gt;By Ramesh.R&lt;/span&gt;           &lt;br /&gt;                                                              &lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;Bitmap&lt;/span&gt; EmbedImage(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; imagePath)&lt;br /&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;    try&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    {&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;        return&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;Bitmap&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;typeof&lt;/span&gt;(&lt;span style=&quot;color: teal;&quot;&gt;Form1&lt;/span&gt;), imagePath);&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    }&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;    catch&lt;/span&gt; (&lt;span style=&quot;color: teal;&quot;&gt;Exception&lt;/span&gt; ex)&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    {&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;        throw&lt;/span&gt; ex;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    }&lt;br /&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;o:p&gt;        &lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green;&quot;&gt;(or)&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;Bitmap&lt;/span&gt; EmbedImage1(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; imagePath)&lt;br /&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;    try&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    {&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;        Assembly&lt;/span&gt; assembly = &lt;span style=&quot;color: teal;&quot;&gt;Assembly&lt;/span&gt;.GetExecutingAssembly();&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;        Stream&lt;/span&gt; stream;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;        stream = &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: teal;&quot;&gt;        Bitmap&lt;/span&gt; bmp = &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;        stream = assembly.GetManifestResourceStream(imagePath);&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;        stream.Position = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;        bmp = (&lt;span style=&quot;color: teal;&quot;&gt;Bitmap&lt;/span&gt;)&lt;span style=&quot;color: teal;&quot;&gt;Bitmap&lt;/span&gt;.FromStream(stream);&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;        return&lt;/span&gt; bmp;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    }&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;    catch&lt;/span&gt; (&lt;span style=&quot;color: teal;&quot;&gt;Exception&lt;/span&gt; ex)&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    {&lt;br /&gt;&lt;span style=&quot;&quot;&gt;                &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;        throw&lt;/span&gt; ex;&lt;br /&gt;&lt;span style=&quot;&quot;&gt;            &lt;/span&gt;    }&lt;br /&gt;&lt;span style=&quot;&quot;&gt;        &lt;/span&gt;}&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Here..,&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;imagePath --&gt; Path where the Image Placed..&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Both Methods returns a Bitmap instance of the Image.&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-weight: bold; font-family: arial;&quot;&gt;For this Method to work make sure the Images Property&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;span style=&quot;font-weight: bold; font-family: arial;&quot;&gt;&quot;BuildAction : Embedded Resource&quot;&lt;/span&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/5133761302754596637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/5133761302754596637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/5133761302754596637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/5133761302754596637'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/09/embeding-images-into-application-in-c.html' title='Embeding Images into Application in C#.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-1397097437777164741</id><published>2007-09-08T13:54:00.000+05:30</published><updated>2008-11-13T12:18:14.026+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Master Pages"/><title type='text'>Master Pages Demo</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbwh_9hB9Dgpb1PRR2aYRl3nrf2ObVt0JMSiZnqRXLyg1ySXhYYO215uo3R6nhozET4qFW6fS8x16K6f9kFwgaJKkmqWApk4N0O6W9wuCfCS6u6tJf_3_EIktqy5a6nvCFpkMrVBp5x2cp/s1600-h/MasterPageDesign.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 578px; height: 963px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbwh_9hB9Dgpb1PRR2aYRl3nrf2ObVt0JMSiZnqRXLyg1ySXhYYO215uo3R6nhozET4qFW6fS8x16K6f9kFwgaJKkmqWApk4N0O6W9wuCfCS6u6tJf_3_EIktqy5a6nvCFpkMrVBp5x2cp/s400/MasterPageDesign.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5108456332186940194&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;p style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Master Page Design:&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;Master&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;C#&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;AutoEventWireup&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;CodeFile&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MasterPage.master.cs&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Inherits&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;MasterPage&quot;&lt;/span&gt; &lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;!&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;DOCTYPE&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;HTML&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;PUBLIC&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;Master Pages Demo&lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;br /&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;leftmargin&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;topmargin&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;no&quot;&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;form1&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;border&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;cellpadding&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;cellspacing&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;width: 100%; height: 100%&quot;&gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;height: 3%&quot;&gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;valign&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;top&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;align&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;right&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;background&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Images/banner.gif&quot;&gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;text-align: right&quot;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;38%&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;valign&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;bottom&quot;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;valign&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;bottom&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;align&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;right&quot;&gt; &lt;/span&gt;                                   &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;                                    &lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;--Script_Menu--&lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;u1:p&gt; &lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;97%&quot;&gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;align&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;center&quot;&gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;99%&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;100%&quot;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;height: 3%&quot;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;align&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;left&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;bgcolor&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;#BDB14B&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;valign&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;top&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;font: Bold; font-family: Verdana;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;                                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Label&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Label1&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;height: 94%&quot;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ContentPlaceHolder&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;ScreenContent&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&gt;&lt;/span&gt;&lt;br /&gt;                                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;ContentPlaceHolder&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Label&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Label2&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Label&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Label3&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;server&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;height: 3%&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;bgcolor&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;#BDB14B&quot;&gt;&lt;/span&gt;&lt;br /&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;align&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;center&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;font-family: Verdana; font-size: 12;&quot;&gt;&lt;/span&gt;&lt;br /&gt;                                    CopyRights&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;                                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                            &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                        &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                    &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;td&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;                &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;tr&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;            &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;table&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;        &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;br /&gt;    &lt;span style=&quot;color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&gt;&lt;br /&gt;&lt;/&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;u1:p&gt; &lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Master Page Code-Behind File:&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;public&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;partial&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;MasterPage&lt;/span&gt; : System.Web.UI.&lt;span style=&quot;color: teal;&quot;&gt;MasterPage&lt;/span&gt;&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;    string&lt;/span&gt; pageHeadingTitle = &lt;span style=&quot;color: maroon;&quot;&gt;&quot;Header&quot;&lt;/span&gt;;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;    ///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: gray;&quot;&gt;    ///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Property return a string&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: gray;&quot;&gt;    ///&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; PageHeadingTitle&lt;br /&gt;    {&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;        get&lt;/span&gt;&lt;br /&gt;        {&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;            return&lt;/span&gt; pageHeadingTitle;&lt;br /&gt;        }&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;        set&lt;/span&gt;&lt;br /&gt;        {&lt;br /&gt;            pageHeadingTitle = &lt;span style=&quot;color: blue;&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;        }&lt;br /&gt;    }&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;    ///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: gray;&quot;&gt;    ///&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt; Property returns a Label Object&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: gray;&quot;&gt;    ///&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;    public&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;Label&lt;/span&gt; MasterPageLabel&lt;br /&gt;    {&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;        get&lt;/span&gt;&lt;br /&gt;        {&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;            return&lt;/span&gt; Label2;&lt;br /&gt;        }&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;        set&lt;/span&gt;&lt;br /&gt;        {&lt;br /&gt;            Label2 = &lt;span style=&quot;color: blue;&quot;&gt;value&lt;/span&gt;;&lt;br /&gt;        }&lt;br /&gt;    }&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;    protected&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Page_Load(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; sender, &lt;span style=&quot;color: teal;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;br /&gt;    {&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;        if&lt;/span&gt; (!Page.IsPostBack)&lt;br /&gt;        {&lt;br /&gt;            Label1.Text = PageHeadingTitle;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;Content Page Design:&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;&lt;%&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;Page&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;C#&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;MasterPageFile&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;~/MasterPage.master&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;AutoEventWireup&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;CodeFile&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Default.aspx.cs&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Inherits&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;_Default&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Title&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Default1&quot;&lt;/span&gt; &lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;&lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;%&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;@&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: maroon;&quot;&gt;MasterType&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;VirtualPath&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;~/MasterPage.master&quot;&lt;/span&gt; &lt;span style=&quot;-moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; background-attachment: scroll;&quot;&gt;&lt;span style=&quot;background: yellow none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;&quot;&gt;%&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;asp&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; &lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Content2&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;ContentPlaceHolderID&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;ScreenContent&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;Runat&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;Server&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;&lt;!--&lt;/span--&gt;asp&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: maroon;&quot;&gt;Content&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 12pt;&quot;&gt;&lt;br /&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;&lt;br /&gt;Content Page Code Behind File:&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green;&quot;&gt;Using FindControl()&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;.MasterPageFile = &lt;span style=&quot;color: maroon;&quot;&gt;&quot;MasterPage.master&quot;&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: teal;&quot;&gt;MasterPage&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; mp = (&lt;span style=&quot;color: teal;&quot;&gt;MasterPage&lt;/span&gt;)&lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.Master;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: teal;&quot;&gt;Label&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; lbl = mp.FindControl(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Label2&quot;&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;Label&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: blue;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt; (lbl != &lt;span style=&quot;color: blue;&quot;&gt;null&lt;/span&gt;)&lt;br /&gt;lbl.Text = &lt;span style=&quot;color: maroon;&quot;&gt;&quot;Label2&quot;&lt;/span&gt;;&lt;u1:p&gt;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green;&quot;&gt;(Or)&lt;u1:p&gt;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;(Master.FindControl(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;Label3&quot;&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: teal;&quot;&gt;Label&lt;/span&gt;).Text = &lt;span style=&quot;color: maroon;&quot;&gt;&quot;Label3&quot;&lt;/span&gt;;&lt;u1:p&gt;&lt;br /&gt; &lt;!--[if !supportLineBreakNewLine]--&gt;&lt;br /&gt; &lt;!--[endif]--&gt;&lt;/u1:p&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;    &lt;p class=&quot;MsoNormal&quot; style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: gray;&quot;&gt;///&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;; color: green;&quot;&gt;Using Properties Or Controls in Master Page&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 10pt; font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;Master.PageHeadingTitle = &lt;span style=&quot;color: maroon;&quot;&gt;&quot;Content Page Header&quot;&lt;/span&gt;;&lt;br /&gt;Master.MasterPageLabel.Font.Size = 25;&lt;br /&gt;Master.MasterPageLabel.Text = &lt;span style=&quot;color: maroon;&quot;&gt;&quot;Label2&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/1397097437777164741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/1397097437777164741' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/1397097437777164741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/1397097437777164741'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/09/master-pages-demo.html' title='Master Pages Demo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbwh_9hB9Dgpb1PRR2aYRl3nrf2ObVt0JMSiZnqRXLyg1ySXhYYO215uo3R6nhozET4qFW6fS8x16K6f9kFwgaJKkmqWApk4N0O6W9wuCfCS6u6tJf_3_EIktqy5a6nvCFpkMrVBp5x2cp/s72-c/MasterPageDesign.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-8171058585329586770</id><published>2007-09-01T10:45:00.000+05:30</published><updated>2007-09-01T10:57:18.674+05:30</updated><title type='text'>How to Get AM PM Formatted DateTime in SQL Server</title><content type='html'>The Following Function is used to Gets the AM Or PM Formatted DateTime for the Given Date&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE   FUNCTION GetAMPMFormat(@inputDate DATETIME)&lt;br /&gt;RETURNS char(25)&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;    DECLARE @time varchar(5)&lt;br /&gt;    SET @time = CONVERT(char(10), @inputDate, 108)&lt;br /&gt;   &lt;br /&gt;    DECLARE @date varchar(10)&lt;br /&gt;    SET @date = CONVERT(char(10), @inputDate, 101)&lt;br /&gt;   &lt;br /&gt;    DECLARE @hour varchar(2)&lt;br /&gt;    DECLARE @minute varchar(2)&lt;br /&gt;   &lt;br /&gt;    SET @hour = LEFT(@time,2)&lt;br /&gt;    SET @minute = SUBSTRING(@time,4,2)&lt;br /&gt;   &lt;br /&gt;    DECLARE @amOrPm char(2)&lt;br /&gt;    SET @amOrPm = &#39;AM&#39;&lt;br /&gt;   &lt;br /&gt;    IF CAST(@hour as int) = 0 BEGIN&lt;br /&gt;        SET @hour = 12&lt;br /&gt;        SET @amOrPm = &#39;AM&#39;&lt;br /&gt;    END&lt;br /&gt;   &lt;br /&gt;    ELSE IF CAST(@hour as int) = 12 BEGIN&lt;br /&gt;        SET @amOrPm = &#39;PM&#39;&lt;br /&gt;    END&lt;br /&gt;&lt;br /&gt;    ELSE IF CAST(@hour as int) &gt; 12 BEGIN&lt;br /&gt;        SET @hour = @hour - 12&lt;br /&gt;        SET @amOrPm = &#39;PM&#39;&lt;br /&gt;    END&lt;br /&gt;   &lt;br /&gt;    DECLARE @outputDate char(25)&lt;br /&gt;    SET @outputDate = @date + &#39; &#39; + @hour + &#39;:&#39; + @minute + &#39; &#39; + @amOrPm&lt;br /&gt;&lt;br /&gt;    RETURN @outputDate&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For Example you maye use like&lt;br /&gt;&lt;br /&gt;PRINT dbo.GetAMPMFormattedDateTime(&#39;01-08-2007 20:10&#39;)&lt;br /&gt;&lt;br /&gt;it will prints&lt;br /&gt;01/08/2007 8:10 PM</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/8171058585329586770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/8171058585329586770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/8171058585329586770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/8171058585329586770'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/how-to-get-am-pm-formatted-datetime-in.html' title='How to Get AM PM Formatted DateTime in SQL Server'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-4277830589089261359</id><published>2007-09-01T09:48:00.000+05:30</published><updated>2007-09-01T14:36:12.670+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CONVERT()"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL DateTime"/><title type='text'>SQL Server DateTime Related...</title><content type='html'>&lt;h1&gt;&lt;a name=&quot;_cast_and_convert&quot;&gt;&lt;/a&gt;&lt;/h1&gt;&lt;h1&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;CONVERT&lt;/span&gt;&lt;/h1&gt;&lt;h1 style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size:78%;&quot;&gt;CONVERT function explicitly converts an expression of one data type to another. CAST and  CONVERT provide similar functionality.&lt;/span&gt;&lt;/h1&gt;  &lt;h5&gt;Syntax&lt;/h5&gt;&lt;p&gt;CAST &lt;b&gt;( &lt;/b&gt;&lt;i&gt;expression&lt;/i&gt;&lt;b&gt; &lt;/b&gt;AS &lt;i&gt;data_type &lt;/i&gt;&lt;b&gt;)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;CONVERT &lt;b&gt;( &lt;/b&gt;&lt;i&gt;data_type &lt;/i&gt;[ &lt;b&gt;( &lt;/b&gt;&lt;i&gt;length &lt;/i&gt;&lt;b&gt;) &lt;/b&gt;]  &lt;b&gt;,&lt;/b&gt; &lt;i&gt;expression&lt;/i&gt; [ &lt;b&gt;,&lt;/b&gt; &lt;i&gt;style &lt;/i&gt;] &lt;b&gt;)&lt;/b&gt;&lt;/p&gt; &lt;h5&gt;Arguments&lt;/h5&gt; &lt;p style=&quot;font-weight: bold;&quot;&gt;&lt;i&gt;expression&lt;/i&gt;&lt;/p&gt; &lt;p class=&quot;indent&quot;&gt;Is any valid Microsoft SQL Server expression. &lt;/p&gt; &lt;p style=&quot;font-weight: bold;&quot;&gt;&lt;i&gt;data_type&lt;/i&gt;&lt;/p&gt; &lt;p class=&quot;indent&quot;&gt;Is the target system-supplied data type, including &lt;b&gt;bigint&lt;/b&gt;  and &lt;b&gt;sql_variant&lt;/b&gt;. User-defined data types cannot be used.  &lt;/p&gt; &lt;p style=&quot;font-weight: bold;&quot;&gt;&lt;i&gt;length&lt;/i&gt;&lt;/p&gt; &lt;p class=&quot;indent&quot;&gt;Is an optional parameter of &lt;b&gt;nchar&lt;/b&gt;, &lt;b&gt;nvarchar&lt;/b&gt;,  &lt;b&gt;char&lt;/b&gt;, &lt;b&gt;varchar&lt;/b&gt;, &lt;b&gt;binary&lt;/b&gt;, or &lt;b&gt;varbinary&lt;/b&gt; data types. &lt;/p&gt; &lt;p style=&quot;font-weight: bold;&quot;&gt;&lt;i&gt;style&lt;/i&gt;&lt;/p&gt; &lt;p class=&quot;indent&quot;&gt;Is the style of date format used to convert &lt;b&gt;datetime&lt;/b&gt; or  &lt;b&gt;smalldatetime&lt;/b&gt; data to character data (&lt;b&gt;nchar&lt;/b&gt;, &lt;b&gt;nvarchar&lt;/b&gt;,  &lt;b&gt;char&lt;/b&gt;, &lt;b&gt;varchar&lt;/b&gt;, &lt;b&gt;nchar&lt;/b&gt;, or &lt;b&gt;nvarchar&lt;/b&gt; data types), or  the string format when converting &lt;b&gt;float&lt;/b&gt;,&lt;b&gt; real&lt;/b&gt;, &lt;b&gt;money&lt;/b&gt;, or  &lt;b&gt;smallmoney&lt;/b&gt; data to character data (&lt;b&gt;nchar&lt;/b&gt;, &lt;b&gt;nvarchar&lt;/b&gt;,&lt;b&gt;  char&lt;/b&gt;, &lt;b&gt;varchar&lt;/b&gt;, &lt;b&gt;nchar&lt;/b&gt;, or &lt;b&gt;nvarchar&lt;/b&gt; data types).&lt;/p&gt;&lt;br /&gt;&lt;table style=&quot;width: 719px; height: 682px;&quot; border=&quot;1&quot; cellpadding=&quot;2&quot; cols=&quot;4&quot; frame=&quot;box&quot; rules=&quot;all&quot;&gt; &lt;tbody&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;th class=&quot;label&quot; width=&quot;23%&quot;&gt;yy&lt;/th&gt; &lt;th class=&quot;label&quot; width=&quot;21%&quot;&gt;yyyy&lt;/th&gt; &lt;th class=&quot;label&quot; width=&quot;27%&quot;&gt;&lt;br /&gt;Standard&lt;/th&gt; &lt;th class=&quot;label&quot; width=&quot;29%&quot;&gt;&lt;br /&gt;Input/Output&lt;/th&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;0 or 100&lt;br /&gt;&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;Default&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;mon dd yyyy hh:miAM (or PM)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;1&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;101&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;USA&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;mm/dd/yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;2&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;102&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;ANSI&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;yy.mm.dd&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;3&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;103&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;British/French&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd/mm/yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;4&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;104&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;German&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd.mm.yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;5&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;105&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;Italian&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd-mm-yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;6&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;106&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd mon yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;7&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;107&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;Mon dd, yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;8&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;108&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;hh:mm:ss&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;9 or 109&lt;br /&gt;&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;Default + milliseconds&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;mon dd yyyy hh:mi:ss:mmmAM (or PM)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;10&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;110&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;USA&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;mm-dd-yy&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;11&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;111&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;JAPAN&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;yy/mm/dd&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;12&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;112&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;ISO&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;yymmdd&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;13 or 113&lt;br /&gt;&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;Europe default + milliseconds&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd mon yyyy hh:mm:ss:mmm(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;14&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;114&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;hh:mi:ss:mmm(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;20 or 120&lt;br /&gt;&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;ODBC canonical&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;yyyy-mm-dd hh:mi:ss(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;21 or 121&lt;br /&gt;&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;ODBC canonical (with milliseconds)&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;yyyy-mm-dd hh:mi:ss.mmm(24h)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;126&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;ISO8601&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;yyyy-mm-dd Thh:mm:ss:mmm(no spaces)&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;130&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;Kuwaiti&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd mon yyyy hh:mi:ss:mmmAM&lt;/td&gt;&lt;/tr&gt; &lt;tr valign=&quot;top&quot;&gt; &lt;td width=&quot;23%&quot;&gt;-&lt;/td&gt; &lt;td width=&quot;21%&quot;&gt;131&lt;/td&gt; &lt;td width=&quot;27%&quot;&gt;Kuwaiti&lt;/td&gt; &lt;td width=&quot;29%&quot;&gt;dd/mm/yy hh:mi:ss:mmmAM&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;u&gt;Some Other Date Related Functions...&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id=&quot;intelliTxt&quot;&gt;&lt;span id=&quot;_ctl0_ArticleText&quot;&gt;&lt;p&gt;&lt;strong&gt;Dateadd&lt;/strong&gt;: Returns a new datetime value based on adding    an interval to the specified date.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: DATEADD ( datepart, number, date )&lt;/em&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Datediff&lt;/strong&gt;: Returns the number of date and time boundaries crossed    between two specified dates. &lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: DATEDIFF ( datepart, startdate, enddate )    &lt;/em&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Datename&lt;/strong&gt;: Returns a character string representing the specified    datepart of the specified date.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: DATENAME ( datepart, date )&lt;/em&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Datepart&lt;/strong&gt;: Returns an integer representing the specified datepart    of the specified date.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: DATEPART ( datepart, date ) &lt;/em&gt; &lt;/p&gt; &lt;p&gt;&lt;strong&gt;Day: &lt;/strong&gt;Returns an integer representing the day datepart of the    specified date.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: DAY ( date ) &lt;/em&gt; &lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Getdate&lt;/strong&gt;: Returns the current system date and time in the Microsoft®    SQL Server™ standard internal format for datetime&lt;strong&gt; &lt;/strong&gt;values.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: GETDATE ( )&lt;/em&gt;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Month:&lt;/strong&gt; Returns an integer that represents the month part of    a specified date.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: MONTH ( date ) &lt;/em&gt; &lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Year: &lt;/strong&gt;Returns an integer that represents the year part of    a specified date.&lt;/p&gt;    &lt;p&gt;&lt;em&gt;Syntax: YEAR ( date )&lt;/em&gt;&lt;/p&gt;&lt;p  style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Here,&lt;br /&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;em&gt;datepart--&gt; may be mm, dd, yy, yyyy, mi..etc...&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style=&quot;font-family:arial;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;em&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p  style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Example:&lt;/span&gt;&lt;/p&gt;&lt;p  style=&quot;font-family:arial;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;/span&gt;&lt;br /&gt;PRINT DATEADD ( dd, 60,  &#39;Sep  1 2007 10:46AM&#39;)&lt;/p&gt;&lt;br /&gt;will prints&lt;br /&gt;&lt;span style=&quot;font-family:verdana;&quot;&gt;Oct 31 2007 10:46AM&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/4277830589089261359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/4277830589089261359' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/4277830589089261359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/4277830589089261359'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/sql-server-datetime-related.html' title='SQL Server DateTime Related...'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-3550983649772685336</id><published>2007-08-30T17:52:00.000+05:30</published><updated>2007-08-30T18:36:38.140+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AddToFavorites"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>&quot;Add To Favorites&quot; Dialog in JavaScript</title><content type='html'>&lt;span style=&quot;font-weight: bold;&quot;&gt;JavaScript to launch the browser Favorites window to bookmark the current page.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;    function bookmarkThisSite(url, bookmarkName)&lt;br /&gt;    {&lt;br /&gt;      if (sidebar)&lt;br /&gt;      {&lt;br /&gt;        sidebar.addPanel(bookmarkName, url,&quot;&quot;);&lt;br /&gt;      }&lt;br /&gt;      else if( document.all )&lt;br /&gt;      {&lt;br /&gt;        external.AddFavorite(url, bookmarkName);&lt;br /&gt;      }&lt;br /&gt;      else if( window.opera &amp;&amp;amp; window.print )&lt;br /&gt;      {&lt;br /&gt;        return true;&lt;br /&gt;      }&lt;br /&gt;      else&lt;br /&gt;      {&lt;br /&gt;        return true;&lt;br /&gt;      }&lt;br /&gt;    }</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/3550983649772685336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/3550983649772685336' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/3550983649772685336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/3550983649772685336'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/add-to-favorites-dialog-in-javascript.html' title='&quot;Add To Favorites&quot; Dialog in JavaScript'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-4212531277720569374</id><published>2007-08-30T16:53:00.000+05:30</published><updated>2007-08-30T17:19:33.657+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>The JavaScript Programming Language</title><content type='html'>&lt;embed allowscriptaccess=&quot;never&quot; flashvars=&quot;id=1710507&amp;emailUrl=http%3A%2F%2Fvideo.yahoo.com%2Futil%2Fmail%3Fei%3DUTF-8%26vid%3D111593&amp;amp;imUrl=http%253A%252F%252Fvideo.yahoo.com%252Fvideo%252Fplay%253Fei%253DUTF-8%2526vid%253D111593&amp;imTitle=Douglas%2BCrockford%253A%2B%2526quot%253BThe%2BJavaScript%2BProgramming%2BLanguage%2526quot%253B%252F1%2Bof%2B4&amp;amp;searchUrl=http://video.yahoo.com/search/video?p=&amp;profileUrl=http://video.yahoo.com/video/profile?yid=&amp;amp;creatorValue=ZXJpY21pcmFnbGlh&amp;amp;vid=111593&quot; src=&quot;http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf&quot; height=&quot;350&quot; width=&quot;425&quot;&gt;&lt;/embed&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/4212531277720569374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/4212531277720569374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/4212531277720569374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/4212531277720569374'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/javascript-programming-language.html' title='The JavaScript Programming Language'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-8761642011486216439</id><published>2007-08-28T19:22:00.000+05:30</published><updated>2007-08-28T19:40:19.678+05:30</updated><title type='text'>How Do I Get Paths and URL fragments from the HttpRequest object?</title><content type='html'>Visit...&lt;br /&gt;&lt;a href=&quot;http://www.cambiaresearch.com/c4/dfdb20ae-b335-48ae-a201-f2a5a8329342/How-Do-I-Get-Paths-and-URL-fragments-from-the-HttpRequest-object.aspx&quot;&gt;&lt;br /&gt;http://www.cambiaresearch.com/c4/dfdb20ae-b335-48ae-a201-f2a5a8329342/How-Do-I-Get-Paths-and-URL-fragments-from-the-HttpRequest-object.aspx&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/8761642011486216439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/8761642011486216439' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/8761642011486216439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/8761642011486216439'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/how-do-i-get-paths-and-url-fragments.html' title='How Do I Get Paths and URL fragments from the HttpRequest object?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-7801550854042774604</id><published>2007-08-28T19:10:00.000+05:30</published><updated>2007-08-28T19:21:30.377+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="DLL Register"/><category scheme="http://www.blogger.com/atom/ns#" term="UnRegister"/><title type='text'>DLL Register And UnRegister in Mouse Context Menu</title><content type='html'>&lt;pre&gt;&lt;span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;&lt;u&gt;Normal Case:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;  &lt;span style=&quot;font-weight: bold;&quot;&gt;  For register DLL or OCX&lt;/span&gt;: &lt;br /&gt;         rundll32 yourdll.dll,DLLRegisterServer&lt;br /&gt;         rundll32 yourocx.ocx,DLLRegisterServer&lt;br /&gt;&lt;br /&gt;    &lt;span style=&quot;font-weight: bold;&quot;&gt;For unregister DLL or OCX:&lt;/span&gt;&lt;br /&gt;         rundll32 yourdll.dll,DLLUnregisterServer&lt;br /&gt;         rundll32 yourocx.ocx,DLLUnregisterServer&lt;br /&gt; &lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:130%;&quot; &gt;&lt;u&gt;For Mouse Context Menu:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;   If do you want make a &quot;Right mouse-click&quot; option, enter in the REGEDIT and make the options:&lt;br /&gt;&lt;br /&gt;        For DLL Register:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile&lt;br /&gt;                 Make a new key &quot;Shell&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile\shell&lt;br /&gt;                 Make a new key &quot;Register&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile\shell\register&lt;br /&gt;                 In the &quot;Default&quot; value, type: &quot;DLL Register&quot;&lt;br /&gt;                 And make a new key &quot;Command&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile\shell\register\command&lt;br /&gt;                 In the &quot;Default&quot; value, type:&lt;br /&gt;                 rundll32.exe &quot;%1&quot;,DllRegisterServer&lt;br /&gt;&lt;br /&gt;        For DLL Unregister:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile&lt;br /&gt;                 Make a new key &quot;Shell&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile\shell&lt;br /&gt;                 Make a new key &quot;Unregister&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile\shell\unregister&lt;br /&gt;                 In the &quot;Default&quot; value, type: &quot;DLL Unregister&quot;&lt;br /&gt;                 And make a new key &quot;Command&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\dllfile\shell\unregister\command&lt;br /&gt;                 In the &quot;Default&quot; value, type:&lt;br /&gt;                 rundll32.exe &quot;%1&quot;,DllUnregisterServer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        For OCX Register:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile&lt;br /&gt;                 Make a new key &quot;Shell&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile\shell&lt;br /&gt;                 Make a new key &quot;Register&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile\shell\register&lt;br /&gt;                 In the &quot;Default&quot; value, type: &quot;OCX Register&quot;&lt;br /&gt;                 And make a new key &quot;Command&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile\shell\register\command&lt;br /&gt;                 In the &quot;Default&quot; value, type:&lt;br /&gt;                 rundll32.exe &quot;%1&quot;,DllRegisterServer&lt;br /&gt;&lt;br /&gt;        For OCX Unregister:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxlfile&lt;br /&gt;                 Make a new key &quot;Shell&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile\shell&lt;br /&gt;                 Make a new key &quot;Unregister&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile\shell\unregister&lt;br /&gt;                 In the &quot;Default&quot; value, type: &quot;OCX Unregister&quot;&lt;br /&gt;                 And make a new key &quot;Command&quot;:&lt;br /&gt;&lt;br /&gt;           HKEY_CLASSES_ROOT\ocxfile\shell\unregister\command&lt;br /&gt;                 In the &quot;Default&quot; value, type:&lt;br /&gt;                 rundll32.exe &quot;%1&quot;,DllUnregisterServer&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/7801550854042774604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/7801550854042774604' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/7801550854042774604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/7801550854042774604'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/dll-register-and-unregister.html' title='DLL Register And UnRegister in Mouse Context Menu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-2746954960577066197</id><published>2007-08-28T10:30:00.000+05:30</published><updated>2007-08-28T10:30:31.661+05:30</updated><title type='text'>Client-Side JavaScript Reference</title><content type='html'>&lt;a href=&quot;http://docs.sun.com/source/816-6408-10/contents.htm&quot;&gt;Client-Side JavaScript Reference&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&quot;Client-Side JavaScript Reference This book is a reference manual for the JavaScript language, including both core and client-side JavaScript for version 1.3. JavaScript is Netscape&#39;s cross-platform, object-based scripting language for client and server applications.&quot;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://docs.sun.com/source/816-6408-10/contents.htm&quot;&gt;http://docs.sun.com/source/816-6408-10/contents.htm&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/2746954960577066197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/2746954960577066197' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/2746954960577066197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/2746954960577066197'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/client-side-javascript-reference.html' title='Client-Side JavaScript Reference'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-6684144838608526172</id><published>2007-08-25T19:40:00.000+05:30</published><updated>2007-08-25T19:53:21.280+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Delegates"/><category scheme="http://www.blogger.com/atom/ns#" term="Events"/><title type='text'>Delegates and Events in C# / .NET</title><content type='html'>&lt;h1&gt;             &lt;span lang=&quot;en-us&quot;&gt;&lt;a name=&quot;Overview&quot;&gt;Overview&lt;/a&gt;&lt;/span&gt;           &lt;/h1&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang=&quot;en-us&quot;&gt;All of us have been exposed to &lt;b&gt;event driven&lt;/b&gt; programming of               some sort or the other. C# adds on value to the often mentioned world of event driven               programming by adding support through &lt;b&gt;events and delegates&lt;/b&gt;. The emphasis of               this article would be to identify what exactly happens when you add an event handler               to your common UI controls. A simple simulation of what could possibly be going on               behind the scenes when the AddOnClick or any similar event is added to the Button               class will be explained. This will help you understand better the nature of event               handling using multi cast delegates.&lt;/span&gt;             &lt;/p&gt;           &lt;/blockquote&gt;           &lt;h1&gt;             &lt;span lang=&quot;en-us&quot;&gt;&lt;a name=&quot;Delegates&quot;&gt;Delegates&lt;/a&gt;&lt;/span&gt;           &lt;/h1&gt;           &lt;blockquote&gt;             &lt;p&gt;               &lt;span lang=&quot;en-us&quot;&gt;A delegate in C# is similar to a function pointer in C or C++.               Using a delegate allows the programmer to encapsulate a reference to a method inside               a delegate object. The delegate object can then be passed to code which can call the               referenced method, without having to know at compile time which method will be               invoked.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h1&gt;&lt;span lang=&quot;en-us&quot;&gt;&lt;a name=&quot;Events&quot;&gt;Events&lt;/a&gt;&lt;/span&gt; &lt;/h1&gt; &lt;blockquote&gt; &lt;p class=&quot;normal&quot;&gt;&lt;span lang=&quot;en-us&quot;&gt;The Event model in C# finds its roots in the  event programming model that is popular in asynchronous programming. The basic  foundation behind this programming model is the idea of &quot;publisher and  subscribers.&quot; In this model, you have &lt;b&gt;&lt;i&gt;publishers&lt;/i&gt;&lt;/b&gt; who will do some  logic and publish an &quot;event.&quot; Publishers will then send out their event only to  &lt;b&gt;&lt;i&gt;subscribers&lt;/i&gt;&lt;/b&gt; who have subscribed to receive the specific  event.&lt;/span&gt; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;             &lt;/p&gt;           &lt;/blockquote&gt;&lt;br /&gt;&lt;span lang=&quot;en-us&quot;&gt;More Information:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.akadia.com/services/dotnet_delegates_and_events.html&quot;&gt;http://www.akadia.com/services/dotnet_delegates_and_events.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/6684144838608526172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/6684144838608526172' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/6684144838608526172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/6684144838608526172'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/delegates-and-events-in-c-net.html' title='Delegates and Events in C# / .NET'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-5123784600173044271</id><published>2007-08-09T09:42:00.000+05:30</published><updated>2007-08-23T19:30:19.991+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="enum"/><category scheme="http://www.blogger.com/atom/ns#" term="enumeration in C#"/><category scheme="http://www.blogger.com/atom/ns#" term="enumerators in C#"/><title type='text'>enum at C# Online.NET (CSharp-Online.NET)</title><content type='html'>&lt;a href=&quot;http://en.csharp-online.net/enum&quot;&gt;enum at C# Online.NET (CSharp-Online.NET)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h1 class=&quot;firstHeading&quot;&gt;enum&lt;/h1&gt;&lt;script type=&quot;text/javascript&quot;&gt;if (window.showTocToggle) { var tocShowText = &quot;show&quot;; var tocHideText = &quot;hide&quot;; showTocToggle(); } &lt;/script&gt;  &lt;a name=&quot;The_Basics&quot;&gt;&lt;/a&gt;&lt;h2&gt; The Basics &lt;/h2&gt; &lt;p&gt;An &lt;code&gt;enum&lt;/code&gt; is a value type with a set of related named constants often referred to as an enumerator list. They allow code to look a lot cleaner and easier to read by getting rid of &quot;magic numbers&quot;, that is to say, they get rid of numbers which have a purpose within a module of code, but make the code harder to read. If a single number needs a definition to make it easier to read then use a constant as shown below. &lt;/p&gt; &lt;pre class=&quot;csharp&quot;&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;const&lt;/span&gt; &lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;int&lt;/span&gt; North = &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;0&lt;/span&gt;;&lt;/pre&gt; &lt;p&gt;However, if more than one related number needs a definition, then use an enumeration. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;a name=&quot;Declaration&quot;&gt;&lt;/a&gt;&lt;h2&gt; Declaration &lt;/h2&gt; &lt;p&gt;An &lt;code&gt;enum&lt;/code&gt; is declared as follows:  &lt;/p&gt; &lt;pre&gt;[attributes] [modifiers] enum identifier [:base-type]&lt;br /&gt;{&lt;br /&gt;enumerator-list [,]&lt;br /&gt;}&lt;/pre&gt; &lt;p&gt;The &lt;b&gt;attributes&lt;/b&gt; is optional and is used to hold additional declarative information.  &lt;/p&gt;&lt;p&gt;The &lt;b&gt;modifier&lt;/b&gt; is optional. The allowed modifiers are &lt;code&gt;new&lt;/code&gt;, &lt;code&gt;public&lt;/code&gt;, &lt;code&gt;protected&lt;/code&gt;, &lt;code&gt;internal&lt;/code&gt; and &lt;code&gt;private&lt;/code&gt;. &lt;/p&gt;&lt;p&gt;The keyword &lt;code&gt;enum&lt;/code&gt; must be followed by an &lt;b&gt;identifier&lt;/b&gt; that names the enum.  &lt;/p&gt;&lt;p&gt;The &lt;b&gt;base-type&lt;/b&gt; of an enumeration may be one of the following; &lt;code&gt;byte&lt;/code&gt;, &lt;code&gt;sbyte&lt;/code&gt;, &lt;code&gt;short&lt;/code&gt;, &lt;code&gt;ushort&lt;/code&gt;, &lt;code&gt;int&lt;/code&gt;, &lt;code&gt;uint&lt;/code&gt;, &lt;code&gt;long&lt;/code&gt; or &lt;code&gt;ulong&lt;/code&gt;. If no base-type is declared, than the default of &lt;code&gt;int&lt;/code&gt; is used. &lt;/p&gt;&lt;p&gt;The &lt;b&gt;enumerator-list&lt;/b&gt; contains the identifiers which are separated by commas (optionally including a value assignment). &lt;/p&gt;&lt;p&gt;The first enumerator begins at zero by default and each enumerator following is increased by 1. This can be overridden so that each member of the &lt;b&gt;enumerator-list&lt;/b&gt; contains its own unrelated value (see second example below). Two items in an enumeration can hold the same value, however, this will cause problems if you use an &lt;a href=&quot;http://en.csharp-online.net/Switching_Keycodes&quot; title=&quot;Switching Keycodes&quot;&gt; automated switch statement&lt;/a&gt; where all elements are added. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;a name=&quot;Example_1_.E2.80.93_A_simple_enumeration&quot;&gt;&lt;/a&gt;&lt;h2&gt; Example 1 – A simple enumeration &lt;/h2&gt; &lt;p&gt;An application may need to work with directions. Instead of using four numbers to represent the major directions, an enumeration works better. The numbers then become irrespective as the directions are named. &lt;/p&gt; &lt;pre class=&quot;csharp&quot;&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;enum&lt;/span&gt; Direction&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;North,&lt;br /&gt;East,&lt;br /&gt;South,&lt;br /&gt;West&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;a name=&quot;Example_2_.E2.80.93_Number_specific&quot;&gt;&lt;/a&gt;&lt;h2&gt; Example 2 – Number specific &lt;/h2&gt; &lt;p&gt;Now consider the same enumeration, but with each direction holding the value clockwise that they are from North. &lt;/p&gt; &lt;pre class=&quot;csharp&quot;&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;enum&lt;/span&gt; Direction&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;North = &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;0&lt;/span&gt;,&lt;br /&gt;East = &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;90&lt;/span&gt;,&lt;br /&gt;South = &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;180&lt;/span&gt;,&lt;br /&gt;West = &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;270&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;We would use the enumeration in the same manner, but the values have different meanings. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;a name=&quot;Casting&quot;&gt;&lt;/a&gt;&lt;h2&gt; Casting &lt;/h2&gt; &lt;p&gt;To get the underlying value of an item in an enumerator-list, you need to have an explicit cast to convert it from the &lt;code&gt;enum&lt;/code&gt; type to its integral type. The following code displays this and makes use of the &lt;code&gt;enum&lt;/code&gt; in example 2. &lt;/p&gt; &lt;pre class=&quot;csharp&quot;&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;void&lt;/span&gt; Main&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;]&lt;/span&gt; args&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;-------------------------------&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;Direction Enum Members by Name:&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;-------------------------------&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 128, 128); font-style: italic;&quot;&gt;// get a list of member names from Direction enum,&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 128, 128); font-style: italic;&quot;&gt;// figure out the numeric value, and display&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;foreach&lt;/span&gt; &lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;string&lt;/span&gt; direction &lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;in&lt;/span&gt; Enum.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;GetNames&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;Direction&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(43, 145, 175);&quot;&gt;Console&lt;/span&gt;.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;WriteLine&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(163, 21, 21);&quot;&gt;&quot;Direction Member: {0}&lt;span style=&quot;color: rgb(163, 21, 21); font-weight: bold;&quot;&gt;\n&lt;/span&gt; Value: {1}&quot;&lt;/span&gt;,&lt;br /&gt;    direction, &lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;Enum.&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Parse&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(6, 0, 255);&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;Direction&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;, direction&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;/pre&gt; &lt;p&gt;And here is the output &lt;/p&gt; &lt;pre&gt;-------------------------------&lt;br /&gt;Direction Enum Members by Name:&lt;br /&gt;-------------------------------&lt;br /&gt;Direction Member: North&lt;br /&gt;Value: 0&lt;br /&gt;Direction Member: East&lt;br /&gt;Value: 90&lt;br /&gt;Direction Member: South&lt;br /&gt;Value: 180&lt;br /&gt;Direction Member: West&lt;br /&gt;Value: 270&lt;/pre&gt; &lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;a name=&quot;Some_useful_methods&quot;&gt;&lt;/a&gt;&lt;h2&gt; Some useful methods &lt;/h2&gt; &lt;ul&gt;&lt;li&gt;&lt;code&gt;Enum.GetName&lt;/code&gt; - retrieves the name of the constant in the enumeration that has a specific value. &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;code&gt;Enum.GetNames&lt;/code&gt; - retrieves an array of the names of the constants in the enumeration. &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;code&gt;Enum.GetValues&lt;/code&gt; - retrieves an array of the values of the constants in the enumeration. &lt;/li&gt;&lt;/ul&gt; &lt;ul&gt;&lt;li&gt;&lt;code&gt;Enum.IsDefined&lt;/code&gt; - returns an indication whether a constant with a specified value exists in a specified enumeration. &lt;/li&gt;&lt;/ul&gt; &lt;a name=&quot;MSDN_references&quot;&gt;&lt;/a&gt;&lt;h2&gt; MSDN references &lt;/h2&gt; &lt;ul&gt;&lt;li&gt; &lt;a href=&quot;http://msdn2.microsoft.com/en-us/library/sbbt4032.aspx&quot; class=&quot;external text previewlink&quot; target=&quot;offsite&quot; title=&quot;http://msdn2.microsoft.com/en-us/library/sbbt4032.aspx&quot; rel=&quot;nofollow&quot;&gt;enum&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/5123784600173044271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/5123784600173044271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/5123784600173044271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/5123784600173044271'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/enum-at-c-onlinenet-csharp-onlinenet.html' title='enum at C# Online.NET (CSharp-Online.NET)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-4181926901103074080</id><published>2007-08-07T17:27:00.000+05:30</published><updated>2007-08-07T17:28:53.289+05:30</updated><title type='text'>RegExLib.com Regular Expression Cheat Sheet (.NET Framework)</title><content type='html'>&lt;a href=&quot;http://regexlib.com/CheatSheet.aspx&quot;&gt;RegExLib.com Regular Expression Cheat Sheet (.NET Framework)&lt;/a&gt;: &quot;RegExLib.com Regular Expression Cheat Sheet (.NET)&quot;&lt;br /&gt;&lt;br /&gt;  &lt;span style=&quot;;font-family:Tahoma,Arial;font-size:14;&quot;  &gt;RegExLib.com Regular Expression Cheat Sheet (.NET)&lt;/span&gt;  &lt;table style=&quot;font-size: 8pt;&quot; bgcolor=&quot;#cccccc&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;   &lt;tbody&gt;&lt;tr&gt;    &lt;td align=&quot;left&quot; bgcolor=&quot;#ffffff&quot; valign=&quot;top&quot; width=&quot;75%&quot;&gt;    &lt;table style=&quot;font-size: 8pt;&quot; bgcolor=&quot;#ffffff&quot; border=&quot;1&quot; bordercolor=&quot;#eeeeee&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;     &lt;tbody&gt;&lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;Metacharacters Defined&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;     &lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td&gt;&lt;b&gt;MChar&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Definition&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;^&lt;/td&gt;&lt;td&gt;Start of a string.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;$&lt;/td&gt;&lt;td&gt;End of a string.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;.&lt;/td&gt;&lt;td&gt;Any character (except \n newline)&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;|&lt;/td&gt;&lt;td&gt;Alternation.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;{...}&lt;/td&gt;&lt;td&gt;Explicit quantifier notation.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;[...]&lt;/td&gt;&lt;td&gt;Explicit set of characters to match.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;(...)&lt;/td&gt;&lt;td&gt;Logical grouping of part of an expression.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;0 or more of previous expression.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;+&lt;/td&gt;&lt;td&gt;1 or more of previous expression.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;?&lt;/td&gt;&lt;td&gt;0 or 1 of previous expression; also forces minimal matching when an expression might match several strings within a search string.&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;\&lt;/td&gt;&lt;td&gt;Preceding one of the above, it makes it a literal instead of a special character. Preceding a special matching character, see below.&lt;/td&gt;&lt;/tr&gt;    &lt;/tbody&gt;&lt;/table&gt;    &lt;/td&gt;    &lt;td align=&quot;left&quot; bgcolor=&quot;#ffffff&quot; valign=&quot;top&quot; width=&quot;25%&quot;&gt;    &lt;table style=&quot;font-size: 8pt;&quot; id=&quot;Table1&quot; bgcolor=&quot;#ffffff&quot; border=&quot;1&quot; bordercolor=&quot;#eeeeee&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;     &lt;tbody&gt;&lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;Metacharacter Examples&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;     &lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td&gt;&lt;b&gt;Pattern&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Sample Matches&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;^abc&lt;/td&gt;&lt;td&gt;abc, abcdefg, abc123, ...&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;abc$&lt;/td&gt;&lt;td&gt;abc, endsinabc, 123abc, ...&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;a.c&lt;/td&gt;&lt;td&gt;abc, aac, acc, adc, aec, ...&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;bill|ted&lt;/td&gt;&lt;td&gt;ted, bill&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;ab{2}c&lt;/td&gt;&lt;td&gt;abbc&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;a[bB]c&lt;/td&gt;&lt;td&gt;abc, aBc&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;(abc){2}&lt;/td&gt;&lt;td&gt;abcabc&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;ab*c&lt;/td&gt;&lt;td&gt;ac, abc, abbc, abbbc, ...&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;ab+c&lt;/td&gt;&lt;td&gt;abc, abbc, abbbc, ...&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;ab?c&lt;/td&gt;&lt;td&gt;ac, abc&lt;/td&gt;&lt;/tr&gt;     &lt;tr&gt;&lt;td&gt;a\sc&lt;/td&gt;&lt;td&gt;a c&lt;/td&gt;&lt;/tr&gt;    &lt;/tbody&gt;&lt;/table&gt;       &lt;/td&gt;   &lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;  &lt;table style=&quot;font-size: 8pt;&quot; bgcolor=&quot;#ffffff&quot; border=&quot;1&quot; bordercolor=&quot;#eeeeee&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;   &lt;tbody&gt;&lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;Character Escapes&lt;/b&gt; &lt;a href=&quot;http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconcharacterescapes.asp&quot;&gt;http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconcharacterescapes.asp&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;   &lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td&gt;&lt;b&gt;Escaped Char&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;ordinary characters&lt;/td&gt;&lt;td&gt;Characters other than . $ ^ { [ ( | ) ] } * + ? \ match themselves.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\a&lt;/td&gt;&lt;td&gt;Matches a bell (alarm) \u0007.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\b&lt;/td&gt;&lt;td&gt;Matches a backspace \u0008 if in a []; otherwise matches a word boundary (between \w and \W characters).&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\t&lt;/td&gt;&lt;td&gt;Matches a tab \u0009.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\r&lt;/td&gt;&lt;td&gt;Matches a carriage return \u000D.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\v&lt;/td&gt;&lt;td&gt;Matches a vertical tab \u000B.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\f&lt;/td&gt;&lt;td&gt;Matches a form feed \u000C.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\n&lt;/td&gt;&lt;td&gt;Matches a new line \u000A.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\e&lt;/td&gt;&lt;td&gt;Matches an escape \u001B.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\040&lt;/td&gt;&lt;td&gt;Matches an ASCII character as octal (up to three digits); numbers with no leading zero are backreferences if they have only one digit or if they correspond to a capturing group number. (For more information, see Backreferences.) For example, the character \040 represents a space.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;     &lt;td&gt;\x20&lt;/td&gt;&lt;td&gt;Matches an ASCII character using hexadecimal representation (exactly two digits).&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\cC&lt;/td&gt;&lt;td&gt;Matches an ASCII control character; for example \cC is control-C.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\u0020&lt;/td&gt;&lt;td&gt;Matches a Unicode character using a hexadecimal representation (exactly four digits).&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\*&lt;/td&gt;&lt;td&gt;When followed by a character that is not recognized as an escaped character, matches that character. For example, &lt;b&gt;\*&lt;/b&gt; is the same as &lt;b&gt;\x2A&lt;/b&gt;.&lt;/td&gt;&lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;  &lt;table style=&quot;font-size: 8pt;&quot; bgcolor=&quot;#ffffff&quot; border=&quot;1&quot; bordercolor=&quot;#eeeeee&quot; cellpadding=&quot;1&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;   &lt;tbody&gt;&lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;b&gt;Character Classes&lt;/b&gt; &lt;a href=&quot;http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconcharacterclasses.asp&quot;&gt;http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconcharacterclasses.asp&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;   &lt;tr bgcolor=&quot;#ccffcc&quot;&gt;&lt;td&gt;&lt;b&gt;Char Class&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;.&lt;/td&gt;&lt;td&gt;Matches any character except \n. If modified by the Singleline option, a period character matches any character. For more information, see Regular Expression Options.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;[aeiou]&lt;/td&gt;&lt;td&gt;Matches any single character included in the specified set of characters.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;[^aeiou]&lt;/td&gt;&lt;td&gt;Matches any single character not in the specified set of characters.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;[0-9a-fA-F]&lt;/td&gt;&lt;td&gt;Use of a hyphen (–) allows specification of contiguous character ranges.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\p{name}&lt;/td&gt;&lt;td&gt;Matches any character in the named character class specified by {name}. Supported names are Unicode groups and block ranges. For example, Ll, Nd, Z, IsGreek, IsBoxDrawing.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\P{name}&lt;/td&gt;&lt;td&gt;Matches text not included in groups and block ranges specified in {name}.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\w&lt;/td&gt;&lt;td&gt;Matches any word character. Equivalent to the Unicode character categories [\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}]. If ECMAScript-compliant behavior is specified with the ECMAScript option, \w is equivalent to [a-zA-Z_0-9].&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\W&lt;/td&gt;&lt;td&gt;Matches any nonword character. Equivalent to the Unicode categories [^\p{Ll}\p{Lu}\p{Lt}\p{Lo}\p{Nd}\p{Pc}]. If ECMAScript-compliant behavior is specified with the ECMAScript option, \W is equivalent to [^a-zA-Z_0-9].&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\s&lt;/td&gt;&lt;td&gt;Matches any white-space character. Equivalent to the Unicode character categories [\f\n\r\t\v\x85\p{Z}]. If ECMAScript-compliant behavior is specified with the ECMAScript option, \s is equivalent to [ \f\n\r\t\v].&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\S&lt;/td&gt;&lt;td&gt;Matches any non-white-space character. Equivalent to the Unicode character categories [^\f\n\r\t\v\x85\p{Z}]. If ECMAScript-compliant behavior is specified with the ECMAScript option, \S is equivalent to [^ \f\n\r\t\v].&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\d&lt;/td&gt;&lt;td&gt;Matches any decimal digit. Equivalent to \p{Nd} for Unicode and [0-9] for non-Unicode, ECMAScript behavior.&lt;/td&gt;&lt;/tr&gt;   &lt;tr&gt;&lt;td&gt;\D&lt;/td&gt;&lt;td&gt;Matches any nondigit. Equivalent to \P{Nd} for Unicode and [^0-9] for non-Unicode, ECMAScript behavior.&lt;/td&gt;&lt;/tr&gt;  &lt;/tbody&gt;&lt;/table&gt;  &lt;script src=&quot;http://www.google-analytics.com/urchin.js&quot; type=&quot;text/javascript&quot;&gt; &lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; _uacct = &quot;UA-470225-2&quot;; urchinTracker(); &lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/4181926901103074080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/4181926901103074080' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/4181926901103074080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/4181926901103074080'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/08/regexlibcom-regular-expression-cheat.html' title='RegExLib.com Regular Expression Cheat Sheet (.NET Framework)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5831408450174789998.post-6085677817727483687</id><published>2007-07-31T17:45:00.000+05:30</published><updated>2007-07-31T17:45:04.763+05:30</updated><title type='text'>How do I find a stored procedure containing ?</title><content type='html'>&lt;a href=&quot;http://databases.aspfaq.com/database/how-do-i-find-a-stored-procedure-containing-text.html&quot;&gt;How do I find a stored procedure containing &lt;text&gt;?&lt;/text&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ramesh-raj.blogspot.com/feeds/6085677817727483687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/5831408450174789998/6085677817727483687' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/6085677817727483687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5831408450174789998/posts/default/6085677817727483687'/><link rel='alternate' type='text/html' href='http://ramesh-raj.blogspot.com/2007/07/how-do-i-find-stored-procedure.html' title='How do I find a stored procedure containing &lt;text&gt;?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>