<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-8429811272251488873</atom:id><lastBuildDate>Sun, 08 Sep 2024 18:07:12 +0000</lastBuildDate><category>Dotnet FAQ</category><title>Dot net Interview Question and Answers</title><description>It contains Asp.net,C#.net,Vb.net,Sql server FAQ&#39;s.</description><link>http://dotnet-interview-qa.blogspot.com/</link><managingEditor>noreply@blogger.com (Venkat)</managingEditor><generator>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-5644418283885225514</guid><pubDate>Sat, 04 May 2013 07:07:00 +0000</pubDate><atom:updated>2013-05-04T00:07:20.295-07:00</atom:updated><title>Difference between Session and Cookies</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Sessions&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;It is used to store user information in server memory. Usually it stores userid, name etc.. sensitive information stored in session and it will maintain its state when you navigate through a website.&amp;nbsp; You can store the session information either in cookies or cookieless mode.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;If cookieless = false, session value stored in cookies, if it true it will be stored in the browser URL. but if you copy the URL and paste in another tab of&amp;nbsp; the same browser the session will be expired.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;You can store the session in three modes&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In-Proc&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;State server&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;SQL server &lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;u&gt;Example&lt;/u&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;pre class=&quot;lang-cs prettyprint&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;Session[&quot;userName&quot;] = &quot;Ganesh Ram&quot;;

if(Session[&quot;UserName&quot;] != null)
  lblUserName.Text = Session[&quot;UserName&quot;].ToString();&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-cs prettyprint&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Cookies&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms178194.aspx&quot;&gt;Cookies&lt;/a&gt;
 are stored per-user on the users machine. A cookie is usually just a 
bit of information. Cookies are usually used for simple user settings 
colours preferences etc. &lt;b&gt;No sensitive information should ever be stored in a cookie.&lt;/b&gt;&lt;/span&gt; &lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;You can never fully trust that a cookie has not been tampered with by
 a user or outside source however if security is a big concern and you 
must use cookies then you can either encrypt your cookies or set them to
 only be transmitted over SSL. A user can clear there cookies at any 
time or not allow cookies altogether so you cannot count on them being 
there just because I user has visited your site in the past.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;lang-cs prettyprint&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;//add a username Cookie
Response.Cookies[&quot;UserName&quot;].Value = &quot;&lt;/code&gt;&lt;code&gt;Ganesh Ram&lt;/code&gt;&lt;code&gt;&quot;;
Response.Cookies[&quot;UserName&quot;].Expires = DateTime.Now.AddDays(10);

//request a username cookie
if(Request.Cookies[&quot;UserName&quot;] != null)
   lblUserName.Text = Server.HtmlEncode(Request.Cookies[&quot;UserName&quot;].Value);&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-cs prettyprint&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</description><link>http://dotnet-interview-qa.blogspot.com/2013/05/difference-between-session-and-cookies.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-65190368195453106</guid><pubDate>Sat, 04 May 2013 06:39:00 +0000</pubDate><atom:updated>2013-05-03T23:49:59.869-07:00</atom:updated><title>Difference between Clustered index and Non-Clustered index</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Indexing&amp;nbsp; is way to sort and search 
records in the table. It will improve the speed of locating and 
retrieval of records from the table&lt;/span&gt; &lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In SQL there are two types of index.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;1. Clustered index&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;2. Non-Clustered index.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;Clustered index &lt;/b&gt;is unique for any given table
 and we can have only one clustered index on a table. The leaf level of a
 clustered index is the actual data and the data is resorted in case of 
clustered index.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
Whereas in case of&lt;b&gt; non-clustered index&lt;/b&gt; the leaf level is actually a 
pointer to the data in rows so we can have as many non-clustered indexes
 as we can on the db&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In SQL 2005&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Clustered index - 1 Clustered index&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Non-Clustered index - 249 Non-Clustered index &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In SQL 2008&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Clustered index - 1 Clustered index&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Non-Clustered index - 999 Non-Clustered index&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;u&gt;&lt;b&gt;Example&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;v11&quot; id=&quot;ContentPlaceHolder1_lblResultTable&quot; style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;USE Sample&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE Employee&lt;br /&gt;(ID&amp;nbsp; bigint PRIMARY KEY CLUSTERED,&lt;br /&gt;Name nvarchar(150),&lt;br /&gt;Address nvarchar(250),&lt;br /&gt;Salary varchar(25) )&lt;br /&gt;GO&lt;br /&gt;CREATE NONCLUSTERED INDEX EmpName ON Employee(Name)&lt;br /&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://dotnet-interview-qa.blogspot.com/2013/05/difference-between-clustered-index-and.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-3689949825345557063</guid><pubDate>Thu, 21 Oct 2010 17:58:00 +0000</pubDate><atom:updated>2010-10-21T10:58:30.286-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Define Stored procedure ?</title><description>It is a collection of transact sql statements that can take or return user supplied parameters.&lt;br /&gt;
