<?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-7611458711449465946</id><updated>2016-06-10T15:22:08.027+05:30</updated><category term=".Net to Oracle Connectivity using ODBC .NET"/><category term="ASP.NET C# Session Variable"/><category term="ASP.NET – Function to Fill Month"/><category term="Ajax Validator Collout Extender"/><category term="Back to the Previous Page"/><category term="C# - How to detect all IP addresses from a LAN?"/><category term="C# window application : How to pass the value from one page to another"/><category term="DOT NET Interview Questions"/><category term="Date and Year into Dropdown lists"/><category term="Default text disappear from textbox with javascript"/><category term="Difference between Detach/Attach and Restore/BackUp a DB"/><category term="Difference between Web.Config and Machine.Config File"/><category term="Difference between Website and Web Application in ASP.NET"/><category term="Disable Typing in Combobox in C# window application"/><category term="Does the HTMLEditor control raise any client-side events?"/><category term="Edit in desktop application with DataGridView"/><category term="Email sending through window application-C#"/><category term="Email validation : C# window application"/><category term="Find get element by ID with javascript"/><category term="Free Download E-books"/><category term="Get IP Address with C#"/><category term="Getting input from keyboard"/><category term="How To Change The Screen Resolution in C#"/><category term="How To Get Web Site Thumbnail Image In ASP.NET"/><category term="How to Clear all the textbox/groupbox on single click"/><category term="How to access values of dynamically created TextBoxes"/><category term="How to create an Access database by using ADOX and Visual C# .NET"/><category term="How to create dynamically LinkButton with Literal Control in ASP.NET"/><category term="How to insert"/><category term="How to load Image in C# and set properties of the Picture Box"/><category term="How to read/write cookies in asp.net"/><category term="How to select and deselect checkbox field into the GridView"/><category term="How to send free sms through asp.net with C#"/><category term="How to submit a form on pressing enter key"/><category term="How to subtract 1 from a orginal count in an ASP.NET gridview"/><category term="How to use Ajax : CollapsiblePanelExtender in ASP.NET"/><category term="How to use Ajax : Hovermenu Extender in ASP.NET"/><category term="How to use Crystal Report into the ASP.NET"/><category term="How to use Java Applet into the ASP.NET page"/><category term="Import and Export data from SQL Server 2005 to XL Sheet"/><category term="Integrating ASP.NET MVC 3 into existing upgraded ASP.NET 4 Web Forms applications"/><category term="Javascript Alert Message from code behind in ASP.NET"/><category term="Javascript Open a Window Full Size (Mazimized)"/><category term="Javascript function for horizontal center align in asp.net"/><category term="Linq Tutorial"/><category term="Login - check database if user exists... (c#)"/><category term="Microsoft .NET Web Programming:  Web Sites versus Web Applications"/><category term="Mobile no. validation in C# window application"/><category term="My Morph Image with Alfonso Herrera"/><category term="Others"/><category term="Pager Control"/><category term="Passing data from one database to another database table (Access) (C#)"/><category term="Restricting access to page or directory in ASP.NET"/><category term="Run a .sql script file in C#"/><category term="SQL Server 2008 Designer Behavior Change: Saving Changes Not Permitted"/><category term="Save The Tigers"/><category term="Securing ASP.Net Pages - Forms Authentication - C# and .Net 4"/><category term="Split String"/><category term="Storing Binary Data to Database using ASP.NET 2.0"/><category term="TextBox validation in C# window application"/><category term="Top 100 ASP.Net Questions"/><category term="URL validation : C# window application"/><category term="UpdatePanel not working in IE8 and Safari"/><category term="Web Application : How to upload multiple images at a time"/><category term="Web Application : get data and fill dropdownlist through C# function"/><category term="What are &quot;Expression Trees&quot; in C# ?"/><category term="What is Polymorphism?"/><category term="What is the difference between String and string in C#"/><category term="What&#39;s new in the .NET"/><category term="Why some links appear in a new tab"/><category term="Window Application : C# Function for Insert"/><category term="get data and fill the dropdown list"/><category term="open a new browser window in Windows Forms"/><category term="others in a new window?"/><title type='text'>ASP.NET with C# Technology</title><subtitle type='html'>Asp.Net, C#.Net,VB.Net, Ajax, Interview Questions, Mcts, SQL Server,Silverlight 4. If you are looking for updates than kindly subscribe with this blog.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>105</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3424737641552667472</id><published>2015-09-08T13:51:00.001+05:30</published><updated>2015-09-08T13:51:04.305+05:30</updated><title type='text'>Function for check table is exist or not in sql database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;public int CheckTable(string TableName)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string cmdText = @&quot;IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE TABLE_NAME=&#39;&quot; + TableName + &quot;&#39;) SELECT 1 ELSE SELECT 0&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = (int)ExecuteScalar(cmdText,CommandType.Text,null,null);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return i;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3424737641552667472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3424737641552667472&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3424737641552667472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3424737641552667472'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/09/function-for-check-table-is-exist-or.html' title='Function for check table is exist or not in sql database'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3225746125892170188</id><published>2015-06-11T19:43:00.002+05:30</published><updated>2015-06-11T19:43:22.273+05:30</updated><title type='text'>How to reset auto increment field starting from 0</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;DBCC CHECKIDENT (faq_sections, RESEED, 0)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3225746125892170188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3225746125892170188&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3225746125892170188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3225746125892170188'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/06/how-to-reset-auto-increment-field.html' title='How to reset auto increment field starting from 0'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-1201418603947314053</id><published>2015-05-12T12:56:00.004+05:30</published><updated>2015-05-12T12:56:24.212+05:30</updated><title type='text'>How to Find Column From All Tables of Database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;code style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;SELECT &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t.name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;table_name&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;SCHEMA_NAME&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;schema_id&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;schema_name&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c.name &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;column_name&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;FROM &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sys.tables &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;INNER&amp;nbsp;JOIN &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;sys.columns&amp;nbsp;c &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ON &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;t.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;OBJECT_ID &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;c.&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;OBJECT_ID &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;ORDER&amp;nbsp;BY &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;schema_name&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;table_name&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/1201418603947314053/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=1201418603947314053&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/1201418603947314053'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/1201418603947314053'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/05/how-to-find-column-from-all-tables-of.html' title='How to Find Column From All Tables of Database'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3436675318263347442</id><published>2015-05-12T12:55:00.004+05:30</published><updated>2015-05-12T12:55:24.276+05:30</updated><title type='text'>How to find a string from whole database?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;DECLARE @MyValue NVarChar(4000) = &#39;something&#39;;&lt;br /&gt;&lt;br /&gt;SELECT S.name SchemaName, T.name TableName&lt;br /&gt;INTO #T&lt;br /&gt;FROM sys.schemas S INNER JOIN&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.tables T ON S.schema_id = T.schema_id;&lt;br /&gt;&lt;br /&gt;WHILE (EXISTS (SELECT * FROM #T)) BEGIN&lt;br /&gt;&amp;nbsp; DECLARE @SQL NVarChar(4000) = &#39;SELECT * FROM $$TableName WHERE (0 = 1) &#39;;&lt;br /&gt;&amp;nbsp; DECLARE @TableName NVarChar(1000) = (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT TOP 1 SchemaName + &#39;.&#39; + TableName FROM #T&lt;br /&gt;&amp;nbsp; );&lt;br /&gt;&amp;nbsp; SELECT @SQL = REPLACE(@SQL, &#39;$$TableName&#39;, @TableName);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; DECLARE @Cols NVarChar(4000) = &#39;&#39;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; SELECT&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Cols = COALESCE(@Cols + &#39;OR CONVERT(NVarChar(4000), &#39;, &#39;&#39;) + C.name + &#39;) = CONVERT(NVarChar(4000), &#39;&#39;$$MyValue&#39;&#39;) &#39;&lt;br /&gt;&amp;nbsp; FROM sys.columns C&lt;br /&gt;&amp;nbsp; WHERE C.object_id = OBJECT_ID(@TableName);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; SELECT @Cols = REPLACE(@Cols, &#39;$$MyValue&#39;, @MyValue);&lt;br /&gt;&amp;nbsp; SELECT @SQL = @SQL + @Cols;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; EXECUTE(@SQL);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; DELETE FROM #T&lt;br /&gt;&amp;nbsp; WHERE SchemaName + &#39;.&#39; + TableName = @TableName;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;DROP TABLE #T;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3436675318263347442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3436675318263347442&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3436675318263347442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3436675318263347442'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/05/how-to-find-string-from-whole-database.html' title='How to find a string from whole database?'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-5433104917392803811</id><published>2015-05-01T15:10:00.005+05:30</published><updated>2015-05-01T15:10:56.180+05:30</updated><title type='text'>How to get the row count for all tables in a SQL SERVER database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;CREATE TABLE #counts&lt;br /&gt;(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table_name varchar(255),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; row_count int&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;EXEC sp_MSForEachTable @command1=&#39;INSERT #counts (table_name, row_count) SELECT &#39;&#39;?&#39;&#39;, COUNT(*) FROM ?&#39;&lt;br /&gt;SELECT table_name, row_count FROM #counts ORDER BY table_name, row_count DESC&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/5433104917392803811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=5433104917392803811&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5433104917392803811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5433104917392803811'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/05/how-to-get-row-count-for-all-tables-in.html' title='How to get the row count for all tables in a SQL SERVER database'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-4186646956788417684</id><published>2015-05-01T11:54:00.002+05:30</published><updated>2015-05-01T11:54:13.541+05:30</updated><title type='text'>How to drop all the tables from any database ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;DECLARE @Sql NVARCHAR(500) DECLARE @Cursor CURSOR&lt;br /&gt;&lt;br /&gt;SET @Cursor = CURSOR FAST_FORWARD FOR&lt;br /&gt;SELECT DISTINCT sql = &#39;ALTER TABLE [&#39; + tc2.TABLE_NAME + &#39;] DROP [&#39; + rc1.CONSTRAINT_NAME + &#39;]&#39;&lt;br /&gt;FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc1&lt;br /&gt;LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc2 ON tc2.CONSTRAINT_NAME =rc1.CONSTRAINT_NAME&lt;br /&gt;&lt;br /&gt;OPEN @Cursor FETCH NEXT FROM @Cursor INTO @Sql&lt;br /&gt;&lt;br /&gt;WHILE (@@FETCH_STATUS = 0)&lt;br /&gt;BEGIN&lt;br /&gt;Exec SP_EXECUTESQL @Sql&lt;br /&gt;FETCH NEXT FROM @Cursor INTO @Sql&lt;br /&gt;END&lt;br /&gt;&lt;br /&gt;CLOSE @Cursor DEALLOCATE @Cursor&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;EXEC sp_MSForEachTable &#39;DROP TABLE ?&#39;&lt;br /&gt;GO&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/4186646956788417684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=4186646956788417684&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/4186646956788417684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/4186646956788417684'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/05/how-to-drop-all-tables-from-any-database.html' title='How to drop all the tables from any database ?'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-5059810013748861685</id><published>2015-03-24T14:11:00.004+05:30</published><updated>2015-03-24T14:11:52.040+05:30</updated><title type='text'>LINQ : Single, SingleOrDefault, First and FirstOrDefault</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2&gt;Single &lt;/h2&gt;Returns a single specific element from a collection of elements when  element match found. An exception is thrown, when none or more than one  match found for that element in the collection.&lt;br /&gt;  &lt;h2&gt;SingleOrDefault&lt;/h2&gt;Returns a single specific element from a collection of elements when  element match found. An exception is thrown, when more than one match  found for that element in the collection. A default value is returned, when no match is found for that element in the collection.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;First &lt;/h2&gt;Returns first specific element from a collection of elements when  one or more than one match found for that element. An exception is  thrown, when no match is found for that element in the collection.&lt;br /&gt;  &lt;h2&gt;FirstOrDefault &lt;/h2&gt;Returns first specific element from a collection of elements when  one or more than one match found for that element. A default value is  returned, when no match is found for that element in the collection.&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;When to use Single, SingleOrDefault, First and FirstOrDefault&lt;/h3&gt;&lt;br /&gt;  &lt;ol class=&quot;orderlist&quot;&gt;&lt;li&gt;If you want an exception to be thrown if the result set contains many records, use Single or SingleOrDefault. &lt;/li&gt;&lt;li&gt;If you want a default value is returned if the result set contains no record, use SingleOrDefault. &lt;/li&gt;&lt;li&gt;If you always want one record no matter what the result set contains, use First or FirstOrDefault.&lt;/li&gt;&lt;li&gt;If you want a default value if the result set contains no record, use FirstOrDefault.&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;Perfomance of SingleOrDefault and FirstOrDefault&lt;/h3&gt;FirstOrDefault usually perform faster as compared SingleOrDefault,  since it&#39;s iterate the collection until they find the first match.  While SingleOrDefault iterate the whole collection to find one single  match.  &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/5059810013748861685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=5059810013748861685&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5059810013748861685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5059810013748861685'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/03/linq-single-singleordefault-first-and.html' title='LINQ : Single, SingleOrDefault, First and FirstOrDefault'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-8858888998625516796</id><published>2015-02-17T10:17:00.002+05:30</published><updated>2015-02-17T10:17:23.209+05:30</updated><title type='text'>How to declare variable in php.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1. Start with a &quot;$&quot;&lt;br /&gt;2. Followed by letter or underscore&lt;br /&gt;3. Can contain letters, numbers, underscores or dashes&lt;br /&gt;4. No spaces&lt;br /&gt;5. Case sensitive&lt;br /&gt;&lt;br /&gt;Example : Variable names&lt;br /&gt;&lt;br /&gt;$item&lt;br /&gt;$Item&lt;br /&gt;$myVariable&lt;br /&gt;$this_variable&lt;br /&gt;$this-variable&lt;br /&gt;$product1&lt;br /&gt;$_book&lt;br /&gt;$__bookPage&lt;br /&gt;&lt;br /&gt;But, I recommend that do not use these from the above variable declaration&lt;br /&gt;$this-variable,&lt;br /&gt;$_book - Because php uses _ sign internally for many things&lt;br /&gt;$__bookPage&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/8858888998625516796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=8858888998625516796&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/8858888998625516796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/8858888998625516796'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2015/02/how-to-declare-variable-in-php.html' title='How to declare variable in php.'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-5412325002549703227</id><published>2014-06-02T12:32:00.004+05:30</published><updated>2014-06-02T12:32:40.568+05:30</updated><title type='text'>How to convert List to Datatable in vb.net</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Public Function ConvertToDataTable(Of T)(ByVal list As IList(Of T)) As DataTable&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim table As New DataTable()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim fields() As FieldInfo = GetType(T).GetFields()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each field As FieldInfo In fields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.Columns.Add(field.Name, field.FieldType)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each item As T In list&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim row As DataRow = table.NewRow()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each field As FieldInfo In fields&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; row(field.Name) = field.GetValue(item)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.Rows.Add(row)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return table&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/5412325002549703227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=5412325002549703227&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5412325002549703227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5412325002549703227'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2014/06/how-to-convert-list-to-datatable-in.html' title='How to convert List to Datatable in vb.net'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-6819276735714972371</id><published>2014-04-17T17:52:00.004+05:30</published><updated>2014-04-17T17:52:46.310+05:30</updated><title type='text'>How to parse json string to dataset in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;// Serialization of DataSet to json string&lt;br /&gt;                 StringWriter sw = new StringWriter();&lt;br /&gt;                versionUpGetData.WriteXml(sw, XmlWriteMode.WriteSchema);&lt;br /&gt;                XmlDocument xd = new XmlDocument();&lt;br /&gt;                xd.LoadXml(sw.ToString());&lt;br /&gt;                String jsonText = JsonConvert.SerializeXmlNode(xd);&lt;br /&gt;                File.WriteAllText(“d:/datasetJson.txt”,jsonText);&lt;br /&gt;&lt;br /&gt;   //Deserialization of Json String to DataSet&lt;br /&gt;                 XmlDocument xd1 = new XmlDocument();&lt;br /&gt;                xd1 = (XmlDocument)JsonConvert.DeserializeXmlNode(jsonText);&lt;br /&gt;                DataSet jsonDataSet = new DataSet();&lt;br /&gt;                jsonDataSet.ReadXml(new XmlNodeReader(xd1));&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/6819276735714972371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=6819276735714972371&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6819276735714972371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6819276735714972371'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2014/04/how-to-parse-json-string-to-dataset-in-c.html' title='How to parse json string to dataset in C#'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3404981021870895460</id><published>2014-02-10T11:00:00.000+05:30</published><updated>2014-02-10T11:00:04.893+05:30</updated><title type='text'>What is final class in Object Oriented Programming</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: #333333; font-family: Arial;&quot;&gt;Final  Class&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: Arial;&quot;&gt;: A class that    is defined as final class can not be inherited further. All Methods of a final    class are inherently final and must not be declared as final in the class    definition. Also, a final method can not be redefined further.&lt;br /&gt;   If only a method of a class is final then that class can be inherited but that    method cannot be redefined.&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3404981021870895460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3404981021870895460&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3404981021870895460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3404981021870895460'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2014/02/what-is-final-class-in-object-oriented.html' title='What is final class in Object Oriented Programming'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-415636050716856252</id><published>2013-11-24T10:08:00.000+05:30</published><updated>2013-11-24T10:08:10.106+05:30</updated><title type='text'>Install Skype on Ubuntu 12.04 LTS 64-bit</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;post-text&quot;&gt;&lt;strong&gt;For 32Bit&lt;/strong&gt; &lt;br /&gt;  Terminal Commands:&lt;br /&gt;  &lt;pre&gt;&lt;code&gt;wget  http://download.skype.com/linux/skype-ubuntu-lucid_4.2.0.11-1_i386.deb&lt;br /&gt;sudo dpkg -i skype-ubuntu-lucid_4.2.0.11-1_i386.deb&lt;br /&gt;sudo apt-get -f install;rm skype-ubuntu-lucid_4.2.0.11-1_i386.deb&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;div class=&quot;post-text&quot;&gt;&lt;strong&gt;For 64Bit&lt;/strong&gt; Terminal Commands:&lt;br /&gt;  &lt;pre&gt;&lt;code&gt;sudo dpkg --add-architecture i386&lt;br /&gt;sudo apt-get install ia32-libs&lt;br /&gt;sudo apt-get update&lt;br /&gt;wget http://download.skype.com/linux/skype-ubuntu-lucid_4.2.0.11-1_i386.deb&lt;br /&gt;sudo dpkg -i skype-ubuntu-lucid_4.2.0.11-1_i386.deb&lt;br /&gt;sudo apt-get -f install;rm skype-ubuntu-lucid_4.2.0.11-1_i386.deb&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;After all of this run in terminal &lt;code&gt;sudo apt-get install sni-qt:i386&lt;/code&gt;; This will restore the skype contact window&lt;br /&gt;  That&#39;s all, work done in maximum 5 minutes. I use Ubuntu on 64bit and this method to install Skype worked always perfectly.&lt;br /&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/415636050716856252/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=415636050716856252&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/415636050716856252'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/415636050716856252'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/11/install-skype-on-ubuntu-1204-lts-64-bit.html' title='Install Skype on Ubuntu 12.04 LTS 64-bit'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3709351137652077525</id><published>2013-09-13T15:35:00.003+05:30</published><updated>2013-09-13T15:35:34.407+05:30</updated><title type='text'>How to remove unused usings from class file ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span id=&quot;ctl00_ContentMain_BlogDetailControl1_LabelBlogDetail&quot;&gt;When we create a .cs file means code file class is automatically create. That .cs file means class has default usings for namespace.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id=&quot;ctl00_ContentMain_BlogDetailControl1_LabelBlogDetail&quot;&gt;&lt;span id=&quot;ctl00_ContentMain_BlogDetailControl1_LabelBlogDetail&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-language: HI;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; mso-bidi-language: HI;&quot;&gt; System;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;&lt;br /&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas;&quot;&gt; System.Collections.Generic;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-language: HI;&quot;&gt;&lt;br /&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; mso-bidi-language: HI;&quot;&gt; System.Linq;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-language: HI;&quot;&gt;&lt;br /&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; mso-bidi-language: HI;&quot;&gt; System.Web;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-language: HI;&quot;&gt;&lt;br /&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; mso-bidi-language: HI;&quot;&gt; System.Web.UI;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; mso-bidi-language: HI;&quot;&gt;&lt;br /&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; mso-bidi-language: HI;&quot;&gt; System.Web.UI.WebControls;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;We don&#39;t use all namespaces&amp;nbsp; in that class so we have to remove unused namespaces from file. We can remove&amp;nbsp; namespace manually but it takes time and need full knowledge of class library so we can use Visual Studio .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Step 1:&amp;nbsp; Right Click in .cs File.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Step 2:&amp;nbsp; Move on Organize usings&lt;b&gt;.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;Step 3: Click on Remove Unused Usings&lt;b&gt;.&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span id=&quot;ctl00_ContentMain_BlogDetailControl1_LabelBlogDetail&quot;&gt;After that we have only those namespaces in the file these are using.&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;/div&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3709351137652077525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3709351137652077525&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3709351137652077525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3709351137652077525'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/09/how-to-remove-unused-usings-from-class.html' title='How to remove unused usings from class file ?'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-6708550678301870125</id><published>2013-09-11T14:41:00.004+05:30</published><updated>2013-09-11T14:41:54.138+05:30</updated><title type='text'>Programatically create a table using c#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Table tbl = new Table();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl.ID = &quot;table1&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.Controls.Add(tbl);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int row = 0; row &amp;lt; 5; row++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableRow rw = new TableRow();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableCell cell = new TableCell();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label text = new Label();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text.Text = &quot;text&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell.Controls.Add(text);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rw.Cells.Add(cell);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tbl.Controls.Add(rw);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/6708550678301870125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=6708550678301870125&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6708550678301870125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6708550678301870125'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/09/programatically-create-table-using-c.html' title='Programatically create a table using c#'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-5723358625937820169</id><published>2013-09-09T11:35:00.005+05:30</published><updated>2013-09-09T11:35:52.375+05:30</updated><title type='text'>IIS 7.0 informational HTTP status codes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1xx - Informational&lt;br /&gt;These HTTP status codes indicate a provisional response. The client  computer receives one or more 1xx responses before the client computer  receives a regular response. &lt;br /&gt;&lt;br /&gt;IIS 7.0 uses the following informational HTTP status codes:&lt;br /&gt;100 - Continue.&lt;br /&gt;101 - Switching protocols.&lt;br /&gt;&lt;br /&gt;2xx - Success&lt;br /&gt;These HTTP status codes indicate that the server successfully accepted the request. &lt;br /&gt;&lt;br /&gt;IIS 7.0 uses the following success HTTP status codes:&lt;br /&gt;200 - OK. The client request has succeeded.&lt;br /&gt;201 - Created.&lt;br /&gt;202 - Accepted.&lt;br /&gt;203 - Nonauthoritative information.&lt;br /&gt;204 - No content.&lt;br /&gt;205 - Reset content.&lt;br /&gt;206 - Partial content.&lt;br /&gt;&lt;br /&gt;3xx - Redirection&lt;br /&gt;These HTTP status codes indicate that the client browser must take more  action to fulfill the request. For example, the client browser may have  to request a different page on the server. Or, the client browser may  have to repeat the request by using a proxy server. &lt;br /&gt;&lt;br /&gt;IIS 7.0 uses the following redirection HTTP status codes:&lt;br /&gt;301 - Moved permanently.&lt;br /&gt;302 - Object moved.&lt;br /&gt;304 - Not modified.&lt;br /&gt;307 - Temporary redirect.&lt;br /&gt;&lt;br /&gt;4xx - Client error&lt;br /&gt;These HTTP status codes indicate that an error occurred and that the  client browser appears to be at fault. For example, the client browser  may have requested a page that does not exist. Or, the client browser  may not have provided valid authentication information. &lt;br /&gt;&lt;br /&gt;IIS 7.0 uses the following client error HTTP status codes:&lt;br /&gt;400 - Bad request. The request could not be understood by the server due  to malformed syntax. The client should not repeat the request without  modifications.&lt;br /&gt;&lt;br /&gt;IIS 7.0 defines the following HTTP status codes that indicate a more specific cause of a 400 error:&lt;br /&gt;400.1 - Invalid Destination Header.&lt;br /&gt;400.2 - Invalid Depth Header.&lt;br /&gt;400.3 - Invalid If Header.&lt;br /&gt;400.4 - Invalid Overwrite Header.&lt;br /&gt;400.5 - Invalid Translate Header.&lt;br /&gt;400.6 - Invalid Request Body.&lt;br /&gt;400.7 - Invalid Content Length.&lt;br /&gt;400.8 - Invalid Timeout.&lt;br /&gt;400.9 - Invalid Lock Token.&lt;br /&gt;401 - Access denied.&lt;br /&gt;&lt;br /&gt;IIS 7.0 defines several HTTP status codes that indicate a more specific  cause of a 401 error. The following specific HTTP status codes are  displayed in the client browser but are not displayed in the IIS log:&lt;br /&gt;401.1 - Logon failed.&lt;br /&gt;401.2 - Logon failed due to server configuration.&lt;br /&gt;401.3 - Unauthorized due to ACL on resource.&lt;br /&gt;401.4 - Authorization failed by filter.&lt;br /&gt;401.5 - Authorization failed by ISAPI/CGI application.&lt;br /&gt;403 - Forbidden. &lt;br /&gt;&lt;br /&gt;IIS 7.0 defines the following HTTP status codes that indicate a more specific cause of a 403 error:&lt;br /&gt;403.1 - Execute access forbidden.&lt;br /&gt;403.2 - Read access forbidden.&lt;br /&gt;403.3 - Write access forbidden.&lt;br /&gt;403.4 - SSL required.&lt;br /&gt;403.5 - SSL 128 required.&lt;br /&gt;403.6 - IP address rejected.&lt;br /&gt;403.7 - Client certificate required.&lt;br /&gt;403.8 - Site access denied.&lt;br /&gt;403.9 - Forbidden: Too many clients are trying to connect to the Web server.&lt;br /&gt;403.10 - Forbidden: Web server is configured to deny Execute access.&lt;br /&gt;403.11 - Forbidden: Password has been changed.&lt;br /&gt;403.12 - Mapper denied access.&lt;br /&gt;403.13 - Client certificate revoked.&lt;br /&gt;403.14 - Directory listing denied.&lt;br /&gt;403.15 - Forbidden: Client access licenses have exceeded limits on the Web server.&lt;br /&gt;403.16 - Client certificate is untrusted or invalid.&lt;br /&gt;403.17 - Client certificate has expired or is not yet valid.&lt;br /&gt;403.18 - Cannot execute requested URL in the current application pool.&lt;br /&gt;403.19 - Cannot execute CGI applications for the client in this application pool.&lt;br /&gt;403.20 - Forbidden: Passport logon failed.&lt;br /&gt;403.21 - Forbidden: Source access denied.&lt;br /&gt;403.22 - Forbidden: Infinite depth is denied.&lt;br /&gt;404 - Not found. &lt;br /&gt;&lt;br /&gt;IIS 7.0 defines the following HTTP status codes that indicate a more specific cause of a 404 error:&lt;br /&gt;404.0 - Not found.&lt;br /&gt;404.1 - Site Not Found.&lt;br /&gt;404.2 - ISAPI or CGI restriction.&lt;br /&gt;404.3 - MIME type restriction.&lt;br /&gt;404.4 - No handler configured.&lt;br /&gt;404.5 - Denied by request filtering configuration.&lt;br /&gt;404.6 - Verb denied.&lt;br /&gt;404.7 - File extension denied.&lt;br /&gt;404.8 - Hidden namespace.&lt;br /&gt;404.9 - File attribute hidden.&lt;br /&gt;404.10 - Request header too long.&lt;br /&gt;404.11 - Request contains double escape sequence.&lt;br /&gt;404.12 - Request contains high-bit characters.&lt;br /&gt;404.13 - Content length too large.&lt;br /&gt;404.14 - Request URL too long.&lt;br /&gt;404.15 - Query string too long.&lt;br /&gt;404.16 - DAV request sent to the static file handler.&lt;br /&gt;404.17 - Dynamic content mapped to the static file handler via a wildcard MIME mapping.&lt;br /&gt;404.18 - Querystring sequence denied.&lt;br /&gt;404.19 - Denied by filtering rule.&lt;br /&gt;405 - Method Not Allowed.&lt;br /&gt;406 - Client browser does not accept the MIME type of the requested page.&lt;br /&gt;408 - Request timed out.&lt;br /&gt;412 - Precondition failed.&lt;br /&gt;5xx - Server error&lt;br /&gt;These HTTP status codes indicate that the server cannot complete the request because the server encounters an error.&lt;br /&gt;&lt;br /&gt;IIS 7.0 uses the following server error HTTP status codes:&lt;br /&gt;500 - Internal server error. &lt;br /&gt;&lt;br /&gt;IIS 7.0 defines the following HTTP status codes that indicate a more specific cause of a 500 error:&lt;br /&gt;500.0 - Module or ISAPI error occurred.&lt;br /&gt;500.11 - Application is shutting down on the Web server.&lt;br /&gt;500.12 - Application is busy restarting on the Web server.&lt;br /&gt;500.13 - Web server is too busy.&lt;br /&gt;500.15 - Direct requests for Global.asax are not allowed.&lt;br /&gt;500.19 - Configuration data is invalid.&lt;br /&gt;500.21 - Module not recognized.&lt;br /&gt;500.22 - An ASP.NET httpModules configuration does not apply in Managed Pipeline mode.&lt;br /&gt;500.23 - An ASP.NET httpHandlers configuration does not apply in Managed Pipeline mode.&lt;br /&gt;500.24 - An ASP.NET impersonation configuration does not apply in Managed Pipeline mode.&lt;br /&gt;500.50 - A rewrite error occurred during RQ_BEGIN_REQUEST notification  handling. A configuration or inbound rule execution error occurred.&lt;br /&gt;Note Here is where the distributed rules configuration is read for both inbound and outbound rules.&lt;br /&gt;500.51 - A rewrite error occurred during GL_PRE_BEGIN_REQUEST  notification handling. A global configuration or global rule execution  error occurred.&lt;br /&gt;Note Here is where the global rules configuration is read.&lt;br /&gt;500.52 - A rewrite error occurred during RQ_SEND_RESPONSE notification handling. An outbound rule execution occurred.&lt;br /&gt;500.53 - A rewrite error occurred during RQ_RELEASE_REQUEST_STATE  notification handling. An outbound rule execution error occurred. The  rule is configured to be executed before the output user cache gets  updated.&lt;br /&gt;500.100 - Internal ASP error.&lt;br /&gt;501 - Header values specify a configuration that is not implemented.&lt;br /&gt;502 - Web server received an invalid response while acting as a gateway or proxy. &lt;br /&gt;&lt;br /&gt;IIS 7.0 defines the following HTTP status codes that indicate a more specific cause of a 502 error:&lt;br /&gt;502.1 - CGI application timeout.&lt;br /&gt;502.2 - Bad gateway.&lt;br /&gt;503 - Service unavailable. &lt;br /&gt;&lt;br /&gt;IIS 7.0 defines the following HTTP status codes that indicate a more specific cause of a 503 error:&lt;br /&gt;503.0 - Application pool unavailable.&lt;br /&gt;503.2 - Concurrent request limit exceeded. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/5723358625937820169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=5723358625937820169&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5723358625937820169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5723358625937820169'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/09/iis-70-informational-http-status-codes.html' title='IIS 7.0 informational HTTP status codes'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-7430763019143450759</id><published>2013-08-21T11:09:00.003+05:30</published><updated>2013-08-21T17:41:13.776+05:30</updated><title type='text'>Amulyam.in</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;You can win free mobile recharge with playing games and contests through Amulyam. Go with this link and sign up with amulyam. &lt;a href=&quot;http://www.amulyam.in/signup.do?id=380259a3-5ffe-4730-b89c-61a8f0c0ee2d&quot;&gt;Amulyam.in&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/7430763019143450759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=7430763019143450759&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/7430763019143450759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/7430763019143450759'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/08/amulyamin.html' title='Amulyam.in'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3314071726383092035</id><published>2013-07-17T19:13:00.002+05:30</published><updated>2013-07-17T19:16:28.324+05:30</updated><title type='text'>Free download IT e-books</title><content type='html'>&lt;a href=&quot;http://www.it-ebooks.info&quot;&gt;IT e-books&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3314071726383092035/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3314071726383092035&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3314071726383092035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3314071726383092035'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/07/free-download-it-e-books.html' title='Free download IT e-books'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-2228169974838991376</id><published>2013-07-10T10:33:00.002+05:30</published><updated>2013-07-10T10:38:21.810+05:30</updated><title type='text'>Top 50 ASP.Net Interview Questions &amp; Answers</title><content type='html'>&lt;strong&gt;1. What is ASP.Net?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;It is a framework developed by Microsoft on which we can develop new generation web sites using web forms(aspx), MVC, HTML, Javascript, CSS etc. Its successor of Microsoft Active Server Pages(ASP). Currently there is ASP.NET 4.0, which is used to develop web sites. There are various page extensions provided by Microsoft that are being used for web site development. Eg: aspx, asmx, ascx, ashx, cs, vb, html, xml etc.&lt;span id=&quot;more-123&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;2. What’s the use of Response.Output.Write()?&lt;/strong&gt;&amp;nbsp;We can write formatted output&amp;nbsp; using Response.Output.Write().&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;3. In which event of page cycle is the ViewState available?&lt;/strong&gt;&amp;nbsp;&amp;nbsp; After the Init() and before the Page_Load().&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;4. What is the difference between Server.Transfer and Response.Redirect? &amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;In Server.Transfer page processing transfers from&amp;nbsp;one page&amp;nbsp;to the other page without making a round-trip back to the client’s browser.&amp;nbsp; This provides a faster response with a little less overhead on the server.&amp;nbsp; The clients&amp;nbsp;url history&amp;nbsp;list or current url Server does not update in case of Server.Transfer.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Response.Redirect is used to redirect the user’s browser&amp;nbsp;to another page or site.&amp;nbsp; It performs trip back to the client where the client’s browser is redirected to the new page.&amp;nbsp; The user’s browser history list is updated to reflect the new address.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;5. From which base class all Web Forms are inherited?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Page class.&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&lt;br&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;6. What are the different validators in ASP.N&lt;/strong&gt;&lt;strong&gt;ET?&lt;/strong&gt;&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;Required field Validator&lt;/li&gt;&lt;li&gt;Range &amp;nbsp;Validator&lt;/li&gt;&lt;li&gt;Compare Validator&lt;/li&gt;&lt;li&gt;Custom Validator&lt;/li&gt;&lt;li&gt;Regular expression Validator&lt;/li&gt;&lt;li&gt;Summary Validator&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;7. Which validator control you use if you need to make sure the values in two different controls matched?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Compare Validator control.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;8. What is ViewState?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;ViewState is used to retain the state of server-side objects between page post backs.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;9. Where the viewstate is stored after the page postback?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;ViewState is stored in a hidden field on the page at client side.&amp;nbsp; ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;10. How long the items in ViewState exists?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;They exist for the life of the current page.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;11. What are the different Session state management options available in ASP.NET?&lt;/strong&gt;&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;In-Process&lt;/li&gt;&lt;li&gt;Out-of-Process.&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;In-Process&lt;/strong&gt;&amp;nbsp;stores the session in memory on the web server.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;Out-of-Process&lt;/strong&gt;&amp;nbsp;Session state management stores data in an external server.&amp;nbsp; The external server may be either a SQL Server or a State Server.&amp;nbsp; All objects stored in session are required to be serializable for Out-of-Process state management.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;12. How you can add an event handler?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;Using&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;the Attributes property of server side control.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;e.g.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;btnSubmit.Attributes.Add(“onMouseOver”,”JavascriptCode();”)&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;13. What is caching?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Caching is a technique used to increase performance by keeping&amp;nbsp;frequently accessed data or files in memory. The request for a cached file/data will be accessed from cache instead of actual location of that file.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;14. What are the different types of caching?&lt;/strong&gt;&lt;br&gt;ASP.NET has 3 kinds of caching :&lt;/div&gt;&lt;ol style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;Output Caching,&lt;/li&gt;&lt;li&gt;Fragment Caching,&lt;/li&gt;&lt;li&gt;Data Caching.&lt;/li&gt;&lt;/ol&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;15. Which type if caching will be used if we want to cache the portion of a page instead of whole page?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;Fragment Caching:&lt;/strong&gt;&amp;nbsp;It caches the portion of the&amp;nbsp;page generated by the request. For that, we can create user controls with the below code:&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[xml]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;%@ OutputCache Duration=”120″ VaryByParam=”CategoryID;SelectedID”%&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/xml]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;16. List the events in page life cycle.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;1) Page_PreInit&lt;br&gt;2) Page_Init&lt;br&gt;3) Page_InitComplete&lt;br&gt;4) Page_PreLoad&lt;br&gt;5) Page_Load&lt;br&gt;6) Page_LoadComplete&lt;br&gt;7) Page_PreRender&lt;br&gt;8)Render&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;b&gt;17&lt;/b&gt;.&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;Can we have a web application running without web.Config file?&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;Yes&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&lt;br&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;18. Is it possible to create web application with both webforms and mvc?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Yes. We have to include below mvc assembly references in the web forms application to create hybrid application.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;System.Web.Mvc&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;System.Web.Razor&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;System.ComponentModel.DataAnnotations&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;19&lt;/strong&gt;.&amp;nbsp;&lt;strong&gt;Can we add code files of different languages in App_Code folder?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&amp;nbsp;No. The code files must be in same language to be kept in App_code folder.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;20. What is Protected Configuration?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;It is a feature used to secure connection string information.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;21. Write code to send e-mail from an ASP.NET application?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[csharp]&lt;br&gt;MailMessage mailMess = new MailMessage ();&lt;br&gt;mailMess.From = “abc@gmail.com”;&lt;br&gt;mailMess.To = “xyz@gmail.com”;&lt;br&gt;mailMess.Subject = “Test email”;&lt;br&gt;mailMess.Body = “Hi This is a test mail.”;&lt;br&gt;SmtpMail.SmtpServer = “localhost”;&lt;br&gt;SmtpMail.Send (mailMess);&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;MailMessage and SmtpMail are classes defined System.Web.Mail namespace.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;22. How can we prevent browser from caching an ASPX page?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;We can SetNoStore on HttpCachePolicy object exposed by the Response object’s Cache property:&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[csharp]&lt;br&gt;Response.Cache.SetNoStore ();&lt;br&gt;Response.Write (DateTime.Now.ToLongTimeString ());&lt;br&gt;[/csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;23. What is the good practice to implement validations in aspx page?&lt;/strong&gt;&lt;br&gt;Client-side validation is the best way to validate data of a web page. It reduces the network traffic and saves server resources.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;24. What are the event handlers that we can have in Global.asax file?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&lt;br&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;Application Events:&lt;/strong&gt;&amp;nbsp;Application_Start , Application_End, Application_AcquireRequestState, Application_AuthenticateRequest, Application_AuthorizeRequest, Application_BeginRequest, Application_Disposed,&amp;nbsp; Application_EndRequest, Application_Error, Application_PostRequestHandlerExecute, Application_PreRequestHandlerExecute,&lt;br&gt;Application_PreSendRequestContent, Application_PreSendRequestHeaders, Application_ReleaseRequestState, Application_ResolveRequestCache, Application_UpdateRequestCache&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;Session Events:&lt;/strong&gt;&amp;nbsp;Session_Start,Session_End&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;25. Which protocol is used to call a Web service?&lt;/strong&gt;&lt;br&gt;HTTP Protocol&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;26. Can we have multiple web config files for an asp.net application?&lt;/strong&gt;&lt;br&gt;Yes.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;27. What is the difference between web config and machine config?&lt;/strong&gt;&lt;br&gt;Web config file is specific to a web application where as machine config is specific to a machine or server. There can be multiple web config files into an application where as we can have only one machine config file on a server.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;28.&amp;nbsp; Explain role based security ?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;Role Based Security used to implement security based on roles assigned to user groups in the organization.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Then we can allow or deny users based on their role in the organization. Windows defines several built-in groups, including Administrators, Users, and Guests.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[xml]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;AUTHORIZATION&amp;gt;&amp;lt; authorization &amp;gt;&lt;br&gt;&amp;lt; allow roles=”Domain_Name\Administrators” / &amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt; !– Allow Administrators in domain. — &amp;gt;&lt;br&gt;&amp;lt; deny users=”*”&amp;nbsp; / &amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; !– Deny anyone else. — &amp;gt;&lt;br&gt;&amp;lt; /authorization &amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/xml]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;29. What is Cross Page Posting?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;When we click submit button on a web page, the page post the data to the same page. The technique in which we post the data to different pages is called Cross Page posting. This can be achieved by setting POSTBACKURL property of&amp;nbsp; the button that causes the postback. Findcontrol method of PreviousPage can be used to get the posted values on the page to which the page has been posted.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;30. How can we apply Themes to an asp.net application?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;We can specify the theme in web.config file. Below is the code example to apply theme:&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[xml]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;system.web&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;pages theme=”Windows7″ /&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;/system.web&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&amp;lt;/configuration&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/xml]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;31: What is RedirectPermanent in ASP.Net?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;RedirectPermanent Performs a permanent redirection from the requested URL to the specified URL. Once the redirection is done, it also returns 301 Moved Permanently responses.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;32: What is MVC?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;MVC is a framework used to create web applications. The web application base builds on&amp;nbsp; Model-View-Controller pattern which separates the application logic from UI, and the input and events from the user will be controlled by the Controller.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;33. Explain the working of passport authentication.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;First of all it checks passport authentication cookie. If the cookie is not available then the application redirects the user to Passport Sign on page. Passport service authenticates the user details on sign on page and if valid then stores the authenticated cookie on client machine and then redirect the user to requested page&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;34. What are the advantages of Passport authentication?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;All the websites can be accessed using single login credentials. So no need to remember login credentials for each web site.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Users can maintain his/ her information in a single location.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;35. What are the asp.net Security Controls?&lt;/strong&gt;&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;&amp;lt;asp:Login&amp;gt;: Provides a standard login capability that allows the users to enter their credentials&lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;&amp;lt;asp:LoginName&amp;gt;: Allows you to display the name of the logged-in user&lt;/li&gt;&lt;li&gt;&amp;lt;asp:LoginStatus&amp;gt;: Displays whether the user is authenticated or not&lt;/li&gt;&lt;li&gt;&amp;lt;asp:LoginView&amp;gt;: Provides various login views depending on the selected template&lt;/li&gt;&lt;li&gt;&amp;lt;asp:PasswordRecovery&amp;gt;: &amp;nbsp;email the users their lost password&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;36: How do you register JavaScript for webcontrols ?&lt;/strong&gt;&lt;br&gt;We can register javascript for controls using &amp;lt;CONTROL -name&amp;gt;Attribtues.Add(scriptname,scripttext) method.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;37.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;In which event are the controls fully loaded?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Page load event.&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;38:&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;what is boxing and unboxing?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Boxing is assigning a value type to reference type variable.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Unboxing is reverse of boxing ie. Assigning reference type variable to value type variable.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;39. Differentiate strong typing and weak typing&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;In strong typing, the data types of variable are checked at compile time. On the other hand, in case of weak typing the variable data types are checked at runtime. In case of strong typing, there is no chance of compilation error. Scripts use weak typing and hence issues arises at runtime.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;40. How we can force all the validation controls to run?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;The&amp;nbsp;&lt;em&gt;Page.Validate()&lt;/em&gt;&amp;nbsp;method is used to force all the validation controls to run and to perform validation.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;41. List all templates of the Repeater control.&lt;/strong&gt;&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;&lt;em&gt;ItemTemplate&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;AlternatingltemTemplate&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;SeparatorTemplate&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;HeaderTemplate&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;FooterTemplate&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;42.&lt;/strong&gt;&amp;nbsp;&lt;strong&gt;List the major built-in objects in ASP.NET?&lt;/strong&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;&lt;ul style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px;&quot;&gt;&lt;li&gt;&lt;em&gt;Application&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Request&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Response&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Server&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Context&lt;/em&gt;&lt;/li&gt;&lt;li&gt;&lt;em&gt;Trace&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;43.&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;What is the appSettings Section in the&amp;nbsp;&lt;em&gt;web.config&lt;/em&gt;&amp;nbsp;file?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;The&amp;nbsp;&lt;em&gt;appSettings&lt;/em&gt;&amp;nbsp;block in web config file sets the user-defined values for the whole application.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;For example, in the following code snippet, the specified&amp;nbsp;&lt;em&gt;ConnectionString&lt;/em&gt;&amp;nbsp;section is used throughout the project for database connection:&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[csharp]&lt;br&gt;&amp;lt;em&amp;gt;&amp;lt;configuration&amp;gt;&lt;br&gt;&amp;lt;appSettings&amp;gt;&lt;br&gt;&amp;lt;add key=”ConnectionString” value=”server=local; pwd=password; database=default” /&amp;gt;&lt;br&gt;&amp;lt;/appSettings&amp;gt;&amp;lt;/em&amp;gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;[/csharp]&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;&lt;em&gt;44.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;&lt;strong&gt;Which data type does the&amp;nbsp;&lt;em&gt;RangeValidator&lt;/em&gt;&amp;nbsp;control support?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;The data types supported by the&amp;nbsp;&lt;em&gt;RangeValidator&lt;/em&gt;&amp;nbsp;control are Integer, Double, String, Currency, and Date.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;45. What is the difference between an&amp;nbsp;&lt;em&gt;HtmlInputCheckBox&lt;/em&gt;&amp;nbsp;control and an&lt;em&gt;HtmlInputRadioButton&lt;/em&gt;&amp;nbsp;control?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;In&amp;nbsp;&lt;em&gt;HtmlInputCheckBoxcontrol,&amp;nbsp;&lt;/em&gt;multiple item selection is possible whereas in&lt;em&gt;&amp;nbsp;&lt;em&gt;HtmlInputRadioButton&lt;/em&gt;&amp;nbsp;&lt;/em&gt;controls, we can select only single item from the group of items.&lt;em&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;46. Which namespaces are necessary to create a localized application?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;em&gt;System.Globalization&lt;/em&gt;&lt;em&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;em&gt;System.Resources&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;em&gt;&lt;br&gt;&lt;/em&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;47. What are the different types of cookies in ASP.NET?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;Session Cookie&lt;/strong&gt;&amp;nbsp;– Resides on the client machine for a single session until the user does not log out.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;Persistent Cookie&lt;/strong&gt;&amp;nbsp;– Resides on a user’s machine for a period specified for its expiry, such as 10 days, one month, and never.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;48. What is the file extension of web service?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;Web services have file extension .asmx..&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;49. What are the components of ADO.NET?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;The components of ADO.Net are Dataset, Data Reader, Data Adaptor, Command, connection.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;&lt;strong&gt;50. What is the difference between ExecuteScalar and ExecuteNonQuery?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #777777; font-family: &#39;Droid Sans&#39;, arial, sans-serif; font-size: 15px; line-height: 24px;&quot;&gt;ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/2228169974838991376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=2228169974838991376&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/2228169974838991376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/2228169974838991376'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/07/top-50-aspnet-interview-questions.html' title='Top 50 ASP.Net Interview Questions &amp; Answers'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-9142772456624211532</id><published>2013-04-10T12:58:00.002+05:30</published><updated>2013-04-13T10:30:22.050+05:30</updated><title type='text'>How to create Captcha in ASP.NET </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;1. Create one page with name &quot;Captcha.aspx&quot;&lt;br /&gt;&lt;br /&gt;2. No any control require in this page&lt;br /&gt;3. Go to Captcha.aspx.vb write the below code&lt;br /&gt;&lt;br /&gt;Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;create object of Bitmap Class and set its width and height.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objBMP As Bitmap = New Bitmap(180, 51)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;Create Graphics object and assign bitmap object to graphics&#39; object.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objGraphics As Graphics = Graphics.FromImage(objBMP)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objGraphics.Clear(Color.White)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objFont As Font = New Font(&quot;arial&quot;, 30, FontStyle.Bold)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;genetating random 6 digit random number&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim randomStr As String = GeneratePassword()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;set this random number in session&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session.Add(&quot;randomStr&quot;, randomStr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Session.Add(&quot;randomStrCountry&quot;, randomStr)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objGraphics.DrawString(randomStr, objFont, Brushes.Black, 2, 2)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Response.ContentType = &quot;image/GIF&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objBMP.Save(Response.OutputStream, ImageFormat.Gif)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objFont.Dispose()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objGraphics.Dispose()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objBMP.Dispose()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Function GeneratePassword() As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; Below code describes how to create random numbers.some of the digits and letters&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39; are ommited because they look same like &quot;i&quot;,&quot;o&quot;,&quot;1&quot;,&quot;0&quot;,&quot;I&quot;,&quot;O&quot;.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim allowedChars As String = &quot;a,b,c,d,e,f,g,h,j,k,m,n,p,q,r,s,t,u,v,w,x,y,z,&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowedChars += &quot;A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z,&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; allowedChars += &quot;2,3,4,5,6,7,8,9&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sep() As Char = {&quot;,&quot;c}&lt;br /&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7611458711449465946&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim arr() As String = allowedChars.Split(sep)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim passwordString As String = &quot;&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim temp As String&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rand As Random = New Random()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim i As Integer&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 To 5 - 1 Step i + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = arr(rand.Next(0, arr.Length))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passwordString += temp&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return passwordString&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4. Use this page in you aspx page like this&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=7611458711449465946&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;Captcha.aspx&quot; style=&quot;cursor: move; height: 60px; width: 200px;&quot; &lt;/a&gt;&lt;/div&gt;//&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;your textbox to insert code by user.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/9142772456624211532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=9142772456624211532&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/9142772456624211532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/9142772456624211532'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/04/how-to-create-captcha-in-aspnet.html' title='How to create Captcha in ASP.NET '/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-9021362683951620787</id><published>2013-04-04T18:40:00.005+05:30</published><updated>2013-04-04T18:40:59.639+05:30</updated><title type='text'>How to delete duplicate records in sql without using temporary table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;kwd&quot;&gt;DELETE&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;table&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;IN&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;table&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;GROUP&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;BY&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;HAVING&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; COUNT&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(*)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;AND&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;NOT&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; id &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;IN&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; min&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;table&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;GROUP&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;BY&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; name&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/9021362683951620787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=9021362683951620787&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/9021362683951620787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/9021362683951620787'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/04/how-to-delete-duplicate-records-in-sql.html' title='How to delete duplicate records in sql without using temporary table'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-5654311060106010786</id><published>2013-03-18T13:36:00.000+05:30</published><updated>2013-03-18T13:36:41.089+05:30</updated><title type='text'>How to delete duplicate records from table in sql server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;DELETE&lt;br /&gt;FROM TableName&lt;br /&gt;WHERE ID NOT IN&lt;br /&gt;(&lt;br /&gt;SELECT MAX(ID)&lt;br /&gt;FROM TableName&lt;br /&gt;GROUP BY ColumnName)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/5654311060106010786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=5654311060106010786&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5654311060106010786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/5654311060106010786'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/03/how-to-delete-duplicate-records-from.html' title='How to delete duplicate records from table in sql server'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-6913786372074964172</id><published>2013-01-02T18:01:00.005+05:30</published><updated>2013-01-02T18:04:29.562+05:30</updated><title type='text'>The connection was reset error 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;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Under system web in web.config&lt;/div&gt;&lt;div style=&quot;background-color: white; border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;add this line..&lt;/div&gt;&lt;div style=&quot;border: 0px; clear: both; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; line-height: 18px; margin-bottom: 1em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;&lt;/div&gt;&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin-bottom: 10px; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto;&quot;&gt;&lt;code style=&quot;background-color: white; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;system.web&amp;gt;&lt;system .web=&quot;.web&quot;&gt;&lt;br /&gt;&lt;/system&gt;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;httpruntime span=&quot;span&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;httpRuntime &lt;httpruntime font=&quot;font&quot;&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;executionTimeout&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;999&quot;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;atn&quot; style=&quot;border: 0px; color: red; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;maxRequestLength&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;atv&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&quot;2097151&quot;&lt;/span&gt;&lt;span class=&quot;tag&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/httpruntime&gt;&lt;/span&gt;&lt;/httpruntime&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/6913786372074964172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=6913786372074964172&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6913786372074964172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6913786372074964172'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2013/01/the-connection-was-reset-error-in-aspnet.html' title='The connection was reset error in asp.net'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-4106928349109143454</id><published>2012-03-03T08:27:00.002+05:30</published><updated>2012-03-03T08:27:45.690+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft .NET Web Programming:  Web Sites versus Web Applications"/><title type='text'>Microsoft .NET Web Programming:  Web Sites versus Web Applications</title><content type='html'>In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x&lt;br /&gt;&lt;br /&gt;The Web Site is a file/folder based Project structure.  It is designed such that pages are not compiled until they are requested (&quot;on demand&quot;).  The advantages to the Web Site are:&lt;br /&gt;      1) It is designed to accommodate non-.NET Applications&lt;br /&gt;      2) Deployment is as simple as copying files to the target server&lt;br /&gt;      3) Any portion of the Web Site can be updated without requiring recompilation of the entire Site.&lt;br /&gt;&lt;br /&gt;The Web Application is a .dll-based Project structure.  ASP.NET pages and supporting files are compiled into assemblies that are then deployed to the target server.  Advantages of the Web Application are:&lt;br /&gt;      1) Precompiled files do not expose code to an attacker&lt;br /&gt;      2) Precompiled files run faster because they are binary data (the Microsoft Intermediate Language, or MSIL) executed by the CLR (Common Language Runtime)&lt;br /&gt;      3) References, assemblies, and other project dependencies are built in to the compiled site and automatically managed.  They do not need to be manually deployed and/or registered in the Global Assembly Cache:  deployment does this for you&lt;br /&gt;&lt;br /&gt;If you are planning on using automated build and deployment, such as the Team Foundation Server Team Build engine, you will need to have your code in the form of a Web Application.  If you have a Web Site, it will not properly compile as a Web Application would.  However, all is not lost:  it is possible to work around the issue by adding a Web Deployment Project to your Solution and then:&lt;br /&gt;  a) configuring the Web Deployment Project to precompile your code; and &lt;br /&gt;  b) configuring your Team Build definition to use the Web Deployment Project as its source for compilation.&lt;br /&gt;&lt;br /&gt;https://msevents.microsoft.com/cui/WebCastEventDetails.aspx?culture=en-US&amp;EventID=1032380764&amp;CountryCode=US</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/4106928349109143454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=4106928349109143454&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/4106928349109143454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/4106928349109143454'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2012/03/microsoft-net-web-programming-web-sites.html' title='Microsoft .NET Web Programming:  Web Sites versus Web Applications'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-6992263431848702914</id><published>2012-03-01T22:32:00.000+05:30</published><updated>2012-03-01T22:32:48.179+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linq Tutorial"/><title type='text'>Linq Tutorial</title><content type='html'>Microsoft LINQ Tutorials&lt;br /&gt;http://www.deitel.com/ResourceCenters/Programming/MicrosoftLINQ/Tutorials/tabid/2673/Default.aspx&lt;br /&gt;&lt;br /&gt;Introducing C# 3 – Part 4  LINQ&lt;br /&gt;http://www.programmersheaven.com/2/CSharp3-4&lt;br /&gt;&lt;br /&gt;101 LINQ Samples&lt;br /&gt;http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx&lt;br /&gt;&lt;br /&gt;What is LinQ&lt;br /&gt;http://www.dotnetspider.com/forum/173039-what-linq-net.aspx&lt;br /&gt;&lt;br /&gt;Beginners Guides&lt;br /&gt;http://www.progtalk.com/viewarticle.aspx?articleid=68&lt;br /&gt;http://www.programmersheaven.com/2/CSharp3-4&lt;br /&gt;http://dotnetslackers.com/articles/csharp/introducinglinq1.aspx&lt;br /&gt;&lt;br /&gt;Using Linq&lt;br /&gt;http://weblogs.asp.net/scottgu/archive/2006/05/14/446412.aspx&lt;br /&gt;&lt;br /&gt;Step By Step Articles&lt;br /&gt;http://www.codeproject.com/KB/linq/linqtutorial.aspx&lt;br /&gt;http://www.codeproject.com/KB/linq/linqtutorial2.aspx&lt;br /&gt;http://www.codeproject.com/KB/linq/linqtutorial3.aspx</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/6992263431848702914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=6992263431848702914&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6992263431848702914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/6992263431848702914'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2012/03/linq-tutorial.html' title='Linq Tutorial'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7611458711449465946.post-3254814922999445648</id><published>2012-02-12T08:06:00.001+05:30</published><updated>2012-02-12T08:06:14.376+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript Alert Message from code behind in ASP.NET"/><title type='text'>Javascript Alert Message from code behind in ASP.NET</title><content type='html'>public static void ShowAlertMessage(string error)&lt;br /&gt; {&lt;br /&gt; &lt;br /&gt;    Page page = HttpContext.Current.Handler as Page;&lt;br /&gt;    if (page != null)&lt;br /&gt;    {&lt;br /&gt;        error = error.Replace(&quot;&#39;&quot;, &quot;\&#39;&quot;);&lt;br /&gt;        ScriptManager.RegisterStartupScript(page, page.GetType(), &quot;err_msg&quot;, &quot;alert(&#39;&quot; + error + &quot;&#39;);&quot;, true);&lt;br /&gt;    }&lt;br /&gt; }</content><link rel='replies' type='application/atom+xml' href='http://samirbhogaytas.blogspot.com/feeds/3254814922999445648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7611458711449465946&amp;postID=3254814922999445648&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3254814922999445648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7611458711449465946/posts/default/3254814922999445648'/><link rel='alternate' type='text/html' href='http://samirbhogaytas.blogspot.com/2012/02/javascript-alert-message-from-code.html' title='Javascript Alert Message from code behind in ASP.NET'/><author><name>Samir R. Bhogayta</name><uri>https://plus.google.com/115906436211893515555</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-Osh8fAyKYxw/AAAAAAAAAAI/AAAAAAAAA9Y/LWjqcF4szA4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>