<?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-2704622294705175240</id><updated>2026-05-19T05:09:49.979-07:00</updated><category term="Javascript"/><category term="C#"/><category term="Asp.net"/><category term="Ajax"/><category term="Silverlight"/><category term="Sql Server"/><category term="Iframe"/><category term="Html"/><category term="Node.js"/><category term="Telerik Radcombobox"/><category term="Button Control"/><category term="Datatable"/><category term="Flash"/><category term="IIS"/><category term="Infragistic ultrawebgrid"/><category term="String"/><category term="String Array"/><title type='text'>Your Code Corner</title><subtitle type='html'>Learn  Various Technical Programming articles and technical news.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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>53</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2704622294705175240.post-6912428685505921904</id><published>2023-07-04T00:08:00.002-07:00</published><updated>2023-07-04T00:08:42.740-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Node.js"/><title type='text'>How to download pdf in node.js</title><content type='html'>&lt;pre style=&quot;overflow-wrap: break-word; text-wrap: wrap;&quot;&gt;To export or download a PDF file in Node.js, you can make use of various libraries available. One popular library for generating PDF files is &quot;pdfkit.&quot; Here&#39;s an example of how you can use it to export a PDF file in Node.js:
1. Install the &quot;pdfkit&quot; library by running the following command in your Node.js project directory:
```shell
npm install pdfkit
```
2. Create a new JavaScript file, for example, &quot;pdfExport.js,&quot; and require the necessary modules:
```javascript
const PDFDocument = require(&#39;pdfkit&#39;);
const fs = require(&#39;fs&#39;);
```
3. Write the code to generate the PDF and save it to a file:
```javascript
// Create a new PDF document
const doc = new PDFDocument();
// Add content to the PDF
doc.fontSize(16).text(&#39;Hello, World!&#39;);
// Save the PDF to a file
doc.pipe(fs.createWriteStream(&#39;output.pdf&#39;));
doc.end();
```
4. Run the script by executing the following command in your terminal:
```shell
node pdfExport.js
```
After running the script, a new file named &quot;output.pdf&quot; will be generated in the same directory, containing the PDF document with the specified content.
You can customize the PDF&#39;s content by using the various methods provided by the &quot;pdfkit&quot; library, such as adding text, images, tables, and more. Refer to the library&#39;s documentation for more details on its capabilities and options.&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/6912428685505921904/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2023/07/how-to-download-pdf-in-nodejs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/6912428685505921904'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/6912428685505921904'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2023/07/how-to-download-pdf-in-nodejs.html' title='How to download pdf in node.js'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-4116174074803640521</id><published>2023-07-03T03:35:00.004-07:00</published><updated>2023-07-03T03:39:11.349-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Node.js"/><title type='text'>How to Debug node.js application in VScode?</title><content type='html'>To debug a Node.js application using Visual Studio Code, follow these steps:&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;1. Install the Visual Studio Code editor from the official website: https://code.visualstudio.com/&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;2. Open your Node.js project in Visual Studio Code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;3. Make sure you have a `launch.json` configuration file in your project. If you don&#39;t have one, you can create it by clicking on the &quot;Run and Debug&quot; icon in the sidebar and selecting the &quot;Add Configuration&quot; button. Choose the &quot;Node.js&quot; environment.

4. In the `launch.json` file, you&#39;ll see a default configuration for debugging Node.js. By default, it launches the currently open JavaScript file. You can customize this configuration as needed, such as specifying the entry point file or adding environment variables.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;5. Place breakpoints in your code by clicking in the left margin of the editor or using the shortcut `F9`. Breakpoints are markers that pause the execution of your code at specific lines, allowing you to inspect variables and step through the code.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;6. Start the debugging session by selecting the debug configuration you want to use from the drop-down menu in the top toolbar. It should be the name you provided in the `launch.json` file. Alternatively, you can press `F5` to start debugging.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;7. Once the debugging session starts, your Node.js application will run, and it will stop at the breakpoints you set. You can use the debug toolbar at the top to control the execution flow, step through the code, examine variables, and view call stacks.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;8. While debugging, you can use the various debug-related buttons in the toolbar, such as stepping in (`F11`), stepping over (`F10`), stepping out (`Shift + F11`), and stopping the debugging session (`Shift + F5`).&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;9. You can also open the Debug Console in Visual Studio Code by selecting the &quot;Debug Console&quot; tab in the bottom panel. It allows you to execute JavaScript code and view console output during debugging.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;10. Finally, once you have finished debugging, you can stop the debugging session by clicking on the red &quot;Stop&quot; button in the debug toolbar or by pressing `Shift + F5`.

