<?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-7895096320933417224</id><updated>2024-09-27T17:02:04.282+05:30</updated><category term="ASP.Net"/><category term="VB.Net"/><category term="C#"/><category term="DevExpress"/><category term="Javascript"/><category term="SQL"/><category term="Bug Fix"/><category term="Web Service"/><category term="CSS"/><category term="Videos"/><category term="JQuery"/><category term="Silverlight"/><title type='text'>My Work</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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>76</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7895096320933417224.post-7529238125668969089</id><published>2014-01-06T15:11:00.000+05:30</published><updated>2014-01-06T15:11:08.078+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>select query to compare one column with another column in SQL.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;ID &lt;/b&gt;Column to be Checked if Exists in &lt;b&gt;IDTemp&lt;/b&gt;, Display Result Column.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT &amp;nbsp;&lt;/span&gt;a.*, &lt;span style=&quot;color: blue;&quot;&gt;CASE WHE&lt;/span&gt;N a.ID IN (b.IDTEMP) &lt;span style=&quot;color: blue;&quot;&gt;THEN &lt;/span&gt;&#39;Yes&#39; &lt;span style=&quot;color: blue;&quot;&gt;ELSE &lt;/span&gt;&#39;No&#39; &lt;span style=&quot;color: blue;&quot;&gt;END AS&lt;/span&gt; [Result]&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;TempTable a&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FULL &lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;JOIN&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
(&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;SELECT &amp;nbsp;&lt;/span&gt;IDTemp&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;FROM &amp;nbsp; &amp;nbsp;&lt;/span&gt;TempTable&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;GROUP &amp;nbsp; BY&lt;/span&gt; IDTemp&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;HAVING &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;count&lt;/span&gt;(IDTemp) &amp;gt;= 1&lt;/div&gt;
&lt;div&gt;
) b &lt;span style=&quot;color: blue;&quot;&gt;ON &lt;/span&gt;a.ID = b.IDTemp&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;ORDER BY&lt;/span&gt; a.ID&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;u&gt;OUTPUT:&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiShkSzFastENi4M2hfe-b7Tu8GeDhLoCpCyKrqGfzBYOKL786d_YijzmU_z6hzUvJjrnci1w2icR7t8Wg94n9GtGlXI0SuAxNZSfrxHdmWH-qWhLQh5Ib51zRkScW09jmgmnKvP2C_COo/s1600/Temp.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiShkSzFastENi4M2hfe-b7Tu8GeDhLoCpCyKrqGfzBYOKL786d_YijzmU_z6hzUvJjrnci1w2icR7t8Wg94n9GtGlXI0SuAxNZSfrxHdmWH-qWhLQh5Ib51zRkScW09jmgmnKvP2C_COo/s1600/Temp.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/7529238125668969089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2014/01/select-query-to-compare-one-column-with.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7529238125668969089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7529238125668969089'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2014/01/select-query-to-compare-one-column-with.html' title='select query to compare one column with another column in SQL.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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/AVvXsEiShkSzFastENi4M2hfe-b7Tu8GeDhLoCpCyKrqGfzBYOKL786d_YijzmU_z6hzUvJjrnci1w2icR7t8Wg94n9GtGlXI0SuAxNZSfrxHdmWH-qWhLQh5Ib51zRkScW09jmgmnKvP2C_COo/s72-c/Temp.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895096320933417224.post-7469101961607181382</id><published>2013-10-21T09:30:00.000+05:30</published><updated>2013-10-21T13:26:54.409+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Parallel looping in .Net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;Parallel.For&lt;/b&gt; method loops the For loop in a parallel order.&lt;br /&gt;
This function is a time saving function.&lt;br /&gt;
I used this function while sending emails to list of customers, which took &lt;b&gt;less time&lt;/b&gt; to execute comparing to the normal &lt;b&gt;For &lt;/b&gt;loop because it uses the &lt;b&gt;Threading &lt;/b&gt;class.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;b&gt;VB.Net&lt;/b&gt;&lt;br /&gt;
&lt;pre style=&quot;font-family: Consolas, Courier, monospace; font-size: 13px; line-height: 17px; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Imports&lt;/span&gt; System.Threading.Tasks

&lt;span style=&quot;color: blue;&quot;&gt;Module&lt;/span&gt; Example
   &lt;span style=&quot;color: blue;&quot;&gt;Public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; Main()
      &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; result &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; ParallelLoopResult = Parallel.&lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt;(0, 100, &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;(ctr)
                                                                 &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; rnd &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; Random(ctr * 100000)
                                                                 &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; bytes(99) &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Byte&lt;/span&gt;
                                                                 rnd.NextBytes(bytes)
                                                                 &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;sum&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Integer&lt;/span&gt;&amp;nbsp;
                                                                 &lt;span style=&quot;color: blue;&quot;&gt;For&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Each&lt;/span&gt; byt &lt;span style=&quot;color: blue;&quot;&gt;In&lt;/span&gt; bytes
                                                                    &lt;span style=&quot;color: blue;&quot;&gt;sum&lt;/span&gt; += byt
                                                                 &lt;span style=&quot;color: blue;&quot;&gt;Next&lt;/span&gt;
                                                                 Console.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Iteration {0,2}: {1:N0}&quot;&lt;/span&gt;, ctr, &lt;span style=&quot;color: blue;&quot;&gt;sum&lt;/span&gt;)
                                                              &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;)
      Console.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Result: {0}&quot;&lt;/span&gt;, &lt;span style=&quot;color: blue;&quot;&gt;If&lt;/span&gt;(result.IsCompleted, &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Completed Normally&quot;&lt;/span&gt;, 
                                                             &lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;.Format(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Completed to {0}&quot;&lt;/span&gt;, result.LowestBreakIteration)))
   &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Module&lt;/span&gt;&amp;nbsp;