&lt;br /&gt;
Maximum size of stored procedure is 128 MB.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/define-stored-procedure.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-8153990796332317309</guid><pubDate>Thu, 21 Oct 2010 17:57:00 +0000</pubDate><atom:updated>2010-10-21T10:57:54.876-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Difference between Having and Group By clause ?</title><description>Having Clause : To filter the rows from the grouped results&lt;br /&gt;
&lt;br /&gt;
Group By : is used for grouping the operation.&lt;br /&gt;
&lt;br /&gt;
Group by : Ccause&amp;nbsp; is used to group the output of the WHERE clause..</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/difference-between-having-and-group-by.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-5617867866053512381</guid><pubDate>Thu, 21 Oct 2010 17:56:00 +0000</pubDate><atom:updated>2010-10-21T10:56:45.809-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Define View ?</title><description>It is nothing but a virtual table that represent the data in one or more tables in a alternative way.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/define-view.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-8087505382296435253</guid><pubDate>Thu, 21 Oct 2010 17:55:00 +0000</pubDate><atom:updated>2010-10-21T10:56:14.761-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>What is index ?</title><description>Index is a pointer in sql server to retrieve the data faster from database.&lt;br /&gt;
&lt;br /&gt;
It’s a physical structure containing pointers to data. &lt;br /&gt;
&lt;br /&gt;
Its created in existing tables to locate rows more quickly and efficiently.&lt;br /&gt;
&lt;br /&gt;
Types of Index:&lt;br /&gt;
&lt;br /&gt;
a)&amp;nbsp;&amp;nbsp;&amp;nbsp; Clustered Index : It contains only one index ie: Creating a primary key for the table.&lt;br /&gt;
Physical sorting of data in the storage media.&lt;br /&gt;
&lt;br /&gt;
b)&amp;nbsp;&amp;nbsp;&amp;nbsp; Non-Clustered Index :&amp;nbsp; A table can contains 249 non-clustered index, It can be created outside of the database tables , that contain a sorted list of references to the table itself.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/what-is-index.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-36319363407655582</guid><pubDate>Thu, 21 Oct 2010 17:54:00 +0000</pubDate><atom:updated>2010-10-21T10:54:55.370-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Define Delegates ?</title><description>Delegate is&amp;nbsp; a class that can hold reference to a method or a function .&lt;br /&gt;
&lt;br /&gt;
Delegate class has a signature and it only reference those method whose signature is compliant with the class.&lt;br /&gt;
&lt;br /&gt;
Delegates are type safe , secure , object oriented.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/define-delegates.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-4178143128266144842</guid><pubDate>Thu, 21 Oct 2010 17:54:00 +0000</pubDate><atom:updated>2010-10-21T10:54:02.428-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Difference b/w int.Parse and Convert.ToInt32()?</title><description>Int.Parse – It can’t handle NULL value.&lt;br /&gt;
&lt;br /&gt;
Convert.ToInt32 – It handles null value and converts value to default value ‘0’.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/difference-bw-intparse-and.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-5876882150300112239</guid><pubDate>Thu, 21 Oct 2010 17:53:00 +0000</pubDate><atom:updated>2010-10-21T10:53:28.070-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>What is Finalize and Dispose ?</title><description>Finalize:&amp;nbsp; - Automatically done by garbage collector&amp;nbsp; to clean the resource memory.&lt;br /&gt;
&lt;br /&gt;
Dispose: - Force the user to dispose objects.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/what-is-finalize-and-dispose.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-853528981435428848</guid><pubDate>Thu, 21 Oct 2010 17:52:00 +0000</pubDate><atom:updated>2010-10-21T10:52:49.305-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Boxing and Unboxing ?</title><description>Boxing:&lt;br /&gt;
&lt;br /&gt;
Implicit conversion of any value type to the type object.&lt;br /&gt;
Value types are stored on stack.&lt;br /&gt;
Reference or object type are stored on heap.&lt;br /&gt;
&lt;br /&gt;
Unboxing:&lt;br /&gt;
&lt;br /&gt;
Explicit conversion from object type to value type.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/boxing-and-unboxing.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-7002026065240552695</guid><pubDate>Thu, 21 Oct 2010 17:52:00 +0000</pubDate><atom:updated>2010-10-21T10:52:05.899-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Reflection ?</title><description>You can see the metadata information through reflection mechanism.&lt;br /&gt;
&lt;br /&gt;
Ability to inspect and manipulate programs elements at runtime.&lt;br /&gt;
&lt;br /&gt;
It’s the process of runtime type discovery.&lt;br /&gt;
&lt;br /&gt;
Reflection Services:&lt;br /&gt;
&lt;br /&gt;
Load an assembly at runtime.&lt;br /&gt;
Enumerate members of a type.&lt;br /&gt;
Instantiate a new object.&lt;br /&gt;
Execute the members of an object.&lt;br /&gt;
Find out the information about a type .&lt;br /&gt;
Find out the information about a assembly&lt;br /&gt;
Inspect custome attributes applied to a type.&lt;br /&gt;
Create and compile new assembly.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/reflection.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-3079954522978350534</guid><pubDate>Thu, 21 Oct 2010 17:50:00 +0000</pubDate><atom:updated>2010-10-21T10:51:19.319-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>What is Session ?</title><description>Session is used to store user details particularly userid and user information so once you set the information&amp;nbsp; in session you can get the data anywhere in the project .&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
Syntax:&lt;br /&gt;
&lt;br /&gt;
Session[“username”] = “Venkat”;&lt;br /&gt;
&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/what-is-session.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-3703470825025727408</guid><pubDate>Thu, 21 Oct 2010 17:49:00 +0000</pubDate><atom:updated>2010-10-21T10:49:19.138-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>How to write stored procedure – give syntax ?</title><description>Create Procedue &amp;lt;procedureName&amp;gt;&lt;br /&gt;
(&lt;br /&gt;
Your parameter&lt;br /&gt;
)&lt;br /&gt;
As &lt;br /&gt;
Begin &lt;br /&gt;
&amp;lt; your Sql Statement&amp;gt;&lt;br /&gt;
End</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/how-to-write-stored-procedure-give.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-4778292119779541139</guid><pubDate>Thu, 21 Oct 2010 17:48:00 +0000</pubDate><atom:updated>2010-10-21T10:48:22.472-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>To create a new Guid?</title><description>Guid getnewID = Guid.NewGuid();</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/to-create-new-guid.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-3521194719584163039</guid><pubDate>Thu, 21 Oct 2010 17:46:00 +0000</pubDate><atom:updated>2010-10-21T10:46:57.959-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Difference between timestamp and uniqueidentifier ?</title><description>TimeStamp:&lt;br /&gt;
&lt;br /&gt;
Size – 8 bytes.&lt;br /&gt;
Note based on system date or time&lt;br /&gt;
To track the operation in tables on the database level.&lt;br /&gt;
&lt;br /&gt;
Uniqueidentifier&lt;br /&gt;
&lt;br /&gt;
16 – bytes.&lt;br /&gt;
Value is based on the computer MAC Addresss and system datetime.&lt;br /&gt;
It remains unique in any system in the world.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/difference-between-timestamp-and.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-3086373605097128055</guid><pubDate>Thu, 21 Oct 2010 17:46:00 +0000</pubDate><atom:updated>2010-10-21T10:46:20.420-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>How to convert from string to GUID ?</title><description>String mystring = “xxxx-xxxx-xxxx-xxxx”;&lt;br /&gt;
&lt;br /&gt;
Guid = new Guid(mystring);&lt;br /&gt;
&lt;br /&gt;
Newid() = Globally unique identifier &lt;br /&gt;
&lt;br /&gt;
NewSequentialId() – Globally sequential identifier</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/how-to-convert-from-string-to-guid.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-3502273563661420216</guid><pubDate>Thu, 21 Oct 2010 17:45:00 +0000</pubDate><atom:updated>2010-10-21T10:45:25.057-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Where the session is stored ?</title><description>&amp;lt;sessionState&amp;nbsp; mode =”InProc” cookieless=”False” timeout=”20”/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default Cookieless is set to false – so the session Id is stored in Cookies so as long as user navigating the page you can get the session from cookies. &lt;br /&gt;
&lt;br /&gt;
If you set the cookieless =”True” the session id is stored on the browser url before the file name&lt;br /&gt;
&lt;br /&gt;
Ex: http://yourserver/folder/(sessionid)/default.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Drawback is if the user working on the site it has assigned some sessionId on the url&amp;nbsp; , by giving the different url on Address bar and do some process once the user type same url at that time it will give different sessionid, the previous session will be lost and lost all of previous state.&lt;/div&gt;&lt;br /&gt;
Default timeout for session is 20 Mins.&lt;br /&gt;
&lt;br /&gt;
Default timeout for Form authentication 30 Mins.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/where-session-is-stored.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-8891089116404140157</guid><pubDate>Thu, 21 Oct 2010 17:44:00 +0000</pubDate><atom:updated>2010-10-21T10:44:29.070-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>How to display the Name on Email to address</title><description>EX:&lt;br /&gt;
&lt;br /&gt;
MailMessage msg = new MailMessage();&lt;br /&gt;
&lt;br /&gt;
Msg.from = new mailAddress(“youraddress@gmail.com”, “Test”);</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/6-how-to-display-name-on-email-to.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-6215093505286434443</guid><pubDate>Thu, 21 Oct 2010 17:43:00 +0000</pubDate><atom:updated>2010-10-21T10:43:41.893-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Form authentication Configuration</title><description>&amp;lt;authentication mode=”forms”&amp;gt;&lt;br /&gt;
&amp;lt;forms name =”.ASPXAUTH” login url=”login.aspx” protection=”All” timeout=”30” path=”/”/&amp;gt;&lt;br /&gt;
&amp;lt;/authentication&amp;gt;</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/form-authentication-configuration.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-6473666933612918217</guid><pubDate>Thu, 21 Oct 2010 17:42:00 +0000</pubDate><atom:updated>2010-10-21T10:42:28.136-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>How to keep the session alive?</title><description>&amp;lt;sessionState timeout=”20” mode=”InProc” /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By default&amp;nbsp; slidingexpiration is enabled = “true” so when the momen postback occurs or user utilizing the controls, session timeout&amp;nbsp; counter is refreshed so the session remains active.</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/how-to-keep-session-alive.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-8046573787879682590</guid><pubDate>Thu, 21 Oct 2010 17:41:00 +0000</pubDate><atom:updated>2010-10-21T10:41:04.438-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>To get the Username from the masterPage while using login Control ?</title><description>String username = Page.User.Identity.Name;</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/to-get-username-from-masterpage-while.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-5943741225118933248</guid><pubDate>Thu, 21 Oct 2010 17:40:00 +0000</pubDate><atom:updated>2010-10-21T10:40:25.846-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>How to get  a random row  from a table in SQL server ?</title><description>Select Top 1 columName from Tablename Order by newid()</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/how-to-get-random-row-from-table-in-sql.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-8232138116528212209</guid><pubDate>Thu, 21 Oct 2010 17:34:00 +0000</pubDate><atom:updated>2010-10-21T10:35:41.416-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>How  to get the last inserted ID from the table ?</title><description>There are two ways to get the ID of the last inserted record.&lt;br /&gt;
@Identity()&lt;br /&gt;
@Scope_Identity()&lt;br /&gt;
&lt;br /&gt;
EX: &lt;br /&gt;
String&amp;nbsp; Squlquery = “insert into tablename(categoryname) values (@categoryname);”&amp;nbsp; + “Select&amp;nbsp; Scope_Identity()”;&lt;br /&gt;
&lt;br /&gt;
So use ExecuteScalar to get the ID of the last inserted Record.&lt;br /&gt;
&lt;br /&gt;
Int getLastID = (int) cmd.ExecuteScalar();</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/how-to-get-last-inserted-id-from-table.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-8429811272251488873.post-5122260431419372980</guid><pubDate>Sat, 02 Oct 2010 19:17:00 +0000</pubDate><atom:updated>2010-10-12T03:26:58.298-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Dotnet FAQ</category><title>Post Interview Question</title><description>Pos your Interview Question ..here..&lt;br /&gt;
&lt;br /&gt;
In the&lt;u&gt; comment box&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
you will get the answer for your question soon.&lt;br /&gt;
&lt;br /&gt;
Thanks</description><link>http://dotnet-interview-qa.blogspot.com/2010/10/testing.html</link><author>noreply@blogger.com (Venkat)</author><thr:total>5</thr:total></item></channel></rss>