By following these steps, you can effectively debug your Node.js application using Visual Studio Code.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/4116174074803640521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2023/07/how-to-debug-nodejs-application-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4116174074803640521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4116174074803640521'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2023/07/how-to-debug-nodejs-application-in.html' title='How to Debug node.js application in VScode?'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-985181621807493588</id><published>2011-11-16T03:11:00.000-08:00</published><updated>2011-11-16T03:11:04.789-08:00</updated><title type='text'>How to know the current postback is a full postback or partial postback in Asp.net</title><content type='html'>Here is the code used to differentiate between partial or full post back in Asp.net.&lt;br /&gt;
        if (Page.IsPostBack)&lt;br /&gt;
        {&lt;br /&gt;
          &lt;br /&gt;
            if (ScriptManager.GetCurrent(this.Page).IsInAsyncPostBack)&lt;br /&gt;
&lt;br /&gt;
            {&lt;br /&gt;
                  //Partial post back&lt;br /&gt;
               &lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            else&lt;br /&gt;
&lt;br /&gt;
            {&lt;br /&gt;
&lt;br /&gt;
              //full post back&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
        }</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/985181621807493588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/11/how-to-know-current-postback-is-full.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/985181621807493588'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/985181621807493588'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/11/how-to-know-current-postback-is-full.html' title='How to know the current postback is a full postback or partial postback in Asp.net'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-1667127589790887590</id><published>2011-10-09T07:56:00.000-07:00</published><updated>2011-10-09T07:56:16.765-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Silverlight vs Adobe Flash</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Several other technologies use a plug-in like Java, ActiveX,Shockwave, Adobe Flash, But Adobe flash is most popular among them.Still Adobe Flash has an advantages over silverlight&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: none; mso-border-alt: solid black .5pt; mso-border-insideh: .5pt solid black; mso-border-insidev: .5pt solid black; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184; width: 66.66%;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;mso-yfti-firstrow: yes; mso-yfti-irow: 0;&quot;&gt;   &lt;td style=&quot;border: solid black 1.0pt; mso-border-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;Features&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-left: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;Silverlight&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 1;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Animation&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Better Than Flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 2;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;File size&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 3;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Scripting&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Better Than Flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 4;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Video/Audio&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Better Than Flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 5;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Sound processing&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 6;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Accessibility&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 7;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Platform compatibility&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 8;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Text representation/SEO&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Better Than Flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 9;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Supported image formats&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 10;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Socket programming&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 11;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Webcam support&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 12;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Deployment&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 13;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Windows application&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Not better&amp;nbsp; than flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr style=&quot;mso-yfti-irow: 14; mso-yfti-lastrow: yes;&quot;&gt;   &lt;td style=&quot;border-top: none; border: solid black 1.0pt; mso-border-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Media streaming&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-alt: solid black .5pt; mso-border-left-alt: solid black .5pt; mso-border-top-alt: solid black .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;&quot; valign=&quot;top&quot; width=&quot;50%&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;&quot;&gt;Better Than Flash&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/1667127589790887590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/silverlight-vs-adobe-flash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/1667127589790887590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/1667127589790887590'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/silverlight-vs-adobe-flash.html' title='Silverlight vs Adobe Flash'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-2887303551302086627</id><published>2011-10-09T07:50:00.000-07:00</published><updated>2011-10-09T07:52:25.922-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>How to check silverlight plug in installed</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;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;If silverlight plug –in is not download on your machine then it shows you to download it on the silverlight content and after clicking it it will start downloading and if you click the run then it start running.&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/AVvXsEg_FtaWSORjPfLkMyznDrMVNZJlxkoFkVD2FeQF9nWmZiTK20AgXxSbANdBApsfCEvB3rQ-znYwtz8Tw-gCcol9IqP9vCKTHiw0eqllQdoJA2ii83Mxxx9BwMWoLcjYyoouERJj2adnNXo/s1600/index.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/AVvXsEg_FtaWSORjPfLkMyznDrMVNZJlxkoFkVD2FeQF9nWmZiTK20AgXxSbANdBApsfCEvB3rQ-znYwtz8Tw-gCcol9IqP9vCKTHiw0eqllQdoJA2ii83Mxxx9BwMWoLcjYyoouERJj2adnNXo/s1600/index.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&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/AVvXsEiDdPJzGOV4waTsd7PD0E3tsvw6AYAHm6xNwuXJt83vB952ha6HTqJP0iiwUQIh7FOfZWuX6V7TmWCHEmZyZgctSej4AXoiekhscv_ShOEHGrtTGAUOOBCIE201NnRqEF4rxfgGOfFcK_M/s1600/silvelight.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/2887303551302086627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/how-to-check-silverlight-plug-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2887303551302086627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2887303551302086627'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/how-to-check-silverlight-plug-in.html' title='How to check silverlight plug in installed'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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/AVvXsEg_FtaWSORjPfLkMyznDrMVNZJlxkoFkVD2FeQF9nWmZiTK20AgXxSbANdBApsfCEvB3rQ-znYwtz8Tw-gCcol9IqP9vCKTHiw0eqllQdoJA2ii83Mxxx9BwMWoLcjYyoouERJj2adnNXo/s72-c/index.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2704622294705175240.post-7469753869157191596</id><published>2011-10-09T07:27:00.000-07:00</published><updated>2011-10-09T07:35:04.286-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Advantage and Disadvantage of silverlight plug in</title><content type='html'>Advantage:&lt;br /&gt;
&lt;br /&gt;
The advantage of plug-in is that user needs to install it one time.It’a time taking process but still has a great advantage and browser can the browser can process any content that uses the plug-in seamlessly, with no further prompting.Silverlight allows you to develop more graphical and interactive applications.&lt;br /&gt;
&lt;br /&gt;
Disadvantage;&lt;br /&gt;
&lt;br /&gt;
It&#39;s a time taking process for the first time and No user want to wait for some time to see the content after downloading the plug in.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;div  style=&quot;width:70%;float:left;&quot;  &gt;&lt;input type=&quot;button&quot; value=&quot;Previous&quot; onclick=&quot;GotoPrevPage();&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div  style=&quot;width:20%;float:left;&quot; &gt;&lt;input type=&quot;button&quot; value=&quot;Next&quot; onclick=&quot;GotoNextPage();&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script&gt;
function GotoPrevPage()
{
 window.location = &#39;http://coolkumarabhay.blogspot.com/2011/10/what-is-silverlight-runtime.html&#39;;
}
function GotoNextPage()
{
 window.location = &#39;http://coolkumarabhay.blogspot.com/2011/10/what-is-silverlight-runtime.html&#39;;
}
&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/7469753869157191596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/advantage-of-silverlight-plug-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/7469753869157191596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/7469753869157191596'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/advantage-of-silverlight-plug-in.html' title='Advantage and Disadvantage of silverlight plug in'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-1549518555987133109</id><published>2011-10-09T06:38:00.002-07:00</published><updated>2011-10-09T07:32:27.830-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>What is silverlight runtime?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;It&#39;s Plug-in for browser to display the silverlight content.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;div style=&quot;float: left; width: 70%;&quot;&gt;&lt;input onclick=&quot;GotoPrevPage();&quot; type=&quot;button&quot; value=&quot;Previous&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;float: left; width: 20%;&quot;&gt;&lt;input onclick=&quot;GotoNextPage();&quot; type=&quot;button&quot; value=&quot;Next&quot; /&gt;&lt;/div&gt;&lt;script&gt;
function GotoPrevPage()
{
 window.location = &#39;http://coolkumarabhay.blogspot.com/2011/10/introduction-to-silverlight.html&#39;;
}
function GotoNextPage()
{
 window.location = &#39;http://coolkumarabhay.blogspot.com/2011/10/introduction-to-silverlight.html&#39;;
}
&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/1549518555987133109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/what-is-silverlight-runtime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/1549518555987133109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/1549518555987133109'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/what-is-silverlight-runtime.html' title='&lt;h3&gt;What is silverlight runtime?&lt;/h3&gt;'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-4884412590364549463</id><published>2011-10-09T06:38:00.000-07:00</published><updated>2011-10-09T07:33:56.482-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Silverlight"/><title type='text'>Introduction to Silverlight</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;div class=&quot;MsoNormal&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;What is silverlight?&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Silverlight is&amp;nbsp; a cross-platform and cross-browser plug-in that exposes a programming framework and features that are a subset of the .NET Framework and Windows Presentation Foundation (WPF).&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif; line-height: normal;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Silverlight is a web browser plug-in which is small in size and can be installed on demand&amp;nbsp; and runs in all popular browsers, including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, Opera.It is similar to flash .It runs cross-browser , cross-platform that exposes a programming framework and features that are a subset of the .NET Framework and Windows Presentation Foundation (WPF) .You can develop business applications for the Web, desktop, and mobile devices .&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div  style=&quot;width:70%;float:left;&quot;  &gt;&lt;br /&gt;
&lt;/div&gt;&lt;div  style=&quot;width:20%;float:left;&quot; &gt;&lt;input type=&quot;button&quot; value=&quot;Next&quot; onclick=&quot;GotoNextPage();&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;script&gt;
function GotoNextPage()
{
 window.location = &#39;http://coolkumarabhay.blogspot.com/2011/10/what-is-silverlight-runtime.html&#39;;
}
&lt;/script&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/4884412590364549463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/introduction-to-silverlight.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4884412590364549463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4884412590364549463'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/10/introduction-to-silverlight.html' title='&lt;h3&gt;Introduction to Silverlight&lt;/h3&gt;'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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>1</thr:total><georss:featurename>Bhubaneswar, Orissa, India</georss:featurename><georss:point>20.27 85.839999999999918</georss:point><georss:box>20.1664405 85.76491949999992 20.3735595 85.915080499999917</georss:box></entry><entry><id>tag:blogger.com,1999:blog-2704622294705175240.post-4521297459167305660</id><published>2011-09-20T06:20:00.000-07:00</published><updated>2011-09-20T06:20:13.760-07:00</updated><title type='text'>How to manually configure webserver for asp.net 4.0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use below command in VS command prompt&lt;br /&gt;
&lt;br /&gt;


&lt;pre class=&quot;default prettyprint&quot;&gt;&lt;code&gt;&lt;span class=&quot;pln&quot;&gt;C&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;:\&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Windows&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Microsoft&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;NET&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;typ&quot;&gt;Framework&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;v4&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;0.30319&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;\&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;aspnet_regiis &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;i&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/4521297459167305660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/09/how-to-manually-configure-webserver-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4521297459167305660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4521297459167305660'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/09/how-to-manually-configure-webserver-for.html' title='How to manually configure webserver for asp.net 4.0'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-6305662481040343229</id><published>2011-08-25T22:55:00.000-07:00</published><updated>2011-08-25T22:57:37.977-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>How to spilt data in sql server while using &quot;IN&quot; operator</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Sometime you send multiple comma separated values as parameter to a stored procedure.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Suppose you are set the parameter value as below&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;param[0].value = &quot;3,4,5,6&quot;; 
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The above set value doesn&#39;t work in stored procedure.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;But as the column type is int then it query condition  should be like  column name in (3,4,5) and if you send the parameter as&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;It doesn&#39;t work in stored procedure, So i have used a function to split it and to use it.&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;USE [Database name]
GO
/****** Object:  UserDefinedFunction [dbo].[Split_String]    Script Date: 08/26/2011 11:12:59 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


ALTER FUNCTION [dbo].[Split_String](@Param_String varchar(2000),@Delmeter varchar(5))  
RETURNS @RtnValue table 
(
	Id int identity(1,1),
	Data nvarchar(100)
) 
AS  
BEGIN 
	Declare @Cnt int
	Set @Cnt = 1

	While (Charindex(@Delmeter,@Param_String)&amp;gt;0)
	Begin
		Insert Into @RtnValue (data)
		Select 
			Data = ltrim(rtrim(Substring(@Param_String,1,Charindex(@Delmeter,@Param_String)-1)))

		Set @Param_String = Substring(@Param_String,Charindex(@Delmeter,@Param_String)+1,len(@Param_String))
		Set @Cnt = @Cnt + 1
	End
	
	Insert Into @RtnValue (data)
	Select Data = ltrim(rtrim(@Param_String))

	Return
END
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Example:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;SELECT NAME FROM TABLENAME  WHERE FK_DEFAULT_ID    
IN (select data from [dbo].[Split_String] (@DEFAULTIDS,&#39;,&#39;) )&amp;nbsp;&lt;/pre&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;Note&lt;/span&gt; :&lt;span style=&quot;color: yellow;&quot;&gt; @DEFAULTIDS is the parameter in stored procedure which contains value like &quot;3,4,5,6&quot; and type id varchar.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/6305662481040343229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-spilt-data-in-sql-server-while.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/6305662481040343229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/6305662481040343229'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-spilt-data-in-sql-server-while.html' title='How to spilt data in sql server while using &quot;IN&quot; operator'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2704622294705175240.post-8097326856362751424</id><published>2011-08-17T23:11:00.000-07:00</published><updated>2011-08-17T23:11:47.930-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="String"/><category scheme="http://www.blogger.com/atom/ns#" term="String Array"/><title type='text'>How to spilt string with string as a separator using c#</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;It&#39;s easy to split a string using character but sometimes the separator may present in the string with not as separator then at that time result comes as wrong.To avoid this kind of error use string with unique combination like &quot;$#%$&quot; or &quot;$%%^^&quot; .There may a less possibility of presence of this kind of string inside your string,But if you can&#39;t separate it with the way you separate using char as separator.&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Here is the sample :&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;string[] arrStr = typeOfrecord.Split(new string[] {&quot;#$%^&quot;}, StringSplitOptions.None);
&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;color: yellow; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;Note: typeOfrecord is the string containing the separator as &quot;#$%^&quot;.&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/8097326856362751424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-spilt-string-with-string-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/8097326856362751424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/8097326856362751424'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-spilt-string-with-string-as.html' title='How to spilt string with string as a separator using c#'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-310507454768504912</id><published>2011-08-17T23:02:00.000-07:00</published><updated>2011-08-17T23:02:40.102-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Datatable"/><title type='text'>How to covert column values of a datatable to string array or string</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Sometimes we need the column values of a datatable as string array.Most of the programmer follows the looping through the rows of datatable and append it to string or stringbuilder.But we can do it by a single statement with avoiding the looping.&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;string[] emCodesprmFocus = Array.ConvertAll(dtAllEm.Select(),row =&amp;gt; (String)row[&quot;NAME&quot;].ToString());
&lt;/pre&gt;&lt;/div&gt;&lt;div style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;Note :dtAllEm is the datatable and NAME is the column&lt;/span&gt;.&lt;/div&gt;&lt;br /&gt;
If you want to convert the string array to string with &quot;,&quot; as separator then&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;string names = String.Join(&quot;,&quot;, emCodesprmFocus);
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/310507454768504912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-covert-column-values-of.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/310507454768504912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/310507454768504912'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-covert-column-values-of.html' title='How to covert column values of a datatable to string array or string'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2704622294705175240.post-3409773223650434130</id><published>2011-08-12T00:19:00.000-07:00</published><updated>2011-09-07T03:52:07.068-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><category scheme="http://www.blogger.com/atom/ns#" term="IIS"/><title type='text'>Failed to access metadata info error in iis solution</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Use this command in VS command prompt to solve this error.&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;aspnet_regiis -iru
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/3409773223650434130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/failed-to-access-metadat-info-error-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/3409773223650434130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/3409773223650434130'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/failed-to-access-metadat-info-error-in.html' title='Failed to access metadata info error in iis solution'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-4169022901240467376</id><published>2011-08-12T00:15:00.001-07:00</published><updated>2011-08-12T05:53:06.045-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Button Control"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How to add handler to multiple dyanamically created buttons in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot; trbidi=&quot;on&quot;&gt;You can add handler to dynamically created a button ,but might be confused with multiple buttons that is created dynamically .&lt;br /&gt;
&lt;br /&gt;
Here is the given code to understand.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;for (int i = 0; i &amp;lt; 10; ++i)
            {
                Button btn = new Button();
                btn.Text = &quot;btn&quot; + i.ToString() + &quot;&quot;;
                btn.ID = &quot;btn_&quot; + i.ToString() + &quot;&quot;;
                btn.Click += new EventHandler(btnSave_Click1);
                btn.CommandName = i.ToString();
                btn.CommandArgument = i.ToString();
                div1.Controls.Add(btn);
            }
            
          
        }
        protected void btnSave_Click1(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
          
          switch (int.Parse(btn.CommandName))
          {
                case 0:
                    DoWhatever(btn.CommandArgument.ToString());
                    break;
                case 1:
                    DoSomethingElse(btn.CommandArgument.ToString());
                    break;
           }

        }
        private void DoWhatever(string args)
        {
            string ss = string.Empty;
        }
        private void DoSomethingElse(string args)
        {
        }
&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/4169022901240467376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-add-handler-to-multiple.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4169022901240467376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/4169022901240467376'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-add-handler-to-multiple.html' title='How to add handler to multiple dyanamically created buttons in C#'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-6778653883742353346</id><published>2011-08-12T00:09:00.000-07:00</published><updated>2011-08-12T00:42:26.492-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>How to find duplicate rows in a table using sql queries.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here is the example.&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;SELECT [uid]     FROM [People]      WHERE [Name] IN (    SELECT [Name]    FROM [People]    GROUP BY [Name]    HAVING 
( COUNT([Name]) &amp;gt; 1 ))
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/6778653883742353346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-find-duplicate-rows-in-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/6778653883742353346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/6778653883742353346'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-find-duplicate-rows-in-table.html' title='How to find duplicate rows in a table using sql queries.'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-715186528285483665</id><published>2011-08-12T00:07:00.000-07:00</published><updated>2011-08-12T00:07:05.422-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Sql Server"/><title type='text'>How display list of procedure and function used a specific table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; text-align: left;&quot; trbidi=&quot;on&quot;&gt;It will display list of procedure or functions where you have used the table&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;sp_depends &amp;lt;tablename&amp;gt;
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/715186528285483665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-display-list-of-procedure-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/715186528285483665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/715186528285483665'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-display-list-of-procedure-and.html' title='How display list of procedure and function used a specific table'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-5141976703269931770</id><published>2011-08-12T00:04:00.000-07:00</published><updated>2011-08-12T04:21:36.182-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to set control value of Iframe from parent page in javascript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;We set control value of Iframe from parent page in javascript by given code&lt;/div&gt;.&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;parent.frmEditBiopsy1.form1.txtSubjective.value = &#39;sdfsdfsd&#39;;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;txtSubjective is the textbox inside iframe.&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;frmEditBiopsy1 is the id of Iframe.&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/5141976703269931770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-set-control-value-of-iframe-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/5141976703269931770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/5141976703269931770'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-set-control-value-of-iframe-from.html' title='How to set control value of Iframe from parent page in javascript'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-604855169920645679</id><published>2011-08-12T00:01:00.001-07:00</published><updated>2011-08-12T00:02:29.345-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to call a javascript function inside iframe from parent page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;We call a javascript function which is inside the iframe from parent page.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;d = document;
f = d.frames ? d.frames[&#39;frameName&#39;] : d.getElementById(&#39;frameId&#39;);
p = f.document || f.contentWindow.document;

p.functionName();

&lt;/pre&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;functionName() is the javascript function to be called from parent.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/604855169920645679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-call-javascript-function-inside.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/604855169920645679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/604855169920645679'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-call-javascript-function-inside.html' title='How to call a javascript function inside iframe from parent page'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-2572222985427613319</id><published>2011-08-11T23:53:00.000-07:00</published><updated>2011-08-11T23:56:15.326-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to call parent function from iframe</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;You can call a parent function from iframe.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;Parent.parentfunctionname();&lt;/pre&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;parentfunctionname() is the function in the parent page. &lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/2572222985427613319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-call-parent-function-from-iframe.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2572222985427613319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2572222985427613319'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-call-parent-function-from-iframe.html' title='How to call parent function from iframe'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-5279531061474835105</id><published>2011-08-11T23:45:00.000-07:00</published><updated>2011-08-11T23:51:43.765-07:00</updated><title type='text'>How to add Twitter to your website</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;You can add twitter to your website and ca twit your link to other.&lt;br /&gt;
&lt;br /&gt;
Here is the code.&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
var twtTitle&amp;nbsp; = document.title;
var twtUrl&amp;nbsp;&amp;nbsp;&amp;nbsp; = location.href;
var maxLength = 140 - (twtUrl.length + 1);
if (twtTitle.length &amp;gt; maxLength) {
twtTitle = twtTitle.substr(0, (maxLength - 3))+&#39;...&#39;;
}
var twtLink = &#39;http://twitter.com/home?status=&#39;+encodeURIComponent(twtTitle + &#39; &#39; + twtUrl);
document.write(&#39;&amp;lt;a href=&quot;&#39;+twtLink+&#39;&quot; target=&quot;_blank&quot;&#39;+&#39;&amp;gt;&amp;lt;img src=&quot;tweetthis.gif&quot;&amp;nbsp; border=&quot;0&quot; alt=&quot;Tweet This!&quot; /&#39;+&#39;&amp;gt;&amp;lt;&#39;+&#39;/a&amp;gt;&#39;);
&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;span style=&quot;color: #9fc5e8;&quot;&gt;&lt;span style=&quot;color: orange;&quot;&gt;tweetthis.gif&lt;/span&gt; &lt;/span&gt;is the image you can display on your website.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/5279531061474835105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-add-twitter-to-your-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/5279531061474835105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/5279531061474835105'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2011/08/how-to-add-twitter-to-your-website.html' title='How to add Twitter to your website'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-2951002972701376626</id><published>2011-08-11T09:32:00.000-07:00</published><updated>2011-08-11T09:32:50.223-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><title type='text'>How to start or stop a service using C#</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 class=&quot;cpp&quot; name=&quot;code&quot;&gt;private void StartService()

{

System.ServiceProcess.ServiceController[] allService = System.ServiceProcess.ServiceController.GetServices();

foreach (System.ServiceProcess.ServiceController s in allService)

{

if (s.ServiceName.Equals(&quot;Alerter&quot;))

{

if (s.Status.Equals(System.ServiceProcess.ServiceControllerStatus.Stopped))//check service staus

{

bool status = ServiceStartModeUpdate(&quot;Alerter&quot;, &quot;Manual&quot;, &quot;Can&#39;t start service&quot;);//provide service name here and startup Type that must be automatic or manual

if (status == true)

{

s.Start();

}

}

}

}

}

private bool ServiceStartModeUpdate(string serviceName, string startMode,string errorMsg)

{

uint successReturn = 1;

errorMsg = string.Empty;

string filterService =String.Format(&quot;SELECT * FROM Win32_Service WHERE Name = &#39;{0}&#39;&quot;, serviceName);

ManagementObjectSearcher querySearch = new ManagementObjectSearcher(filterService);

if (querySearch == null)// if match not found

{

return false;

}

else

{

try

{

ManagementObjectCollection services = querySearch.Get();//get that service

foreach (ManagementObject service in services)

{

if (Convert.ToString(service.GetPropertyValue(&quot;StartMode&quot;)) == &quot;Disabled&quot;)//if startup type is Diasabled then change it

{

ManagementBaseObject inParams =service.GetMethodParameters(&quot;ChangeStartMode&quot;);

inParams[&quot;startmode&quot;] = startMode;

ManagementBaseObject outParams =service.InvokeMethod(&quot;ChangeStartMode&quot;, inParams, null);

successReturn = Convert.ToUInt16(outParams.Properties[&quot;ReturnValue&quot;].Value);

}

}

}

catch (Exception ex)

{

errorMsg = ex.Message;

throw;

}

}

return (successReturn == 0);

}&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;NOTE&lt;/b&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: red; font-family: Verdana,sans-serif;&quot;&gt;Just make some changes to stop a service as well.&lt;/div&gt;&lt;div style=&quot;color: red; font-family: Verdana,sans-serif;&quot;&gt;Replace if (s.Status.Equals&lt;/div&gt;&lt;div style=&quot;color: red; font-family: Verdana,sans-serif;&quot;&gt;(System.ServiceProcess.ServiceControllerStatus.Stopped)) with if&lt;/div&gt;&lt;div style=&quot;color: red; font-family: Verdana,sans-serif;&quot;&gt;(s.Status.Equals(System.ServiceProcess.ServiceControllerStatus.Running)or&lt;/div&gt;&lt;div style=&quot;color: red; font-family: Verdana,sans-serif;&quot;&gt;start,pending etc.. other than stopped)&lt;/div&gt;&lt;div style=&quot;color: red; font-family: Verdana,sans-serif;&quot;&gt;Replace s.Start(); with t.Stop();&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;References to be added&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;1.System.Management&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;2.System.ServiceProcess&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;Namespace to be added:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;using System.Management;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/2951002972701376626/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2009/11/how-to-start-or-stop-service-using-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2951002972701376626'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2951002972701376626'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2009/11/how-to-start-or-stop-service-using-c.html' title='How to start or stop a service using C#'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-3899922221282662768</id><published>2010-03-05T21:54:00.000-08:00</published><updated>2011-08-11T11:15:22.954-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Infragistic ultrawebgrid"/><title type='text'>KnowledgeSharing: How to use Infragistic ultrawebgrid</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;After installing Infragistics ,add some dll of it to your application and to use ultrawebgrid add the dll of it.then drag and drop that control from toolbox after right click on toolbox and selecting choose items then select ultrawebgrid.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;After dropping it the clientside code will like thi&lt;/span&gt;s.&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;igtbl:ultrawebgrid id=&quot;UltraWebGrid1&quot; runat=&quot;server&quot; Width=&quot;824px&quot; UseAccessibleHeader=&quot;False&quot;&amp;gt;

                    &amp;lt;DisplayLayout AllowDeleteDefault=&quot;Yes&quot; AllowAddNewDefault=&quot;Yes&quot; AllowSortingDefault=&quot;OnClient&quot;

                        RowHeightDefault=&quot;21px&quot; Version=&quot;3.00&quot; SelectTypeRowDefault=&quot;Extended&quot; AllowColumnMovingDefault=&quot;OnServer&quot;

                        SelectTypeCellDefault=&quot;Single&quot; BorderCollapseDefault=&quot;Separate&quot; EnableClientSideRenumbering=&quot;True&quot;

                        EnableInternalRowsManagement=&quot;True&quot; FixedHeaderIndicatorDefault=&quot;Button&quot; AllowRowNumberingDefault=&quot;Continuous&quot;

                        Name=&quot;UltraWebGrid1&quot; CellClickActionDefault=&quot;Edit&quot; AllowUpdateDefault=&quot;RowTemplateOnly&quot;&amp;gt;

                        &amp;lt;AddNewBox Hidden=&quot;False&quot; Prompt=&quot;add row&quot;&amp;gt;

                                                        &amp;lt;ButtonStyle&amp;gt;&amp;lt;/ButtonStyle&amp;gt;

                        &amp;lt;/AddNewBox&amp;gt;

                        &amp;lt;Pager ChangeLinksColor=&quot;True&quot; StyleMode=&quot;CustomLabels&quot; &amp;gt;

                            &amp;lt;Style &amp;gt;

                            &amp;lt;/Style&amp;gt;

                        &amp;lt;/Pager&amp;gt;

                        &amp;lt;HeaderStyleDefault TextOverflow=&quot;Ellipsis&quot; Cursor=&quot;Hand&quot;                              &quot; CustomRules=&quot;background-image:url(/ig_common/images/Office2003OliveBG.png);background-repeat:repeat-x;&quot;&amp;gt;

                            &amp;lt;BorderDetails ColorTop=&quot;215, 223, 193&quot; ColorLeft=&quot;215, 223, 193&quot;&amp;gt;&amp;lt;/BorderDetails&amp;gt;

                        &amp;lt;/HeaderStyleDefault&amp;gt;

                        &amp;lt;FrameStyle Width=&quot;824px&quot; BorderWidth=&quot;1px&quot;                             &amp;gt;&amp;lt;/FrameStyle&amp;gt;

                        &amp;lt;FooterStyleDefault &amp;gt;

                            &amp;lt;BorderDetails &amp;gt;&amp;lt;/BorderDetails&amp;gt;

                        &amp;lt;/FooterStyleDefault&amp;gt;

                        &amp;lt;ClientSideEvents BeforeExitEditModeHandler=&quot;BeforeExitEditMode&quot; BeforeEnterEditModeHandler=&quot;BeforeEnterEditmode&quot;

                            BeforeSortColumnHandler=&quot;beforesort&quot; DblClickHandler=&quot;MyDblClick&quot; CellClickHandler=&quot;GridCellClick&quot;

                            AfterRowDeletedHandler=&quot;AfterDelete&quot; AfterEnterEditModeHandler=&quot;HandleAfterEnterEditMode&quot; AfterRowActivateHandler=&quot;AfterRowActivate&quot;

                            MouseOverHandler=&quot;MouseOver&quot; InitializeRowHandler=&quot;initializerow&quot; MouseOutHandler=&quot;MouseOut&quot; BeforeRowDeletedHandler=&quot;BeforeDelete&quot;

                            InitializeLayoutHandler=&quot;InitializeGrid&quot; ClickCellButtonHandler=&quot;CellButtonClick&quot;&amp;gt;&amp;lt;/ClientSideEvents&amp;gt;

                        &amp;lt;SelectedHeaderStyleDefault Font-Bold=&quot;True&quot;&amp;gt;&amp;lt;/SelectedHeaderStyleDefault&amp;gt;

                        &amp;lt;EditCellStyleDefault BorderWidth=&quot;0px&quot; BorderStyle=&quot;None&quot;&amp;gt;&amp;lt;/EditCellStyleDefault&amp;gt;

                        &amp;lt;SelectedRowStyleDefault ForeColor=&quot;White&quot; BackColor=&quot;#F09D21&quot; CustomRules=&quot;background-image:url(/ig_common/images/Office2003SelRow.png);background-repeat:repeat-x;&quot;&amp;gt;&amp;lt;/SelectedRowStyleDefault&amp;gt;

                        &amp;lt;RowStyleDefault &amp;gt;

                            &amp;lt;Padding Left=&quot;3px&quot;&amp;gt;&amp;lt;/Padding&amp;gt;

                            &amp;lt;BorderDetails WidthLeft=&quot;0px&quot; WidthTop=&quot;0px&quot;&amp;gt;&amp;lt;/BorderDetails&amp;gt;

                        &amp;lt;/RowStyleDefault&amp;gt;

                    &amp;lt;/DisplayLayout&amp;gt;

                    &amp;lt;Bands&amp;gt;

                        &amp;lt;igtbl:UltraGridBand&amp;gt;

                            &amp;lt;COLUMNS&amp;gt;

                                &amp;lt;igtbl:UltraGridColumn Type=&quot;checkbox&quot; IsBound=&quot;True&quot;&amp;gt;&amp;lt;/igtbl:UltraGridColumn&amp;gt;

                            &amp;lt;/COLUMNS&amp;gt;

                        &amp;lt;/igtbl:UltraGridBand&amp;gt;

                        &amp;lt;igtbl:UltraGridBand&amp;gt;

                            &amp;lt;ROWEDITTEMPLATE&amp;gt;

                               

// add control for row template for editing and there will a ok button and cancel button                               

                                                            &amp;lt;/ROWEDITTEMPLATE&amp;gt;

                            &amp;lt;ROWTEMPLATESTYLE

                                &amp;lt;BORDERDETAILS &amp;gt;&amp;lt;/BORDERDETAILS&amp;gt;

                            &amp;lt;/ROWTEMPLATESTYLE&amp;gt;

                        &amp;lt;/igtbl:UltraGridBand&amp;gt;

                    &amp;lt;/Bands&amp;gt;

                &amp;lt;/igtbl:ultrawebgrid&amp;gt;
&lt;/pre&gt;It has some clientside events ,after dropping it it have no clientside event tag.&lt;br /&gt;
&lt;br /&gt;
you have to add that tag that is added in above.&lt;br /&gt;
&lt;br /&gt;
that is&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;ClientSideEvents BeforeExitEditModeHandler=&quot;BeforeExitEditMode&quot; BeforeEnterEditModeHandler=&quot;BeforeEnterEditmode&quot;

                            BeforeSortColumnHandler=&quot;beforesort&quot; DblClickHandler=&quot;MyDblClick&quot; CellClickHandler=&quot;GridCellClick&quot;

                            AfterRowDeletedHandler=&quot;AfterDelete&quot; AfterEnterEditModeHandler=&quot;HandleAfterEnterEditMode&quot; AfterRowActivateHandler=&quot;AfterRowActivate&quot;

                            MouseOverHandler=&quot;MouseOver&quot; InitializeRowHandler=&quot;initializerow&quot; MouseOutHandler=&quot;MouseOut&quot; BeforeRowDeletedHandler=&quot;BeforeDelete&quot;

                            InitializeLayoutHandler=&quot;InitializeGrid&quot; ClickCellButtonHandler=&quot;CellButtonClick&quot;&amp;gt;&amp;lt;/ClientSideEvents&amp;gt;

Every clientside event calling a javascript function.

for example in above  AfterRowActivateHandler=&quot;AfterRowActivate&quot;

AfterRowActivateHandler calling AfterRowActivate function.

&amp;lt;script language=&quot;javascript&quot;&amp;gt;

function AfterRowActivate(gn, rowID)

            {

               

                var grid=igtbl_getGridById(&quot;UltraWebGrid1&quot;);

               

                var row=igtbl_getElementById(rowID);

                var n = rowID.replace(&quot;UltraWebGrid3r_&quot;,&quot;&quot;);

                   var x=grid.Rows.getRow(n).getCell(0).getValue();

               

               

            }   

&amp;lt;/script&amp;gt;
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;passing two argument one for id of grid and one for id of row.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;you can find the value of a cell using like this grid.Rows.getRow(n).getCell(0).getValue(); and assign to a control.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;there are several clientside event that i have mentioned earlier.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;and you try it using these function for respective clientsideevent.&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;

    function BeforeExitEditMode(tableName, itemName)

             {

                // Obtain the Row object for the current cell

                var row = igtbl_getRowById(itemName);

                // Obtain the Cell object for Column 9

                var cell = row.getCell(7);

               

                // Update the Cell value in Column 9

                //cell.setValue(&quot;Updated&quot;);

                    return 0;

            }

function BeforeEnterEditmode(gridname, cellid)

        {

           

       

                    var row=igtbl_getRowById(cellid);

               

                    var value=row.getCell(0).getValue();

                   

                   

                    if(value == &quot;false&quot;)

                    {

                   

                        alert(&quot;plz check the checkbox&quot;);

                        return true;

                    }

                    else

                    {

                       

                        return false;

                    }

               

                   

    }           

function beforesort()

        {

            var grid = igtbl_getGridById(&#39;UltraWebGrid1&#39;);

            grid.Allowsort=3;

        }

function GridCellClick (gridName,CellID,button)

            {

               

                    if(button == 2)

                    {

                       

                        igtbl_UltraWebgrid3(&#39;UltraWebgrid3&#39;, event);

                        return true;

                    }

            }

            ROW_HEIGHT = 40;

            ROW_HEIGHT_DELTA = 10;

function MyDblClick(tableName,itemName)

        {

            var row = igtbl_getRowById(itemName);

           

            var cell = igtbl_getElementById(itemName);

            var parts = itemName.split(&quot;_&quot;);

             var grid = igtbl_getGridById(&#39;UltraWebGrid1&#39;);

             grid.AllowUpdate = true;

            if(parts[2]==1)

            {

           

                alert(&quot;can&#39;t be edited&quot;);

               

                grid.AllowUpdate = false;

                return false;

            }

            if (row != null)

            {

                if (row.Element.style.height == &quot;&quot;)

                {

                row.Element.style.height = ROW_HEIGHT;

                }

                oldheight = parseInt(row.Element.style.height.replace(/px/,&#39;&#39;));

                igtbl_resizeRow(&quot;UltraWebGrid1&quot;, row.Element.id, oldheight + ROW_HEIGHT_DELTA)

            }

               

           

        }

function HandleAfterEnterEditMode(gridID, cellID)

        {

            var cell = igtbl_getCellById(cellID);

            cell.Element.style.backgroundColor = &quot;#99FFFF&quot;;

        }

    function AfterDelete()

        {

            // set deleting to true so when deleting

            // multiple rows confirm is shown only once

            deleting=true;

            del=true;

        }

function MouseOver(tableName, itemName, type)

        {

           

            if(type == 0)

            { // Are we over a cell

            var cell = igtbl_getElementById(itemName);

           

           

            cell.style.cursor = &#39;hand&#39;;

            cell.style.color = &#39;red&#39;;

           

            var label = document.getElementById(&quot;mylebel&quot;);

            var parts = itemName.split(&quot;_&quot;);

            if(label &amp;amp;&amp;amp; parts.length&amp;gt;=3)

            label.innerHTML = &quot;Current Row:&quot; + parts[1] + &quot; - Current Column:&quot; + parts[2];//add a label control to your webform

            }

        }

function AfterRowActivate(gn, rowID)

            {

               

                var grid=igtbl_getGridById(&quot;UltraWebGrid1&quot;);

               

                var row=igtbl_getElementById(rowID);

                var n = rowID.replace(&quot;UltraWebGrid3r_&quot;,&quot;&quot;);

                //var x=grid.Rows.getRow(n).getCell(0).getValue();

               

               

            }   

 function InitializeRow(tableName,rowName)

           {

            var icount;

           

            var row = igtbl_getElementById(rowName);

            var FirstActiveCell = igtbl_getBandFAC(tableName, row);

            var objDd = document.getElementById(&quot;commonfield_drpdwn&quot;);

            igtbl_getCellById(row.cells[FirstActiveCell+2].id).setValue(objDd.options[objDd.selectedIndex].text);

             var x=document.getElementById(&quot;commonfield_drpdwn&quot;).options[document.getElementById(&quot;commonfield_drpdwn&quot;).selectedIndex].value;

            igtbl_getCellById(row.cells[FirstActiveCell+3].id).setValue(x);

             igtbl_getCellById(row.cells[FirstActiveCell+4].id).setValue(0);

            igtbl_getCellById(row.cells[FirstActiveCell+7].id).setValue(false);

           

            igtbl_getCellById(row.cells[FirstActiveCell+5].id).setValue(0);

            igtbl_getCellById(row.cells[FirstActiveCell+6].id).setValue(0);

           

            igtbl_getCellById(row.cells[FirstActiveCell+8].id).setValue(false);

           

            igtbl_getCellById(row.cells[FirstActiveCell+0].id).setValue(-1); //-1 for adding a new row

            igtbl_getCellById(row.cells[FirstActiveCell+9].id).setValue(0);

           

            flagExitAlert=1;

          

            }

           

          

             function CellButtonClick(gridId, cellId) {

            var oGrid = igtbl_getGridById(gridId);

        var oRow = igtbl_getRowById(cellId);

        oRow.editRow();

    }

function MouseOut(tableName, itemName, type)

        {

            if(type == 0) { // Are we over a cell

            var cell = igtbl_getElementById(itemName);

           

            cell.style.color = &#39;black&#39;;

           

            }

        }

    function BeforeDelete(gridname, rowid)

            {

                    if(!deleting) // used to determine if confirm box has shown yet

                    {

                    // show the confirm box

                    del = confirm(&quot;You sure you want to delete row(s)&quot;);

                    // set deleting to true so confirm is not shown again

                    deleting=true;

                    }

                    // returning true cancels the event so return the opposite

                    // of what the user selected in the confirm box

                    return !del;

                    alert(del);

            }

&amp;lt;/script&amp;amp;gt;
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;you can editrow template means when you click a popuplike window will there where cell values will in textboxes or in other control where it can be editable.there you can edit it and there are two buttos that is ok button and cancel button.if you click ok button cell value will change according to your changes.&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/3899922221282662768/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/03/knowledgesharing-how-to-use-infragistic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/3899922221282662768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/3899922221282662768'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/03/knowledgesharing-how-to-use-infragistic.html' title='KnowledgeSharing: How to use Infragistic ultrawebgrid'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-2843364167318521781</id><published>2010-02-22T10:08:00.001-08:00</published><updated>2011-08-11T11:15:33.507-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax"/><title type='text'>Bind a dropdown according to data in another drop down using traditional AJAX</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Code for client side written within script:&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;function CallTemplate()

            {

           

              //alert(document.getElementById(&#39;cmbAssignTo_cmbSimple&#39;).value);

                   

                   var objDd=  document.getElementById(&#39;ddlmenu&#39;)

                  

                    var strValue = objDd.options[objDd.selectedIndex].value;                   

                   

                    //Create XMLHttpRequest object:&#39;request&#39;

                       

                        CreateXmlHttpRequestObject();

                       

                        //Build the required Query string

                        var sPass=1;

                       

                        var retrieveParam = &#39;id=&#39;+ strValue;

                       

                        var retrieveURL = &quot;AJAX.aspx&quot;;

                        var url = retrieveURL + &#39;?&#39; + retrieveParam;

                       

                        request.open(&#39;GET&#39;,url,true);

                       

                        request.onreadystatechange = CheckTemplate;

                   

                        request.send(null);   

            }

               

            function CheckTemplate()

            {

                document.getElementById(&quot;ddlsubmenu&quot;).innerText=&quot;&quot;;

                if(request.readyState == 4 || request.readyState == &#39;complete&#39;)

                {

                    if(request.status == 200)

                    {   

                            var opt=document.createElement(&quot;option&quot;);

                            opt.value=&quot;-1&quot;;

                            opt.text=&quot;----select subcategory---&quot;;

                            document.getElementById(&quot;ddlsubmenu&quot;).add(opt);

                            var DdVisitTemp = document.getElementById(&quot;ddlmenu&quot;);

                           

                            var rootFile = request.responseXML.documentElement;

                         

                            var Id = rootFile.getElementsByTagName(&#39;Id&#39;);

                           

                            var Name = rootFile.getElementsByTagName(&#39;Name&#39;);

                           

                              if(Id.length &amp;gt; 0 || Name.length &amp;gt; 0)

                              {

                       

                                for(var i=0;i
                                {
                                   
                                       if(Name.length &amp;gt; 0)
                                       {
                                         var opt=document.createElement(&quot;option&quot;);
                                       
                                        opt.value=Id[i].text;
                                           
                                        opt.text=Name[i].text;
                                       
                                        document.getElementById(&quot;ddlsubmenu&quot;).add(opt);
                                       
                                      }
                                   
                                }
                               
                            }
                             
                    }//    inner IF       
           
            } // Outer IF
           
        }
       
        function CreateXmlHttpRequestObject()
            {
                try
                {
                    request = new XMLHttpRequest();
                }
                catch(nething)
                {
                    try
                    {
                        request = new ActiveXObject(&#39;Msxml2.XMLHTTP&#39;);
                    }
                    catch(othr)
                    {
                        try
                        {
                            request = new ActiveXObject(&#39;Microsoft.XMLHTTP&#39;);
                        }
                        catch(err)
                        {
                            request = false;
                        }
                    }
                }
                if(!request)
                {
                    alert(&quot;Error initializing XMLHttpRequest object!&quot;);
                }
            }


&lt;/pre&gt;&lt;br /&gt;
code for ajax page i.e ajax.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;private void Page_Load(object sender, System.EventArgs e)
        {
                   
                        string id=string.Empty ;
            System.Text.StringBuilder strXml;
            string passedValue = Request.QueryString[&quot;id&quot;];

                        string strFill=&quot; select  PK_PRIMARY_KEY,TITLE_SUBMENU from SUBJECT_SUBMENU where FK_SUBJECTMENU_ID = &#39;&quot; + id + &quot;&#39; &quot;;
           
            DataTable dttemp= con.connectiondatatable(strFill);
           


            int j=dttemp.Rows.Count;
            strXml = new System.Text.StringBuilder ();
            strXml.Append(&quot;&quot;);
           
            if(j &amp;gt; 0)
            {
             
                for(int i=0 ; i
                {
                   
                    strXml.Append(&quot;&quot;+dttemp.Rows[i][&quot;PK_PRIMARY_KEY&quot;].ToString() +&quot; &quot;);
                    strXml.Append(&quot; &quot;+dttemp.Rows[i][&quot;TITLE_SUBMENU&quot;].ToString()+&quot; &quot;);
                }

            }
            else
            {
               
                strXml.Insert(-1,&quot;&quot;);
               
            }

            strXml.Append(&quot;&quot;);
            XmlDocument xTemplate = new XmlDocument();
            xTemplate.LoadXml(strXml.ToString());

            Response.ContentType = &quot;text/xml&quot;;
            Response.CacheControl = &quot;No-cache&quot;;
            xTemplate.Save(Response.OutputStream);
           
            // Put user code to initialize the page here
        }
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;There are two tables&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;1.SUBJECTMENU&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;2.SUBJECT_SUBMENU&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Relation between them&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;SUBJECT_SUBMENU.FK_SUBJECTMENU_ID=SUBJECTMENU.PK_SUBJECTMENU_ID&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Step 1:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;create two tables must have relationship between them like above.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;step 2:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Bind 1st dropdown on page load.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;step 3:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Write code for client side as well as ajax page.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;When u change 1st dropdown ,2nd dropdown will change.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;How to create a ajax page:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Add a webform and delete all code that will bydefault in client except tag containing page inherit&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;%@ Page language=&quot;c#&quot; Codebehind=&quot;AJAX.aspx.cs&quot; AutoEventWireup=&quot;false&quot; Inherits=&quot;KnowledgeSharing.AJAX&quot; %&amp;gt;
&lt;/pre&gt;except this one&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/2843364167318521781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/02/bind-dropdown-according-to-data-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2843364167318521781'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/2843364167318521781'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/02/bind-dropdown-according-to-data-in.html' title='Bind a dropdown according to data in another drop down using traditional AJAX'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-3053598687180720348</id><published>2010-02-22T10:07:00.001-08:00</published><updated>2011-08-11T11:04:34.095-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Asp.net"/><title type='text'>Encrypt web config in Asp.net</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;You can encrypt sections of a configuration file to protect sensitive&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;information used by your application. This improves security by making it difficult for unauthorized access even if an attacker gains access to your configuration file.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The .NET Framework includes two protected-configuration providers that can be used to encrypt sections of a configuration file.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;·        RSAProtectedConfigurationProvider, which uses the RSACryptoServiceProvider to encrypt configuration sections.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;·         DPAPIProtectedConfigurationProvider, which uses the Windows Data Protection API (DPAPI) to encrypt configuration sections.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The unprotected app.config file&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This is what the app.config file looks like when it is unprotected:&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;

&amp;lt;configuration&amp;gt;

&amp;lt;connectionStrings&amp;gt;

&amp;lt;add name=&quot;SampleSqlServer&quot; connectionString=   &quot;Data Source=localhost;Integrated Security=SSPI;

  Initial Catalog=SampleDatabase;&quot; /&amp;gt;

&amp;lt;/connectionStrings&amp;gt;

&amp;lt;/configuration&amp;gt;
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The protected app.config file&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This is what the app.config file looks like when it is protected using the built-in .NET 2.0 framework ConfigurationSection.Protect () functionality:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Using RsaProtectedConfigurationProvider&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;

&amp;lt;configuration&amp;gt;

    &amp;lt;connectionStrings

 configProtectionProvider=&quot;RsaProtectedConfigurationProvider&quot;&amp;gt;

    &amp;lt;EncryptedData Type=&quot;http://www.w3.org/2001/04/xmlenc#Element&quot;

      xmlns=&quot;http://www.w3.org/2001/04/xmlenc#&quot;&amp;gt;

      &amp;lt;EncryptionMethod Algorithm=&quot;http://www.w3.org/2001/04/xmlenc#tripledes-cbc&quot; /&amp;gt;

      &amp;lt;KeyInfo xmlns=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&amp;gt;

        &amp;lt;EncryptedKey xmlns=&quot;http://www.w3.org/2001/04/xmlenc#&quot;&amp;gt;

          &amp;lt;EncryptionMethod Algorithm=&quot;http://www.w3.org/2001/04/xmlenc#rsa-1_5&quot; /&amp;gt;

          &amp;lt;KeyInfo xmlns=&quot;http://www.w3.org/2000/09/xmldsig#&quot;&amp;gt;

            &amp;lt;KeyName&amp;gt;RSA Key&amp;lt;/KeyName&amp;gt;

          &amp;lt;/KeyInfo&amp;gt;

          &amp;lt;CipherData&amp;gt;            &amp;lt;CipherValue&amp;gt;RXO/zmmy3sR0iOJoF4ooxkFxwelVYpT0riwP2mYpR3FU+r6BPfvsqb384pohivkyNY7Dm4lPgR2bE9F7k6TblLVJFvnQu7p7d/yjnhzgHwWKMqb0M0t0Y8DOwogkDDXFxs1UxIhtknc+2a7UGtGh6Di3N572qxdfmGfQc7ZbwNE=

            &amp;lt;/CipherValue&amp;gt;

          &amp;lt;/CipherData&amp;gt;

        &amp;lt;/EncryptedKey&amp;gt;

      &amp;lt;/KeyInfo&amp;gt;

      &amp;lt;CipherData&amp;gt;        &amp;lt;CipherValue&amp;gt;KMNKBuV9nOid8pUvdNLY5I8R7BaEGncjkwYgshW8ClKjrXSM7zeIRmAy/cTaniu8Rfk92KVkEK83+UlQd+GQ6pycO3eM8DTM5kCyLcEiJa5XUAQv4KITBNBN6fBXsWrGuEyUDWZYm6Eijl8DqRDb11i+StkBLlHPyyhbnCAsXdz5CaqVuG0obEy2xmnGQ6G3Mzr74j4ifxnyvRq7levA2sBR4lhE5M80Cd5yKEJktcPWZYM99TmyO3KYjtmRW/Ws/XO3z9z1b1KohE5Ok/YX1YV0+Uk4/yuZo0Bjk+rErG505YMfRVtxSJ4ee418ZMfp4vOaqzKrSkHPie3zIR7SuVUeYPFZbcV65BKCUlT4EtPLgi8CHu8bMBQkdWxOnQEIBeY+TerAee/SiBCrA8M/n9bpLlRJkUb+URiGLoaj+XHym//fmCclAcveKlba6vKrcbqhEjsnY2F522yaTHcc1+wXUWqif7rSIPhc0+MT1hB1SZjd8dmPgtZUyzcL51DoChy+hZ4vLzE=

        &amp;lt;/CipherValue&amp;gt;

      &amp;lt;/CipherData&amp;gt;

    &amp;lt;/EncryptedData&amp;gt;

  &amp;lt;/connectionStrings&amp;gt;

&amp;lt;/configuration&amp;gt;

Using  DataProtectionConfigurationProvider

&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;

&amp;lt;configuration&amp;gt;

&amp;lt;connectionStrings configProtectionProvider=&quot;DataProtectionConfigurationProvider&quot;&amp;gt;

    &amp;lt;EncryptedData&amp;gt;

      &amp;lt;CipherData&amp;gt;        &amp;lt;CipherValue&amp;gt;AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAC604ocVBjE6iwNotzM4ZMQQAAAACAAAAAAADZgAAqAAAABAAAABWwjYy7bwZdDql3nImdFcfAAAAAASAAACgAAAAEAAAAK/xpOyKKzMSGwg/XsFAi/5gAQAAVOSKtGe5k21uyyxt35111auSE746lH5Ij8E1839D9e/eoFKvxCXFkBtlQD/sftjEGzfrmeTQQMMP2c5kWCGINH1N5NOReK+vOxZHQzkUJxn4D2fOxknLrprMvnRawhPmuqLcHC3iZTxWnxYL9pSGs3Gk9bEbhhFFNZN/0AvJ6OlqfvhpaI6zA1NIbS4MYcQ3lAsmupjE4deOB7ocTooJTWoToAxVJ0gC+hJnQ7ZwHiQLUIGmeaAs8nt7t8NJSWMhsFHbYzjpSGO4q8Iet1xsCnbxo5CH/N9mdC8SZ9Nz4XLt9TlmWJhjFIuCbv7YoqhI8895EQsOsQ9VumFaj1jIqNHMS8lWLcZULC7ZM1Yn/Dvhk+bNgaljLNRotdPeMIwLAbqVUY9kzeM1alVbFNkmC0uvApCli4lAq5n9rNyK5xktzxbA0QFRrI2W1A9ns3Y6g5Jcy9ztdEVfSbU+jGkvPBQAAACdTt+x46DXMgPiRLp9lMd36IFWsA==&amp;lt;/CipherValue&amp;gt;

      &amp;lt;/CipherData&amp;gt;

    &amp;lt;/EncryptedData&amp;gt;

  &amp;lt;/connectionStrings&amp;gt;

&amp;lt;/configuration&amp;gt;
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;How this was done&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;In order to protect a section of the app.config file, we can use the ProtectSection() function to encrypt that portion of the file. There is no need to unprotect the section. We can still read the information from the section; the built-in configuration manager will automatically decrypt the cipher text.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;private void ProtectSection(string sectionName)

{

    // Open the app.config file.

    Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

   

    // Get the section in the file.

    ConfigurationSection section = config.GetSection(sectionName);

   

    // If the section exists and the section is not readonly, then  

    // protect the section.

    if (section != null)

    {

        if (!section.IsReadOnly())

        {

            // Protect the section.

            section.SectionInformation.ProtectSection (&quot;RsaProtectedConfigurationProvider&quot;);

            section.SectionInformation.ForceSave = true;

            // Save the change.

            config.Save(ConfigurationSaveMode.Modified);

         }

     }

}
&lt;/pre&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Getting the value&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;As stated above, there is no need to unprotect or decrypt the app.config file to get the value of the connection string; the decryption is handled by the .NET 2.0 framework. Simply open the app.config file and read the value of the connection string, like this:&lt;/div&gt;&lt;br /&gt;
&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;// Open the app.config file.

Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

// Display the current connection string.

txtConnString.Text = config.ConnectionStrings.ConnectionStrings[&quot;SampleSqlServer&quot;].ConnectionString;
&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/3053598687180720348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/02/encrypt-web-config-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/3053598687180720348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/3053598687180720348'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/02/encrypt-web-config-in-aspnet.html' title='Encrypt web config in Asp.net'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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-2704622294705175240.post-1657062569398058821</id><published>2010-02-22T10:06:00.001-08:00</published><updated>2011-08-11T11:15:51.464-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to restrict user to copy from a textbox or paste text to textbox using javascript</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;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;This code demonstrate how to restrict user to copy from a textbox or paste text to textbox using JavaScript.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Here is the code :&lt;/div&gt;&lt;pre class=&quot;cpp&quot; name=&quot;code&quot;&gt;&amp;lt;script language=&quot;javascript&quot;&amp;gt;

function copy() {

    alert(&quot;Can&#39;t copy the text&quot;);

    return false;

}

function paste() {

    alert(&quot;can&#39;t paste text&quot;);

    return false;

} 

&amp;lt;/script&amp;gt;

&amp;lt;asp:TextBox ID=&quot;TextBox2&quot; runat=&quot;server&quot; Text=&quot;hi&quot; oncopy=&quot;return copy();&quot; onpaste=&quot;return paste();&quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;

&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Abhay&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coolkumarabhay.blogspot.com/feeds/1657062569398058821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/02/how-to-restrict-user-to-copy-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/1657062569398058821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2704622294705175240/posts/default/1657062569398058821'/><link rel='alternate' type='text/html' href='http://coolkumarabhay.blogspot.com/2010/02/how-to-restrict-user-to-copy-from.html' title='How to restrict user to copy from a textbox or paste text to textbox using javascript'/><author><name>Abhay Raut</name><uri>http://www.blogger.com/profile/17101818360967544252</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>