&lt;span style=&quot;color: green;&quot;&gt;&#39; The following is a portion of the output displayed by the example:&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  0: 12,509&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 50: 12,823&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 51: 11,275&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 52: 12,531&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  1: 13,007&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 53: 13,799&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  4: 12,945&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  2: 13,246&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 54: 13,008&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 55: 12,727&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 56: 13,223&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 57: 13,717&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  5: 12,679&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  3: 12,455&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 58: 12,669&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 59: 11,882&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration  6: 13,167&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       ...&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 92: 12,275&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 93: 13,282&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 94: 12,745&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 95: 11,957&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Iteration 96: 12,455&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;&#39;       Result: Completed Normally&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas, Courier, monospace; font-size: 13px; line-height: 17px; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: green;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas, Courier, monospace; font-size: 13px; line-height: 17px; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;b&gt;C#&lt;/b&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-family: Consolas, Courier, monospace; font-size: 13px; line-height: 17px; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;pre style=&quot;font-family: Consolas, Courier, monospace; overflow: auto; padding: 5px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System;
&lt;span style=&quot;color: blue;&quot;&gt;using&lt;/span&gt; System.Threading.Tasks;

&lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; Example
{
   &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main()
   {
      ParallelLoopResult result = Parallel.For(0, 100, ctr =&amp;gt; { Random rnd = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Random(ctr * 100000);
                                                                Byte[] bytes = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; Byte[100];
                                                                rnd.NextBytes(bytes);
                                                                &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; sum = 0;
                                                                &lt;span style=&quot;color: blue;&quot;&gt;foreach&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;var&lt;/span&gt; byt &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; bytes)
                                                                    sum += byt;
                                                                Console.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Iteration {0,2}: {1:N0}&quot;&lt;/span&gt;, ctr, sum);
                                                              });
      Console.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Result: {0}&quot;&lt;/span&gt;, result.IsCompleted ? &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Completed Normally&quot;&lt;/span&gt; : 
                                                             String.Format(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Completed to {0}&quot;&lt;/span&gt;, result.LowestBreakIteration));
   }
}
&lt;span style=&quot;color: green;&quot;&gt;// The following is a portion of the output displayed by the example:&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  0: 12,509&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 50: 12,823&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 51: 11,275&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 52: 12,531&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  1: 13,007&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 53: 13,799&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  4: 12,945&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  2: 13,246&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 54: 13,008&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 55: 12,727&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 56: 13,223&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 57: 13,717&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  5: 12,679&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  3: 12,455&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 58: 12,669&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 59: 11,882&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration  6: 13,167&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       ...&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 92: 12,275&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 93: 13,282&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 94: 12,745&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 95: 11,957&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Iteration 96: 12,455&amp;nbsp;&lt;/span&gt;
&lt;span style=&quot;color: green;&quot;&gt;//       Result: Completed Normally&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/7469101961607181382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/10/parallel-looping-in-net.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7469101961607181382'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7469101961607181382'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/10/parallel-looping-in-net.html' title='Parallel looping in .Net'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-9156875147682877104</id><published>2013-08-13T08:15:00.001+05:30</published><updated>2013-08-13T08:15:40.522+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Passing comma separated values in Select statement dynamically</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
The split functions splits the given values. click &lt;a href=&quot;http://vijaykumarmahato.blogspot.com/2013/08/split-function-to-separate-values-into.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; to get the split function&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: small; line-height: 17.59375px; margin-bottom: 3px; margin-top: 3px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;declare&lt;/span&gt; @idList &lt;span class=&quot;kwrd&quot; style=&quot;color: blue;&quot;&gt;varchar&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;max&lt;/span&gt;)
&lt;span style=&quot;color: blue;&quot;&gt;set&lt;/span&gt; @idList = &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;Vijay,Ranveer&#39;&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; tbldata &lt;span style=&quot;color: blue;&quot;&gt;where&lt;/span&gt; name &lt;span style=&quot;color: blue;&quot;&gt;in&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;select&lt;/span&gt; val &lt;span style=&quot;color: blue;&quot;&gt;from&lt;/span&gt; dbo.split(@idList,&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;,&#39;&lt;/span&gt;))&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/9156875147682877104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/08/passing-comma-separated-values-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/9156875147682877104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/9156875147682877104'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/08/passing-comma-separated-values-in.html' title='Passing comma separated values in Select statement dynamically'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-2069921137296170874</id><published>2013-08-13T07:56:00.001+05:30</published><updated>2013-08-13T07:56:31.781+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Bind PieChartControl in Code behind</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
With PieChartControl&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim CashSeries As New Series(&quot;Cash&quot;, ViewType.Pie)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With CashSeries&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Populate the series with points.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Points.Add(New SeriesPoint(&quot;Food&quot;, New Double() {30.0}))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Points.Add(New SeriesPoint(&quot;Others&quot;, New Double() {40.0}))&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Points.Add(New SeriesPoint(&quot;Beverages&quot;, New Double() {30.0}))&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Adjust the point options of the series.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.PointOptions.PointView = PointView.Values&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.PointOptions.ValueNumericOptions.Format = NumericFormat.Percent&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.PointOptions.ValueNumericOptions.Precision = 0&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .LegendPointOptions.PointView = PointView.Argument&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.BackColor = Color.Transparent&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.TextColor = Color.Black&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.Border.Visible = False&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Label.Font = New Font(&quot;Arial&quot;, 8, FontStyle.Bold)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CType(.Label, PieSeriesLabel).Position = PieSeriesLabelPosition.Radial&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CType(.Label, PieSeriesLabel).ResolveOverlappingMode = ResolveOverlappingMode.Default&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&#39;.LabelsVisibility = DevExpress.Utils.DefaultBoolean.False&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .SeriesPointsSorting = SortingMode.Descending&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .SeriesPointsSortingKey = PointView.Values&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Add the series to the chart.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Series.Add(CashSeries)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Aligns the Legend section in center vise&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .Legend.AlignmentVertical = LegendAlignmentVertical.Center&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End With&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/2069921137296170874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/08/bind-piechartcontrol-in-code-behind.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2069921137296170874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2069921137296170874'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/08/bind-piechartcontrol-in-code-behind.html' title='Bind PieChartControl in Code behind'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-6584102571798910356</id><published>2013-07-31T08:06:00.000+05:30</published><updated>2013-08-13T08:11:05.153+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Split function to separate the values into multiple strings using delimiter specified and returns as table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: small; line-height: 17.59375px; margin-bottom: 3px; margin-top: 3px;&quot;&gt;Example:&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: small; line-height: 17.59375px; margin-bottom: 3px; margin-top: 3px;&quot;&gt;delimitedString = &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;Vijay,Ranveer&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: small; line-height: 17.59375px; margin-bottom: 3px; margin-top: 3px;&quot;&gt;delimiter = &lt;span style=&quot;color: #a31515;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: small; line-height: 17.59375px; margin-bottom: 3px; margin-top: 3px;&quot;&gt;&lt;span style=&quot;color: #a31515;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot; style=&quot;font-family: Consolas, &#39;Courier New&#39;, Courier, monospace; font-size: small; line-height: 17.59375px; margin-bottom: 3px; margin-top: 3px;&quot;&gt;&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;FUNCTION&lt;/span&gt; split(
    @delimitedString NVARCHAR(&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;MAX&lt;/span&gt;),
    @delimiter NVARCHAR(100)
) &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;RETURNS&lt;/span&gt; @t &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;TABLE&lt;/span&gt; (id &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;INT&lt;/span&gt; &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;IDENTITY&lt;/span&gt;(1,1), val NVARCHAR(&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;MAX&lt;/span&gt;))
&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;AS&lt;/span&gt;
&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;BEGIN&lt;/span&gt;
    &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;DECLARE&lt;/span&gt;&lt;/span&gt; @xml XML
    &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;SET&lt;/span&gt; @xml = N&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #a31515;&quot;&gt;&#39;&amp;lt;t&amp;gt;&#39;&lt;/span&gt; + REPLACE(@delimitedString,@delimiter,&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #a31515;&quot;&gt;&#39;&amp;lt;/t&amp;gt;&amp;lt;t&amp;gt;&#39;&lt;/span&gt;) + &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #a31515;&quot;&gt;&#39;&amp;lt;/t&amp;gt;&#39;&lt;/span&gt;
    &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;INTO&lt;/span&gt; @t(val)
    &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;SELECT&lt;/span&gt;  r.&lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;value&lt;/span&gt;(&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #a31515;&quot;&gt;&#39;.&#39;&lt;/span&gt;,&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #a31515;&quot;&gt;&#39;varchar(MAX)&#39;&lt;/span&gt;) &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;as&lt;/span&gt; item
    &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;FROM&lt;/span&gt;  @xml.nodes(&lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box; color: #a31515;&quot;&gt;&#39;/t&#39;&lt;/span&gt;) &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;as&lt;/span&gt; records(r)
    &lt;span class=&quot;kwrd&quot; style=&quot;box-sizing: border-box; color: blue;&quot;&gt;RETURN&lt;/span&gt;
END&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/6584102571798910356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/08/split-function-to-separate-values-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/6584102571798910356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/6584102571798910356'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/08/split-function-to-separate-values-into.html' title='Split function to separate the values into multiple strings using delimiter specified and returns as table'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-2533510971533765977</id><published>2013-06-03T20:00:00.001+05:30</published><updated>2013-06-04T19:20:17.455+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><title type='text'>Set the Culture and UI Culture for ASP.NET Web Site Globalization</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp; The following shows the Web site culture for UK and US&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;UK:&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;system.web&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;globalization&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;uiCulture&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;en-GB&quot;&lt;/span&gt; &lt;span style=&quot;color: red;&quot;&gt;culture&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;en-GB&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;system.web&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;US:&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;system.web&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;globalization&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;uiCulture&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;es&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;culture&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;es-MX&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;system.web&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/2533510971533765977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/06/set-culture-and-ui-culture-for-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2533510971533765977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2533510971533765977'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/06/set-culture-and-ui-culture-for-aspnet.html' title='Set the Culture and UI Culture for ASP.NET Web Site Globalization'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-3166177358498510704</id><published>2013-06-03T20:00:00.000+05:30</published><updated>2013-06-04T19:20:26.428+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Dynamically create a Zip File and download in a web site</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
creates a ZIP file using some collection of files and downloads the zip file.&lt;br /&gt;
&lt;br /&gt;
Code&amp;nbsp;&lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnx2aWpheWt1bWFyY2FiaW5ldHxneDo2ZGY0NGE4OWNiZWQ4MGQx&quot; target=&quot;_blank&quot;&gt;Source File&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/3166177358498510704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/06/dynamically-create-zip-file-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/3166177358498510704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/3166177358498510704'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/06/dynamically-create-zip-file-and.html' title='Dynamically create a Zip File and download in a web site'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-4012541320143749187</id><published>2013-05-21T15:10:00.001+05:30</published><updated>2013-05-21T15:10:51.998+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Change Master Page dynamically in code behind.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;b&gt;VB.Net&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Consolas; font-size: x-small;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;Protected&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; Page_PreInit(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt;
sender &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Object&lt;/span&gt;,
&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; e &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;Handles&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Me&lt;/span&gt;.PreInit&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Me&lt;/span&gt;.MasterPageFile
= &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;~/Main/PageMaster.Master&quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;Catch&lt;/span&gt;
ex &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Try&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;b&gt;C#&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: x-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 150%; mso-bidi-font-family: Consolas;&quot;&gt;Page_PreInit(&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;
sender, &lt;span style=&quot;color: #2b91af;&quot;&gt;EventArgs&lt;/span&gt; e)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 150%; mso-bidi-font-family: Consolas;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;left&quot; class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;try&lt;/span&gt; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 150%; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;this&lt;/span&gt;.MasterPageFile = &lt;span style=&quot;color: #a31515;&quot;&gt;&quot;~/Main/PageMaster.Master&quot;&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 150%; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;span style=&quot;color: blue;&quot;&gt;catch&lt;/span&gt; (&lt;span style=&quot;color: #2b91af;&quot;&gt;Exception&lt;/span&gt;
ex) {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 150%; mso-bidi-font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 150%; mso-bidi-font-family: Consolas;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/4012541320143749187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/05/change-master-page-dynamically-in-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4012541320143749187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4012541320143749187'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/05/change-master-page-dynamically-in-code.html' title='Change Master Page dynamically in code behind.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-6534363009087651067</id><published>2013-04-07T22:11:00.000+05:30</published><updated>2013-04-07T22:11:07.729+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="Web Service"/><title type='text'>Adding a Web Service reference dynamically at Runtime</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Imports System.Web&lt;br /&gt;
Imports System.Web.Services&lt;br /&gt;
Imports System.Web.Services.Protocols&lt;br /&gt;
Imports System.Xml&lt;br /&gt;
Imports System.Data.SqlClient&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.IO&lt;br /&gt;
&lt;br /&gt;
Imports System.Security.Permissions&lt;br /&gt;
Imports System.Web.Services.Description&lt;br /&gt;
Imports System.CodeDom&lt;br /&gt;
Imports System.CodeDom.Compiler&lt;br /&gt;
Imports System.Reflection&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Namespace WSRuntime&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Friend Class WsProxy&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;SecurityPermissionAttribute(SecurityAction.Demand, Unrestricted:=True)&amp;gt; _&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Friend Shared Function CallWebService(ByVal webServiceAsmxUrl As String, ByVal serviceName As String, ByVal methodName As String, ByVal args As Object()) As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim client As New System.Net.WebClient()&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Connect To the web service&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim stream As System.IO.Stream = client.OpenRead(webServiceAsmxUrl + &quot;?wsdl&quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Now read the WSDL file describing a service.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim description As ServiceDescription = ServiceDescription.Read(stream)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;&#39;// LOAD THE DOM /////////&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Initialize a service description importer.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim importer As New ServiceDescriptionImporter()&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importer.ProtocolName = &quot;Soap12&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Use SOAP 1.2.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importer.AddServiceDescription(description, Nothing, Nothing)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Generate a proxy client.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importer.Style = ServiceDescriptionImportStyle.Client&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Generate properties to represent primitive values.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; importer.CodeGenerationOptions = System.Xml.Serialization.CodeGenerationOptions.GenerateProperties&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Initialize a Code-DOM tree into which we will import the service.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim nmspace As New CodeNamespace()&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim unit1 As New CodeCompileUnit()&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; unit1.Namespaces.Add(nmspace)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Import the service into the Code-DOM tree. This creates proxy code that uses the service.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim warning As ServiceDescriptionImportWarnings = importer.Import(nmspace, unit1)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If warning = 0 Then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; If zero then we are good to go&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Generate the proxy code&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim provider1 As CodeDomProvider = CodeDomProvider.CreateProvider(&quot;VisualBasic&quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Compile the assembly proxy with the appropriate references&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim assemblyReferences As String() = New String(4) {&quot;System.dll&quot;, &quot;System.Web.Services.dll&quot;, &quot;System.Web.dll&quot;, &quot;System.Xml.dll&quot;, &quot;System.Data.dll&quot;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim parms As New CompilerParameters(assemblyReferences)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim results As CompilerResults = provider1.CompileAssemblyFromDom(parms, unit1)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Check For Errors&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If results.Errors.Count &amp;gt; 0 Then&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For Each oops As CompilerError In results.Errors&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Diagnostics.Debug.WriteLine(&quot;========Compiler error============&quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Diagnostics.Debug.WriteLine(oops.ErrorText)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Next&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Throw New System.Exception(&quot;Compile Error Occured calling webservice. Check Debug ouput window.&quot;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &#39; Finally, Invoke the web service method&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim wsvcClass As Object = results.CompiledAssembly.CreateInstance(serviceName)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim mi As MethodInfo = wsvcClass.[GetType]().GetMethod(methodName)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return mi.Invoke(wsvcClass, args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Return Nothing&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End Function&lt;br /&gt;
&amp;nbsp; &amp;nbsp; End Class&lt;br /&gt;
&lt;br /&gt;
End Namespace&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/6534363009087651067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/04/adding-web-service-reference.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/6534363009087651067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/6534363009087651067'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/04/adding-web-service-reference.html' title='Adding a Web Service reference dynamically at Runtime'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-4398241510645421327</id><published>2013-04-07T22:09:00.001+05:30</published><updated>2013-04-07T22:09:35.648+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Create VB.Net class dynamically from Sql Server table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
-- This script will build a class file with&lt;br /&gt;
-- private fields and public properties from&lt;br /&gt;
-- the table specified in the @TableName variable.&lt;br /&gt;
----------------------------------&lt;br /&gt;
&lt;br /&gt;
DECLARE @TableName varchar(50)&lt;br /&gt;
SET @TableName = &#39;TableName&#39;&lt;br /&gt;
&lt;br /&gt;
SET NOCOUNT ON; -- Hide row count so printed output is not affected&lt;br /&gt;
&lt;br /&gt;
DECLARE @DataTypeName varchar(50)&lt;br /&gt;
DECLARE @NewLine char&lt;br /&gt;
DECLARE @ColumnName varchar(50)&lt;br /&gt;
DECLARE @DataType varchar(50)&lt;br /&gt;
DECLARE @FieldName varchar(50)&lt;br /&gt;
&lt;br /&gt;
--SET @NewLine = char(13)&lt;br /&gt;
&lt;br /&gt;
-- Start Output&lt;br /&gt;
--PRINT &#39;&#39; + @NewLine;&lt;br /&gt;
PRINT &#39;Public Class &#39; + @TableName;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39;#Region &quot;Declarations&quot;&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
&lt;br /&gt;
-- Declarations&lt;br /&gt;
DECLARE DeclarationCursor CURSOR SCROLL FOR&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SELECT&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; columns.name [ColumnName],&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CASE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 34 &amp;nbsp; &amp;nbsp;THEN &#39;Byte[]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 35 &amp;nbsp; &amp;nbsp;THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 36 &amp;nbsp; &amp;nbsp;THEN &#39;System.Guid&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 48 &amp;nbsp; &amp;nbsp;THEN &#39;Byte&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 52 &amp;nbsp; &amp;nbsp;THEN &#39;Short&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 56 &amp;nbsp; &amp;nbsp;THEN &#39;Integer&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 58 &amp;nbsp; &amp;nbsp;THEN &#39;System.DateTime&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 59 &amp;nbsp; &amp;nbsp;THEN &#39;float&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 60 &amp;nbsp; &amp;nbsp;THEN &#39;Decimal&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 61 &amp;nbsp; &amp;nbsp;THEN &#39;System.DateTime&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 62 &amp;nbsp; &amp;nbsp;THEN &#39;double&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 98 &amp;nbsp; &amp;nbsp;THEN &#39;Object&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 99 &amp;nbsp; &amp;nbsp;THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 104 &amp;nbsp; THEN &#39;Boolean&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 106 &amp;nbsp; THEN &#39;Decimal&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 108 &amp;nbsp; THEN &#39;Decimal&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 122 &amp;nbsp; THEN &#39;Decimal&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 127 &amp;nbsp; THEN &#39;long&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 165 &amp;nbsp; THEN &#39;Byte[]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 167 &amp;nbsp; THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 173 &amp;nbsp; THEN &#39;Byte[]&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 175 &amp;nbsp; THEN &#39;string&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 189 &amp;nbsp; THEN &#39;Long&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 231 &amp;nbsp; THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 239 &amp;nbsp; THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 241 &amp;nbsp; THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN columns.system_type_id = 241 &amp;nbsp; THEN &#39;String&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END [DataType]&lt;br /&gt;
FROM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sys.tables tables&lt;br /&gt;
&amp;nbsp; &amp;nbsp; INNER JOIN &amp;nbsp; &amp;nbsp;sys.schemas schemas ON (tables.schema_id = schemas.schema_id )&lt;br /&gt;
&amp;nbsp; &amp;nbsp; INNER JOIN &amp;nbsp; &amp;nbsp;sys.columns columns ON (columns.object_id = tables.object_id)&lt;br /&gt;
WHERE&lt;br /&gt;
&amp;nbsp; &amp;nbsp; tables.name = @TableName&lt;br /&gt;
ORDER BY&lt;br /&gt;
&amp;nbsp; &amp;nbsp; columns.object_id ASC;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
OPEN DeclarationCursor;&lt;br /&gt;
&lt;br /&gt;
FETCH NEXT FROM DeclarationCursor&lt;br /&gt;
INTO @ColumnName, @DataType;&lt;br /&gt;
&lt;br /&gt;
WHILE @@FETCH_STATUS = 0&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SET @FieldName = &#39;_&#39; + LOWER(SUBSTRING(@ColumnName, 1,1)) + SUBSTRING(@ColumnName, 2, LEN(@ColumnName)-1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp;Private &#39; + @FieldName + &#39; As &#39; + @DataType;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FETCH NEXT FROM DeclarationCursor&lt;br /&gt;
&amp;nbsp; &amp;nbsp; INTO @ColumnName, @DataType;&lt;br /&gt;
END&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39;#End Region&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39;#Region &quot;Properties&quot;&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
&lt;br /&gt;
FETCH FIRST FROM DeclarationCursor&lt;br /&gt;
INTO @ColumnName, @DataType;&lt;br /&gt;
&lt;br /&gt;
WHILE @@FETCH_STATUS = 0&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SET @FieldName = &#39;_&#39; + LOWER(SUBSTRING(@ColumnName, 1,1)) + SUBSTRING(@ColumnName, 2, LEN(@ColumnName)-1)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp;Public Property &#39; + @ColumnName + &#39; As &#39; + @DataType;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Get&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Return &#39; + @FieldName;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Get&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39; + @FieldName + &#39; = value&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Set&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39; &amp;nbsp; &amp;nbsp;End Property&#39;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PRINT &#39;&#39;;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FETCH NEXT FROM DeclarationCursor&lt;br /&gt;
&amp;nbsp; &amp;nbsp; INTO @ColumnName, @DataType;&lt;br /&gt;
END&lt;br /&gt;
&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39;#End Region&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DECLARE @FIELDS varchar(max)&lt;br /&gt;
SET @FIELDS = &#39;&#39;&lt;br /&gt;
&lt;br /&gt;
FETCH FIRST FROM DeclarationCursor&lt;br /&gt;
INTO @ColumnName, @DataType;&lt;br /&gt;
&lt;br /&gt;
WHILE @@FETCH_STATUS = 0&lt;br /&gt;
BEGIN&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SET @FieldName = LOWER(SUBSTRING(@ColumnName, 1,1)) + SUBSTRING(@ColumnName, 2, LEN(@ColumnName)-1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; SET @FIELDS = @FIELDS + &#39;byval &#39; + @FieldName + &#39; as &#39; + @DataType + &#39;, &#39;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; FETCH NEXT FROM DeclarationCursor&lt;br /&gt;
&amp;nbsp; &amp;nbsp; INTO @ColumnName, @DataType;&lt;br /&gt;
END&lt;br /&gt;
&lt;br /&gt;
SET @FIELDS = SUBSTRING(@FIELDS, 1, (LEN(@FIELDS) - 1))&lt;br /&gt;
&lt;br /&gt;
PRINT &#39;#Region &quot;Constructors&quot;&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39; &amp;nbsp; &amp;nbsp;Public Sub New()&#39;;&lt;br /&gt;
PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;;&lt;br /&gt;
PRINT &#39; &amp;nbsp; &amp;nbsp;End Sub&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39; &amp;nbsp; &amp;nbsp;Public Sub New(&#39; + @FIELDS + &#39;)&#39;&lt;br /&gt;
PRINT &#39; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.New()&#39;;&lt;br /&gt;
PRINT &#39; &amp;nbsp; &amp;nbsp;End Sub&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
PRINT &#39;#End Region&#39;;&lt;br /&gt;
PRINT &#39;&#39;;&lt;br /&gt;
&lt;br /&gt;
CLOSE DeclarationCursor;&lt;br /&gt;
DEALLOCATE DeclarationCursor;&lt;br /&gt;
&lt;br /&gt;
-- End of Class&lt;br /&gt;
PRINT &#39;End Class&#39;;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/4398241510645421327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/04/create-vbnet-class-dynamically-from-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4398241510645421327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4398241510645421327'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/04/create-vbnet-class-dynamically-from-sql.html' title='Create VB.Net class dynamically from Sql Server table'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-7374116594890660466</id><published>2013-04-06T13:48:00.001+05:30</published><updated>2013-04-06T13:48:41.627+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Get ASPxClientControl object in JavaScript using ClientInstance name of the editor control</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
does not &amp;nbsp;works.&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; line-height: 21px; overflow: hidden; padding: 0px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;//var ASPxClientControl &lt;span class=&quot;cr-aspx-text&quot; style=&quot;color: blue;&quot;&gt;=&lt;/span&gt; document.getElementById(ASPxClientControlClientId);&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; line-height: 21px; overflow: hidden; padding: 0px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; line-height: 21px; overflow: hidden; padding: 0px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;This one will work.
var ASPxClientControl &lt;span class=&quot;cr-aspx-text&quot; style=&quot;color: blue;&quot;&gt;=&lt;/span&gt; ASPxClientControl.GetControlCollection().GetByName(ASPxClientControlClientId);
alert(ASPxClientControl.GetText());&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/7374116594890660466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/04/get-aspxclientcontrol-object-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7374116594890660466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7374116594890660466'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/04/get-aspxclientcontrol-object-in.html' title='Get ASPxClientControl object in JavaScript using ClientInstance name of the editor control'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-7072390906336298515</id><published>2013-03-19T17:50:00.001+05:30</published><updated>2013-03-19T17:50:32.095+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>Web page Scrollbar design using CSS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
Works only in chrome.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;::-webkit-scrollbar&lt;/span&gt;{&lt;span style=&quot;color: red;&quot;&gt;width&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;11px&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt;height&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;17px&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;#f0f0f0&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt;border&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;none&lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;::-webkit-scrollbar-thumb&lt;/span&gt;{&lt;span style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;#666666&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt;border&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;1px solid #f0f0f0&lt;/span&gt;; &lt;span style=&quot;color: red;&quot;&gt;-webkit-box-shadow&lt;/span&gt;: &lt;span style=&quot;color: blue;&quot;&gt;inset 0 0 6px rgba(0,0,0,0.3)&lt;/span&gt;;&lt;span style=&quot;color: red;&quot;&gt; border-radius&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt; 10px&lt;/span&gt;;}&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;::-webkit-scrollbar-thumb:hover&lt;/span&gt;{&lt;span style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;#dadada&lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;::-webkit-scrollbar-thumb:active&lt;/span&gt;{&lt;span style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;#dadada&lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;::-webkit-scrollbar-thumb:disabled&lt;/span&gt;{&lt;span style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;#666666&lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;color: #660000;&quot;&gt;::-webkit-scrollbar-corner&lt;/span&gt;{&lt;span style=&quot;color: red;&quot;&gt;background-color&lt;/span&gt;:&lt;span style=&quot;color: blue;&quot;&gt;#f0f0f0&lt;/span&gt;}&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHSF1HQChJxIoeO9N5dfD3fEtLSg36eQsv006Dygew4SjA3Imzg_DRYRKn413FCPSXNquZscN2rjbo1v_e7n8QwS6WUM2ueaLQV_EWlUG8lQO3OVFMP1hahKwUwLkzbzSA6OUD9tHkcW0/s1600/Scrollbar+Sample.PNG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHSF1HQChJxIoeO9N5dfD3fEtLSg36eQsv006Dygew4SjA3Imzg_DRYRKn413FCPSXNquZscN2rjbo1v_e7n8QwS6WUM2ueaLQV_EWlUG8lQO3OVFMP1hahKwUwLkzbzSA6OUD9tHkcW0/s1600/Scrollbar+Sample.PNG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/7072390906336298515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/web-page-scrollbar-design-using-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7072390906336298515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7072390906336298515'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/web-page-scrollbar-design-using-css.html' title='Web page Scrollbar design using CSS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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/AVvXsEjHSF1HQChJxIoeO9N5dfD3fEtLSg36eQsv006Dygew4SjA3Imzg_DRYRKn413FCPSXNquZscN2rjbo1v_e7n8QwS6WUM2ueaLQV_EWlUG8lQO3OVFMP1hahKwUwLkzbzSA6OUD9tHkcW0/s72-c/Scrollbar+Sample.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7895096320933417224.post-3801191138755268665</id><published>2013-03-19T17:42:00.002+05:30</published><updated>2013-03-19T17:42:59.390+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>To check Image is present or not in SQL table.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT CASE&lt;/span&gt; &lt;span style=&quot;color: magenta;&quot;&gt;ISNULL&lt;/span&gt;(&lt;span style=&quot;color: magenta;&quot;&gt;CONVERT&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;(255),&lt;span style=&quot;color: magenta;&quot;&gt;CONVERT&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;VARBINARY&lt;/span&gt;(255),Image_Column_Name)),&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;WHEN &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;Then &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;0&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;ELSE &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;1&#39; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;END AS &lt;/span&gt;[ImageExists]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;Table_Name&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/3801191138755268665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/to-check-image-is-present-or-not-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/3801191138755268665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/3801191138755268665'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/to-check-image-is-present-or-not-in-sql.html' title='To check Image is present or not in SQL table.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-2561812996942886041</id><published>2013-03-19T17:39:00.001+05:30</published><updated>2013-03-19T17:39:33.314+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Update Columns of table from another table in SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;update &lt;/span&gt;T2&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;set &lt;/span&gt;T2.Column &lt;span style=&quot;color: #999999;&quot;&gt;= &lt;/span&gt;T1.Column&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;from &lt;/span&gt;Table2 T2&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;inner join&lt;/span&gt; Table T1&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;on &lt;/span&gt;T2.Key &lt;span style=&quot;color: #999999;&quot;&gt;=&lt;/span&gt; T1.key&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;where &lt;/span&gt;T2.Key &lt;span style=&quot;color: #999999;&quot;&gt;is null&lt;/span&gt; &amp;nbsp;&lt;span style=&quot;color: #38761d;&quot;&gt;-- and other conditions you might want&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/2561812996942886041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/update-columns-of-table-from-another.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2561812996942886041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2561812996942886041'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/update-columns-of-table-from-another.html' title='Update Columns of table from another table in SQL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-4800227558663747285</id><published>2013-03-19T17:37:00.000+05:30</published><updated>2013-03-19T17:37:07.963+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>Leave image column and select other columns from table in SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;DECLARE &lt;/span&gt;@strTableName &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;MAX&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;),&lt;/span&gt; @strcolumn &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;MAX&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;),&lt;/span&gt; @strSQL &lt;span style=&quot;color: blue;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;MAX&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SET &lt;/span&gt;@strTableName &lt;span style=&quot;color: #999999;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;Table_Name&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SET &lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;=&lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;+&lt;/span&gt;column_name&lt;span style=&quot;color: #999999;&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;,&#39;&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;INFORMATION_SCHEMA.COLUMNS&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;WHERE &lt;/span&gt;table_name&lt;span style=&quot;color: #999999;&quot;&gt;=&lt;/span&gt;@strTableName&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;color: #999999;&quot;&gt;AND &lt;/span&gt;data_type &lt;span style=&quot;color: #999999;&quot;&gt;NOT IN (&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;image&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;IF &lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;CHARINDEX&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;,&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;REVERSE&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;))=&lt;/span&gt;1&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;SUBSTRING&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;,&lt;/span&gt;0&lt;span style=&quot;color: #999999;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;LEN&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;@strcolumn&lt;span style=&quot;color: #999999;&quot;&gt;));&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SET &lt;/span&gt;@strSQL &lt;span style=&quot;color: #999999;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39;select &#39; &lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;+ &lt;/span&gt;@strcolumn &lt;span style=&quot;color: #999999;&quot;&gt;+ &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39; from &#39;&lt;/span&gt; &lt;span style=&quot;color: #999999;&quot;&gt;+ &lt;/span&gt;@strTableName &lt;span style=&quot;color: #999999;&quot;&gt;+ &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&#39; WHERE Condition&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;EXEC &lt;/span&gt;&lt;span style=&quot;color: #999999;&quot;&gt;(&lt;/span&gt;@strSQL&lt;span style=&quot;color: #999999;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/4800227558663747285/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/leave-image-column-and-select-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4800227558663747285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4800227558663747285'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/leave-image-column-and-select-other.html' title='Leave image column and select other columns from table in SQL'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-1094947204556061399</id><published>2013-03-05T17:14:00.001+05:30</published><updated>2013-03-05T17:14:17.799+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="JQuery"/><title type='text'>Using jQuery to Detect if User has Scrolled to the Bottom or Top of a Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
To detect the page is scrolled to the Top or bottom.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;text/javascript&quot; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;language&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&quot;javascript&quot;&amp;gt;
         &lt;/span&gt;$(&lt;span style=&quot;color: blue;&quot;&gt;function &lt;/span&gt;() {
             &lt;span style=&quot;color: blue;&quot;&gt;var &lt;/span&gt;$win = $(window);

             $win.scroll(&lt;span style=&quot;color: blue;&quot;&gt;function &lt;/span&gt;() {
                 &lt;span style=&quot;color: blue;&quot;&gt;if &lt;/span&gt;($win.scrollTop() == 0)
                     alert(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;Scrolled to Page Top&#39;&lt;/span&gt;);
                 &lt;span style=&quot;color: blue;&quot;&gt;else if &lt;/span&gt;($win.height() + $win.scrollTop()
                                == $(document).height()) {
                     alert(&lt;span style=&quot;color: maroon;&quot;&gt;&#39;Scrolled to Page Bottom&#39;&lt;/span&gt;);
                 }
             });
         });
    &lt;span style=&quot;color: blue;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: maroon;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/1094947204556061399/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/using-jquery-to-detect-if-user-has.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/1094947204556061399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/1094947204556061399'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/using-jquery-to-detect-if-user-has.html' title='Using jQuery to Detect if User has Scrolled to the Bottom or Top of a Page'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-7930232619298101966</id><published>2013-03-04T19:04:00.000+05:30</published><updated>2013-03-04T19:04:01.625+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Response.Redirect not working while Callback using DevExpress Controls</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
DevExpress.Web.ASPxClasses.&lt;span style=&quot;color: #3d85c6;&quot;&gt;ASPxWebControl&lt;/span&gt;.RedirectOnCallback(&lt;span style=&quot;color: #cc0000;&quot;&gt;&quot;URL&quot;&lt;/span&gt;)&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/7930232619298101966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/responseredirect-not-working-while.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7930232619298101966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/7930232619298101966'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/03/responseredirect-not-working-while.html' title='Response.Redirect not working while Callback using DevExpress Controls'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-5599476813568273921</id><published>2013-02-14T11:45:00.001+05:30</published><updated>2013-02-14T11:46:35.336+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Get the current source path for the website in code behind.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
System.&lt;span style=&quot;color: #3d85c6;&quot;&gt;AppDomain&lt;/span&gt;.CurrentDomain.BaseDirectory()&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/5599476813568273921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/get-current-source-path-for-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/5599476813568273921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/5599476813568273921'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/get-current-source-path-for-website.html' title='Get the current source path for the website in code behind.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-2930188748887594108</id><published>2013-02-09T12:06:00.001+05:30</published><updated>2013-02-09T12:06:57.487+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Set Default Image to ASPXImageSlider in Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
ASPxClientImageSlider.SetActiveItem(ASPxClientImageSlider.GetItemByName(&#39;Default.jpg&#39;));&lt;br /&gt;
&lt;br /&gt;
This will set the default Image for Devexpress Image Slider in Javascript.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/2930188748887594108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/set-default-image-to-aspximageslider-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2930188748887594108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/2930188748887594108'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/set-default-image-to-aspximageslider-in.html' title='Set Default Image to ASPXImageSlider in Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-78937111319363625</id><published>2013-02-09T12:02:00.002+05:30</published><updated>2013-02-09T12:03:03.085+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Get Selected Image Text from ASPxImageSlider in Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
ASPxClientImageSlider.GetItem(ASPxClientImageSlider.GetActiveItemIndex()).text;&lt;br /&gt;
&lt;br /&gt;
This will get the name of the image selected from the Devexpress Image Slider in Javascript.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/78937111319363625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/get-selected-image-text-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/78937111319363625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/78937111319363625'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/get-selected-image-text-from.html' title='Get Selected Image Text from ASPxImageSlider in Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-3731407933414434753</id><published>2013-01-25T11:43:00.000+05:30</published><updated>2013-02-01T12:02:40.125+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Set Height and Width dynamically for ASPxPopupControl in Javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
ASPxClientPopupControl.SetSize(&lt;br /&gt;
&amp;nbsp; &amp;nbsp;width : int, &lt;br /&gt;
&amp;nbsp; &amp;nbsp;height : int&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Sets the height and width of the popup dynamically in Javascript.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/3731407933414434753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/set-height-and-width-dynamically-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/3731407933414434753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/3731407933414434753'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/set-height-and-width-dynamically-for.html' title='Set Height and Width dynamically for ASPxPopupControl in Javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-4804154294090125303</id><published>2013-01-23T11:59:00.000+05:30</published><updated>2013-02-01T14:00:47.780+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="DevExpress"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Assigning Client-Side event Javascript function for ASPxButton dynamically.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
We can pass a function to assign the button or put a static function in the button event.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;function &lt;/span&gt;AssignScripts(DynamicFunction) {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ASPxClientButtonStatic.Click.ClearHandlers();&lt;br /&gt;
&amp;nbsp;ASPxClientButtonStatic.Click.AddHandler(&lt;span style=&quot;color: blue;&quot;&gt;function &lt;/span&gt;(s, e) { alert(&#39;Static Function alert.&#39;); });&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;ASPxClientButtonDynamic.Click.ClearHandlers();&lt;br /&gt;
&amp;nbsp;ASPxClientButtonDynamic.Click.AddHandler(DynamicFunction);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;function &lt;/span&gt;OnInitButtonDynamic(s,e) {&lt;br /&gt;
&amp;nbsp;AssignScripts(DynamicFunctionAlert);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;function &lt;/span&gt;DynamicFunctionAlert(s,e) {&lt;br /&gt;
&amp;nbsp;alert(&#39;Dynamic Function alert.&#39;);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
This worked for be prety good.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/4804154294090125303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/assigning-clientside-event-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4804154294090125303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/4804154294090125303'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2013/02/assigning-clientside-event-javascript.html' title='Assigning Client-Side event Javascript function for ASPxButton dynamically.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-1595775542421662603</id><published>2012-12-05T17:24:00.002+05:30</published><updated>2012-12-05T18:08:19.866+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>CallByName with ByRef parameters</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: inherit;&quot;&gt;CallByName does not appear to work with ByRef params.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;but i&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;found that this works amazingly well with ByRef and ByVal parmas&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; line-height: 19px; overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; CommonClass
    &lt;span style=&quot;color: blue;&quot;&gt;Sub &lt;/span&gt;HelloWorld(&lt;span style=&quot;color: blue;&quot;&gt;ByRef &lt;/span&gt;message &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;)
        message =&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&quot;Hi &quot;&lt;/span&gt; &amp;amp; message 
    &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 19px; overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;pre style=&quot;background-color: white; overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; CallMethod()
    &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; objCommonClass &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; CommonClass
    &lt;span style=&quot;color: blue;&quot;&gt;Dim &lt;/span&gt;strReturnMessage &lt;span style=&quot;color: blue;&quot;&gt;As String &lt;/span&gt;= &lt;span style=&quot;color: #990000;&quot;&gt;&quot;Vijay&quot;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;obj&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;CommonClass.GetType().GetMethod(&lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&quot;HelloWorld&quot;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;).Invoke(objCommonFunction,strReturnMessage)&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;End&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: inherit;&quot;&gt;Sub&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;This works great.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 19px;&quot;&gt;strReturnMessage &amp;nbsp;contains the message with the prefix of &quot;Hi&quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/1595775542421662603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2012/12/callbyname-with-byref-parameters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/1595775542421662603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/1595775542421662603'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2012/12/callbyname-with-byref-parameters.html' title='CallByName with ByRef parameters'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-8002298962977647766</id><published>2012-12-05T17:16:00.001+05:30</published><updated>2012-12-05T17:16:24.991+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Calling a Class Function or Method using a string name.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;u&gt;VB.Net:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt; CommonClass
    &lt;span style=&quot;color: blue;&quot;&gt;Function&lt;/span&gt; HelloWorld(&lt;span style=&quot;color: blue;&quot;&gt;ByVal&lt;/span&gt; message &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;String&lt;/span&gt;) &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Boolean&lt;/span&gt;
        &lt;span style=&quot;color: blue;&quot;&gt;Return&lt;/span&gt; message
    &lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Function&lt;/span&gt;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Class&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;In the calling method call like the following.&lt;/pre&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Private&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt; CallMethod()
    &lt;span style=&quot;color: blue;&quot;&gt;Dim&lt;/span&gt; objCommonClass &lt;span style=&quot;color: blue;&quot;&gt;As&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;New&lt;/span&gt; CommonClass
    &lt;span style=&quot;color: blue;&quot;&gt;Dim &lt;/span&gt;strReturnMessage &lt;span style=&quot;color: blue;&quot;&gt;As String &lt;/span&gt;= CallByName(objCommonClass, &lt;span style=&quot;color: #990000;&quot;&gt;&quot;HelloWorld&quot;&lt;/span&gt;, 
       Microsoft.VisualBasic.CallType.Method, &lt;/span&gt;&lt;span style=&quot;color: #990000; font-family: inherit;&quot;&gt;&quot;Hello&quot;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;))&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;End&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;The &lt;b&gt;strReturnMessage &lt;/b&gt;has the return value.&lt;/pre&gt;
&lt;pre style=&quot;overflow: auto; padding: 5px; word-break: break-all; word-wrap: break-word;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/8002298962977647766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2012/12/calling-class-function-or-method-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/8002298962977647766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/8002298962977647766'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2012/12/calling-class-function-or-method-using.html' title='Calling a Class Function or Method using a string name.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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-7895096320933417224.post-8341167472515230708</id><published>2012-11-19T17:32:00.000+05:30</published><updated>2012-11-19T17:32:24.694+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="VB.Net"/><title type='text'>Open an URL in Windows Application.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;b&gt;[VB]&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;Private Sub&lt;/span&gt; OpenURL()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.Diagnostics.Process.Start(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;http://www.vijaykumarmahato.blogspot.com/&quot;&lt;/span&gt;)&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;End Sub&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;[C#]&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;private void &lt;/span&gt;OpenURL()&lt;br /&gt;
{&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;System.Diagnostics.Process.Start(&lt;span style=&quot;color: #990000;&quot;&gt;&quot;http://www.vijaykumarmahato.blogspot.com/&quot;&lt;/span&gt;);&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://vijaykumarmahato.blogspot.com/feeds/8341167472515230708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://vijaykumarmahato.blogspot.com/2012/11/open-url-in-windows-application.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/8341167472515230708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7895096320933417224/posts/default/8341167472515230708'/><link rel='alternate' type='text/html' href='http://vijaykumarmahato.blogspot.com/2012/11/open-url-in-windows-application.html' title='Open an URL in Windows Application.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09066823700717398674</uri><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>