<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" gd:etag="W/&quot;D08CQXg8eyp7ImA9WhdTEU0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029</id><updated>2011-07-07T23:17:40.673-07:00</updated><category term="Crystal Reports" /><category term="LINQ" /><category term="Dotnet Remoting" /><category term="User Controls" /><category term="ADO.Net Interview Questions" /><category term="Asp.Net" /><category term="ASP.NET Interview Questions" /><category term="Validation Controls" /><category term="Web Services" /><category term="DataGrid" /><category term="N-Tier Architecture" /><category term="DropDown List" /><category term=".Net FrameWork Interview Questions" /><category term="Regular Expression" /><category term="Smart Clients Applications" /><category term="Ajax" /><category term="Serialization" /><category term="SqlServer Interview Questions" /><category term="ListView" /><category term="ADO.NET" /><title>Dotnet Source Code</title><subtitle type="html">Dotnet Source Code : dotnet,Dotnet,DotnetSourceCode,Dotnet SourceCode,dotnet sourcecode,dotnet code,dotnet interview quesions,dotnet projects,Dotnet Interview Questions,Dotnet Programing,dotnet programing</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>195</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/DotnetSourcecode-Dotnetprogramingdudeblogspotcom" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="dotnetsourcecode-dotnetprogramingdudeblogspotcom" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DkMHQ3gyfip7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-8703364548774527802</id><published>2009-11-21T03:53:00.001-08:00</published><updated>2009-11-21T03:53:52.696-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.696-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is a Typed Dataset in ADO.NET? Why do we use a Typed DataSet? What is the difference between a Typed and an UnTyped DataSet?</title><content type="html">Typed DataSet - When a created DataSet derives from the DataSet class, that applies the information contained in the XSD to create a Typed class, this DataSet is said to be a Typed Dataset. Information from the schema whic comprises the tables, columns, and rows is created and compiled to a new DataSet derived from the XSD. The Typed DataSet class features all functionality of the DataSet class. This may be used with methods that take an instance of the DataSet class as a parameter.&lt;br /&gt;
&lt;br /&gt;
Note that an UnTyped DataSet does not have any schema. It is exposed simply as a mere collection.&lt;br /&gt;
&lt;br /&gt;
How to create a Typed DataSet? -&lt;br /&gt;
Write click your project in the Solution Explorer.&lt;br /&gt;
Click Add New Item.&lt;br /&gt;
Select DataSet.&lt;br /&gt;
&lt;br /&gt;
This adds a new XSD to the project. The schema created may be viewed as an XML. When this xsd file is compiled, two files are created by Visual Studio. The first file that contains the .vb or .cs extension contains the information about the proxy class. This class contains methods &amp; properties that are required to access the database&lt;br /&gt;
data. The second file has an extension xsx and this contains information about the layout of the XSD.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-8703364548774527802?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/8703364548774527802/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-typed-dataset-in-adonet-why-do.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/8703364548774527802?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/8703364548774527802?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-typed-dataset-in-adonet-why-do.html" title="What is a Typed Dataset in ADO.NET? Why do we use a Typed DataSet? What is the difference between a Typed and an UnTyped DataSet?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3gyfyp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-363727885793146189</id><published>2009-11-21T03:52:00.003-08:00</published><updated>2009-11-21T03:53:52.697-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.697-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is Diffgram in ADO.NET? When do we use Diffgram?</title><content type="html">A DiffGram is an XML format. It is used to identify current and original versions of data elements. A DataSet may use a DiffGram format to load and persist the contents, and further to serialize its contents for porting across a network connection. Whenever a DataSet is written as a DiffGram, the DataSet populates the DiffGram with all the important information to accurately recreate the contents. Note that schema of the DataSet is not recreated. This includes column values from both the Current and the Original row versions, row error information, and row order.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-363727885793146189?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/363727885793146189/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-diffgram-in-adonet-when-do-we.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/363727885793146189?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/363727885793146189?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-diffgram-in-adonet-when-do-we.html" title="What is Diffgram in ADO.NET? When do we use Diffgram?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3gyfyp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-3293509188298455741</id><published>2009-11-21T03:52:00.001-08:00</published><updated>2009-11-21T03:53:52.697-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.697-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is DataRelation object in ADO.NET? How to use a DataRelation between two columns in ADO.NET?</title><content type="html">In order to set the relationship between two or more than two columns, ADO.NET provides the DataRelation class. When a DataRelation object is created, it assists to enforce some constraints on the relationships between columns. The constraint may be like a Unique constraint that ensures that a column will have no duplicate value in the table. A Foreign Key constraint may be used to enforce Referential Integrity. The Unique property may be set by setting the Unique property of a DataColumn to True. This may also be done by adding an instance of the UniqueConstraint class to the DataRelation object. As a part of the foreign key constraint, we may specify referential integrity rules that are applied at 3 places&lt;br /&gt;
&lt;br /&gt;
1) When a parent record is updated&lt;br /&gt;
2) When a parent record is deleted&lt;br /&gt;
3) When a change is rejected or accepted.&lt;br /&gt;
&lt;br /&gt;
A DataRelation object permits to establish a parent-child relationship between two or more tables inside a DataSet object. The easiest way to create a DataRelation between two tables in a DataSet is to setup a primary key - foreign key relationship between the columns of a table.&lt;br /&gt;
&lt;br /&gt;
See code example below, where a DataRelation has been setup between the Employee table and the Salary table...&lt;br /&gt;
&lt;br /&gt;
'Code Below in VB.NET&lt;br /&gt;
Dim Conn As SqlConnection&lt;br /&gt;
Dim da As SqlDataAdapter&lt;br /&gt;
Dim ds As DataSet&lt;br /&gt;
Dim RowParent As DataRow&lt;br /&gt;
Dim RowChild As DataRow&lt;br /&gt;
&lt;br /&gt;
Conn = New _&lt;br /&gt;
SqlConnection(ConfigurationSettings.Appsettings("SomeConnectionStringWrittenInWeb.Config"))&lt;br /&gt;
da = New SqlDataAdapter("SELECT * FROM Employees", Conn)&lt;br /&gt;
ds = New DataSet()&lt;br /&gt;
&lt;br /&gt;
Try&lt;br /&gt;
   Conn.Open()&lt;br /&gt;
   da.Fill( ds,"Employees")&lt;br /&gt;
   da.SelectCommand = New SqlCommand("SELECT * FROM Salary", Conn)&lt;br /&gt;
   da.Fill(ds, "Salary")&lt;br /&gt;
Catch ex As SqlException&lt;br /&gt;
   Response.Write(ex.ToString())&lt;br /&gt;
Finally&lt;br /&gt;
   Conn.Dispose()&lt;br /&gt;
End Try&lt;br /&gt;
&lt;br /&gt;
'Next, Let us create a Data Relationship&lt;br /&gt;
ds.Relations.Add("Employee_Salary", ds.Tables("Employees").Columns("EmployeeID"), _&lt;br /&gt;
ds.Tables("Salary").Columns("EmployeeID"))&lt;br /&gt;
'Display the Employee and Child Salary in the Form&lt;br /&gt;
'Say we have a Label in the form&lt;br /&gt;
For each RowParent in ds.Tables("Employees").Rows&lt;br /&gt;
&lt;br /&gt;
   lblRelation.Text &amp;= RowParent("Emp_Name")&lt;br /&gt;
   For each RowChild in RowParent.GetChildRows("Employee_Salary")&lt;br /&gt;
     lblRelation.Text &amp;= "&lt;br/&gt;" &amp; RowChild("Sal_Amount")&lt;br /&gt;
   Next&lt;br /&gt;
Next&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-3293509188298455741?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/3293509188298455741/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-datarelation-object-in-adonet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/3293509188298455741?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/3293509188298455741?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-datarelation-object-in-adonet.html" title="What is DataRelation object in ADO.NET? How to use a DataRelation between two columns in ADO.NET?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3gycCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-674891454578240126</id><published>2009-11-21T03:51:00.004-08:00</published><updated>2009-11-21T03:53:52.698-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.698-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is a DataView in ADO.NET?</title><content type="html">DataView - Just like we have Views in SQL (in our backend), we have DataView object in ADO.NET. A dataview object represents bindable, customized view of a DataTable object. Operations like Sorting, Filtering, Searching, Editing and Navigation may be performed on a DataView object. In scenarios like retrieval of a subset of data from a Datatable, we may make use of DataViews to get this data. Note that the DefaultView property of a DataTable returns the Default data view for the DataTable. In case a custom view of a DataTable has to be created on a DataView, then the RowFilter property of the DataView is set to the DefaultView.&lt;br /&gt;
&lt;br /&gt;
A dataview may also be used to sort data that resides in it in ascending or descending order. Below is code on how to sort data in a dataview in ascending or descending order...&lt;br /&gt;
&lt;br /&gt;
DataView objdv = new DataView();&lt;br /&gt;
objdv.Sort("ColumnName Asc|Desc");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-674891454578240126?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/674891454578240126/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-dataview-in-adonet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/674891454578240126?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/674891454578240126?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-dataview-in-adonet.html" title="What is a DataView in ADO.NET?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3gycCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-1900137197655959570</id><published>2009-11-21T03:51:00.002-08:00</published><updated>2009-11-21T03:53:52.698-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.698-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is a SqlCommandBuilder in ADO.NET</title><content type="html">SqlCommandBuilder class in ADO.NET provides the feature of reflecting the changes made to a DataSet or an instance of the SQL server data. When an instance of the SqlCommandBuilder class is created, it automatically generates Transact-SQL statements for the single table updates that occur. The object of the SqlCommandBuilder acts as a listener for RowUpdating events, whenever the DataAdapter property is set.&lt;br /&gt;
&lt;br /&gt;
The SqlCommandBuilder object automatically generates the values contained within the SqlDataAdapter's InsertCommand, UpdateCommand and DeleteCommand properties based on the initial SelectCommand. The advantage here is that you will not need to write SqlCommand &amp; SqlParameter Types explicitly.&lt;br /&gt;
&lt;br /&gt;
Basically the command builder object builds these objects on the fly. The command builder object actually reads the metadata of the method called. After the builder object reads the underlying schema of the adapter's method, it autogenerates an underlying insert, update &amp; delete command object. See code example below...&lt;br /&gt;
&lt;br /&gt;
//Code below in C#...&lt;br /&gt;
DataSet ds = new DataSet();&lt;br /&gt;
SqlConnection cn = new SqlConnection("strSomeConnectionString");&lt;br /&gt;
//Autogenerate Insert, Update &amp; Delete commands&lt;br /&gt;
SqlDataAdapter da = new SqlDataAdapter("Select from t_Something", cn);&lt;br /&gt;
SqlCommandBuilder scb = new SqlCommand(da);&lt;br /&gt;
&lt;br /&gt;
//Fill the dataset&lt;br /&gt;
da.Fill(ds,"t_Something");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-1900137197655959570?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/1900137197655959570/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-sqlcommandbuilder-in-adonet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1900137197655959570?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1900137197655959570?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-sqlcommandbuilder-in-adonet.html" title="What is a SqlCommandBuilder in ADO.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3gycSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-859253560736757364</id><published>2009-11-21T03:51:00.000-08:00</published><updated>2009-11-21T03:53:52.699-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.699-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is SelectCommand in ADO.NET?</title><content type="html">Select Command Property - This property is used to hold the SQL command that is used to retrieve data from the data source. The CommandText and Connection are properties of the Select Command propety. CommandType is also a property of Select Command. See example below...&lt;br /&gt;
&lt;br /&gt;
Dim da as new SqlDataAdapter&lt;br /&gt;
da.SelectCommand = New SqlCommand( )&lt;br /&gt;
With da.SelectCommand&lt;br /&gt;
.Connection = objConnection&lt;br /&gt;
.CommandText = "select * from employees"&lt;br /&gt;
End With&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-859253560736757364?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/859253560736757364/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-selectcommand-in-adonet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/859253560736757364?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/859253560736757364?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-selectcommand-in-adonet.html" title="What is SelectCommand in ADO.NET?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3gycSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-1578138195525683444</id><published>2009-11-21T03:50:00.002-08:00</published><updated>2009-11-21T03:53:52.699-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.699-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is a command object in ADO.NET. How to use a command object in .NET?</title><content type="html">ADO.NET Command Object - The Command object is similar to the old ADO command object. It is used to store SQL statements that need to be executed against a data source. The Command object can execute SELECT statements, INSERT, UPDATE, or DELETE statements, stored procedures, or any other statement understood by the database. See sample code...&lt;br /&gt;
&lt;br /&gt;
'Code below in VB.NET&lt;br /&gt;
...&lt;br /&gt;
Dim ObjCom as SqlClient.SqlCommand&lt;br /&gt;
ObjCom.SqlConnection(strCon)&lt;br /&gt;
ObjCom.Connection.Open()&lt;br /&gt;
ObjCom.CommandText = "Select * from tblSample"&lt;br /&gt;
ObjCom.ExecuteNonQuery()&lt;br /&gt;
&lt;br /&gt;
SqlCommand objects are not used much when we use datasets and data adapters. Following are some properties of the SqlCommand class...&lt;br /&gt;
&lt;br /&gt;
Connection Property - This property contains data about the connection string. It must be set on the SqlCommand object before it is executed. For the command to execute properly, the connection must be open at the time of execution.&lt;br /&gt;
&lt;br /&gt;
CommandText Property - This property specifies the SQL string or the Stored Procedure.&lt;br /&gt;
&lt;br /&gt;
objCom.CommandText = "Insert into Employees (empid, empname) values ('EMI0334','Mandy')"&lt;br /&gt;
&lt;br /&gt;
Paramaters Collection - If we want to update values in the Employees table above, but we do not know the values at design time, we make use of placeholders. These are variables prefixed with "@" symbol. Our code will look like this...&lt;br /&gt;
&lt;br /&gt;
objCom.CommandText = "Insert into Employees (empid, empname) values (@empid, @empname)&lt;br /&gt;
&lt;br /&gt;
Next, we have to create parameters that will be used to insert values into the placeholders. For this, we need to add parameters to the parameters collection of the SqlCommand object. This is done so that the values added through the parameters collection &amp; placeholders get i ncluded in the SQL statement. Here, parameters mean the parameters to be passed to the SQL statement/Stored Procedures, not the method's parameters.&lt;br /&gt;
&lt;br /&gt;
In order to add parameters to the SqlCommand object, we write the following code...&lt;br /&gt;
&lt;br /&gt;
objCom.CommandText = "Insert into Employees (empid, empname) values (@empid, @empname)"&lt;br /&gt;
&lt;br /&gt;
objCom.Parameters.Add("@empID", txtempid.text)&lt;br /&gt;
&lt;br /&gt;
objCom.Parameters.Add("@empname", txtempname.text)&lt;br /&gt;
&lt;br /&gt;
ExecuteNonQuery Method - Once the connection is open, we run the query in the SqlCommand object using the ExecuteNonQuery method. This is very simple as shown below...&lt;br /&gt;
&lt;br /&gt;
objConnection.Open()&lt;br /&gt;
objCom.ExecuteNonQuery()&lt;br /&gt;
objConnection.Close()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-1578138195525683444?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/1578138195525683444/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-command-object-in-adonet-how-to.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1578138195525683444?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1578138195525683444?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-command-object-in-adonet-how-to.html" title="What is a command object in ADO.NET. How to use a command object in .NET?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3k7eCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-5952671355153338206</id><published>2009-11-21T03:50:00.000-08:00</published><updated>2009-11-21T03:53:52.700-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.700-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is a connection object in ADO.NET? How to connect to a database in .Net?</title><content type="html">A Connection object in ADO.NET is used to establish a connection between a program (the program may be a windows page, a web page, a windows service, a web service etc.) and the database. The connection is open just long enough to get or update data. By quickly opening, then closing a connection, the server resources are used as little as possible. See code below on how to open a connection between UI and database...&lt;br /&gt;
&lt;br /&gt;
'Code below in VB.NET ...&lt;br /&gt;
Dim objectConn as SqlClient.SqlConnection&lt;br /&gt;
Dim strConn as String&lt;br /&gt;
Try&lt;br /&gt;
'First, create a connection object&lt;br /&gt;
objectConn=New SqlClient.SqlConnection()&lt;br /&gt;
&lt;br /&gt;
'Next, build the Connection String&lt;br /&gt;
strConn &amp;="Data Source=(local&lt;br /&gt;
strConn &amp;="Initial Catalog=DatabaseName;"&lt;br /&gt;
strConn &amp;= "User ID=admin;"&lt;br /&gt;
strConn &amp;= "Password=;"&lt;br /&gt;
&lt;br /&gt;
'Note here that the connection string may also be passed as a parameter&lt;br /&gt;
'to the connection string object during instantiation&lt;br /&gt;
&lt;br /&gt;
objectConn.ConnectionString = strConn&lt;br /&gt;
objectConn.Open() 'Open the Connection&lt;br /&gt;
&lt;br /&gt;
'The connection is now open&lt;br /&gt;
'Write your vb.net code here for operations on the database&lt;br /&gt;
objectConn.Close()&lt;br /&gt;
&lt;br /&gt;
Catch Ex As Exception&lt;br /&gt;
MessageBox.Show(Ex.Message)&lt;br /&gt;
End Try&lt;br /&gt;
&lt;br /&gt;
CONNECTION STRINGS FOR ACCESS, SQL 2000, SQL 2005, Oracle, MySQL&lt;br /&gt;
&lt;br /&gt;
What are Connection Strings - A connection string has a group of semi-colon-separated attributes. Every .Net Data Provider connection string looks different, depending on the type of .NET Data Provider you need to use and which attributes are set for each different type of database system. An example, the connection string below is an example of what you use to connect to a local SQL Server. See that every parameter is separated by a semicolon.&lt;br /&gt;
&lt;br /&gt;
Data Source=(local);Initial Catalog=Northwind;User ID=sa;Password=;&lt;br /&gt;
&lt;br /&gt;
The connection string shown below is an example of how to connect to a Microsoft Access 2000 database using the OleDbConnection object in System.Data.OleDb.&lt;br /&gt;
&lt;br /&gt;
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\Northwind.mdb&lt;br /&gt;
&lt;br /&gt;
Parameters in a Connection String - The parameters depend on the data provider is being used.&lt;br /&gt;
&lt;br /&gt;
Server - The name of the SQL Server to which connection has to be established through ADO.NET. This is the name of the system that is running SQL server. We may use "local" or "localhost" for local computer. In case we are using named instances of SQL server, then the parameter would contain the computer name, followed by a backslash, followed by a named instance of the SQL server.&lt;br /&gt;
&lt;br /&gt;
Database - The name of the database to which connection is to be established.&lt;br /&gt;
&lt;br /&gt;
User ID - A user ID configured in the SQL Server by the SQL Server administrator.&lt;br /&gt;
&lt;br /&gt;
Password - As the attribute name suggests, this is the password associated with the user id.&lt;br /&gt;
&lt;br /&gt;
Note that connection string may also contain the Windows NT account security settings. This is done by passing the paramater "integrated security=true".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-5952671355153338206?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/5952671355153338206/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-connection-object-in-adonet-how.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/5952671355153338206?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/5952671355153338206?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-connection-object-in-adonet-how.html" title="What is a connection object in ADO.NET? How to connect to a database in .Net?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;DkMHQ3k7eCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-8848920496099388314</id><published>2009-11-21T03:49:00.000-08:00</published><updated>2009-11-21T03:53:52.700-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:53:52.700-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADO.NET" /><title>What is ADO.NET?</title><content type="html">ADO.NET is a part of the Microsoft .NET Framework. This framework provides the set of classes that deal with data communication between various layers of the software architecture and the database. It provides a continious access to different data source types such as SQL Server versions 7, 2000, 2005. It also provides connectivity options to data sources through OLE DB and XML. Connectivity may be established with other databases like Oracle, MySQL etc. as well.&lt;br /&gt;
&lt;br /&gt;
ADO.NET has the ability to separate data access mechanisms, data manipulation mechanisms and data connectivity mechanisms.&lt;br /&gt;
&lt;br /&gt;
ADO.NET introduces along with it the disconnected architecture. In a disconncted architecture, data may be stored in a DataSet. It contains providers for connecting to databases, commands for execution and retrieval of results.&lt;br /&gt;
&lt;br /&gt;
The classes for ADO.NET are stored in the DLL System.Data.dll.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-8848920496099388314?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/8848920496099388314/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-adonet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/8848920496099388314?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/8848920496099388314?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/11/what-is-adonet.html" title="What is ADO.NET?" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHc8cCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-6666044704193311748</id><published>2009-10-13T02:21:00.003-07:00</published><updated>2009-11-21T03:41:21.978-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.978-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is a bubbled event in ASP.NET server side controls</title><content type="html">Bubbling an Event&lt;br /&gt;
The ASP.NET page framework provides a technique called event bubbling that allows a child control to propagate events up its containment hierarchy. Event bubbling enables events to be raised from a more convenient location in the controls hierarchy and allows event handlers to be attached to the original control as well as to the control that exposes the bubbled event. &lt;br /&gt;
&lt;br /&gt;
Event bubbling is used by the data-bound controls (Repeater, DataList, and DataGrid) to expose command events raised by child controls (within item templates) as top-level events. While ASP.NET server controls in the .NET Framework use event bubbling for command events (events whose event data class derives from CommandEventArgs), any event defined on a server control can be bubbled.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-6666044704193311748?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/6666044704193311748/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-bubbled-event-in-aspnet-server.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6666044704193311748?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6666044704193311748?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-bubbled-event-in-aspnet-server.html" title="What is a bubbled event in ASP.NET server side controls" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHc8cSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-8085236395550800259</id><published>2009-10-13T02:21:00.001-07:00</published><updated>2009-11-21T03:41:21.979-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.979-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is smart navigation in ASP.NET Pages</title><content type="html">When a page is requested by an Internet Explorer 5 browser, or later, smart navigation enhances the user's experience of the page by performing the following: &lt;br /&gt;
• Eliminating the flash caused by navigation. &lt;br /&gt;
• Persisting the scroll position when moving from page to page. &lt;br /&gt;
&lt;br /&gt;
• Persisting element focus between navigations. &lt;br /&gt;
• Retaining only the last page state in the browser's history. &lt;br /&gt;
• Smart navigation is best used with ASP.NET pages that require frequent postbacks but with visual content that does not change dramatically on return. Consider this carefully when deciding whether to set this property to true. &lt;br /&gt;
Set the SmartNavigation attribute to true in the @ Page directive in the .aspx file. When the page is requested, the dynamically generated class sets this property.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-8085236395550800259?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/8085236395550800259/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-smart-navigation-in-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/8085236395550800259?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/8085236395550800259?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-smart-navigation-in-aspnet.html" title="What is smart navigation in ASP.NET Pages" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHc8cSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-6895967046165063172</id><published>2009-10-13T02:20:00.003-07:00</published><updated>2009-11-21T03:41:21.979-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.979-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What are main parts of ASP.NET</title><content type="html">• A page and controls framework (Web Forms) &lt;br /&gt;
• The ASP.NET compiler &lt;br /&gt;
• Security infrastructure &lt;br /&gt;
• State-management facilities &lt;br /&gt;
• Application configuration &lt;br /&gt;
&lt;br /&gt;
• Health monitoring and performance features &lt;br /&gt;
• Debugging support &lt;br /&gt;
• An XML Web services framework &lt;br /&gt;
• Extensible hosting environment and application life cycle management &lt;br /&gt;
• An extensible designer environment&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-6895967046165063172?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/6895967046165063172/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-are-main-parts-of-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6895967046165063172?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6895967046165063172?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-are-main-parts-of-aspnet.html" title="What are main parts of ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczeCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-1538710161820713088</id><published>2009-10-13T02:20:00.001-07:00</published><updated>2009-11-21T03:41:21.980-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.980-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is the difference between code inline and code behind models in Asp.Net</title><content type="html">Code-Inline model in Asp.Net&lt;br /&gt;
In Code-Inline model the code &amp; event handlers for the controls are located in  blocks in the same .aspx file that contains the HTML and controls. Code-Inline model is useful when you want to maintain your code and presentation logic in a single file. &lt;br /&gt;
&lt;br /&gt;
Code-behind model in Asp.Net &lt;br /&gt;
ASP.NET also supports another way to factor your code and presentation content, called the code-behind model. When using code-behind, the code for handling events is located in a physically separate file from the page that contains server controls and markup. This clear delineation between code and content is useful when you need to maintain these separately, such as when more than one person is involved in creating the application. It is often common in group projects to have designers working on the UI portions of an application while developers work on the behavior or code. The code-behind model is well-suited to that environment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-1538710161820713088?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/1538710161820713088/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-difference-between-code-inline.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1538710161820713088?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1538710161820713088?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-difference-between-code-inline.html" title="What is the difference between code inline and code behind models in Asp.Net" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczeSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-5945444100357804505</id><published>2009-10-13T02:19:00.005-07:00</published><updated>2009-11-21T03:41:21.981-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.981-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What are the ways to manage state in Asp.Net application</title><content type="html">Ways to manage state in Asp.Net are: &lt;br /&gt;
•  Using Session and Application objects to cache information. &lt;br /&gt;
•  Using Memory and Disk Cookies to preserve information. &lt;br /&gt;
•  Using hidden input fields or the URL -embedded information to pass information from one page to another. &lt;br /&gt;
&lt;br /&gt;
•  Using the ViewState property of the page to set and retrieve information stored in a StateBag object. &lt;br /&gt;
•  Using SQL Server to store state information.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-5945444100357804505?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/5945444100357804505/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-are-ways-to-manage-state-in-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/5945444100357804505?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/5945444100357804505?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-are-ways-to-manage-state-in-aspnet.html" title="What are the ways to manage state in Asp.Net application" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczeSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-4326628882271057739</id><published>2009-10-13T02:19:00.003-07:00</published><updated>2009-11-21T03:41:21.981-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.981-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>Explain the limitation &amp; issues with the Cookies</title><content type="html">Limitation &amp; Issues with Cookies&lt;br /&gt;
Using cookies gives you excellent state management capabilities, as they are simple to implement, and they help you move resources off the server. Like almost any particular technique, cookies have some limitations. &lt;br /&gt;
&lt;br /&gt;
Some Users Dont Allow Cookies&lt;br /&gt;
Some users believe that viruses can be sent in a cookie and will not allow them onto their computers. Although there have never been any documented cases of this happening, and no one could realistically send a virus through a cookie, a lot of users still turn off the ability to accept cookies. When this happens, the user will not be able to use your site if you use cookies for managing state. &lt;br /&gt;
&lt;br /&gt;
Performance Can Deteriorate&lt;br /&gt;
Imagine that a user walks through a wizard on your site, as you gather 100 pieces of data from that user over several pages. Each page needs to post gathered data to the server. If you wait until all 100 pieces of data are gathered, you need to store that data somewhere in the meantime. If you keep putting data into a cookie, there is a lot of data being sent back and forth between the browser and the server. This will eat up a lot of bandwidth and could slow your whole site down. Remember, the data has to go both ways for each page the users hit on your site. &lt;br /&gt;
&lt;br /&gt;
Cookies Take Up Memory&lt;br /&gt;
Some browsers impose a limit on the size of the cookie data they can accept, or the number of cookies they can accept at one time. In addition, the amount of memory that you may chew up on the users machine may cause their operating system to swap some memory to disk. Under this circumstance, the cookie has slowed down your users machine as well as the server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-4326628882271057739?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/4326628882271057739/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/explain-limitation-issues-with-cookies.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/4326628882271057739?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/4326628882271057739?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/explain-limitation-issues-with-cookies.html" title="Explain the limitation &amp; issues with the Cookies" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczeip7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-6087728080108461040</id><published>2009-10-13T02:19:00.001-07:00</published><updated>2009-11-21T03:41:21.982-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.982-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>Explain the Limitations &amp; Issues with Automatic SQL Server State Management</title><content type="html">•  Although using SQL Server to store your session state relieves you of many difficult development issues, youll still need to consider some important limitations: &lt;br /&gt;
•  Youre limited to SQL Server. &lt;br /&gt;
•  This technique can only use SQL Server, no other server database. If you do not have a SQL Server installation available, you will be unable to use this solution. &lt;br /&gt;
&lt;br /&gt;
•  Performance may suffer. &lt;br /&gt;
•  Like any of the state management techniques, using SQL Server to manage your applications state can cause your performance degrade a little. Because it takes a little bit of time to make a connection and read and write state information in the database, theres no avoiding a small bit of overhead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-6087728080108461040?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/6087728080108461040/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/explain-limitations-issues-with.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6087728080108461040?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6087728080108461040?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/explain-limitations-issues-with.html" title="Explain the Limitations &amp; Issues with Automatic SQL Server State Management" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczeyp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-1448309219344239870</id><published>2009-10-13T02:18:00.007-07:00</published><updated>2009-11-21T03:41:21.983-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.983-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is the purpose of Server.MapPath method in Asp.Net</title><content type="html">In Asp.Net Server.MapPath method maps the specified relative or virtual path to the corresponding physical path on the server. Server.MapPath takes a path as a parameter and returns the physical location on the hard drive. &lt;br /&gt;
&lt;br /&gt;
Syntax &lt;br /&gt;
Suppose your Text files are located at D:\project\MyProject\Files\TextFiles &lt;br /&gt;
&lt;br /&gt;
If the root project directory is MyProject and the aspx file is located at root then to get the same path use code &lt;br /&gt;
&lt;br /&gt;
/* physical path of TextFiles */&lt;br /&gt;
string TextFilePath=Server.MapPath("Files/TextFiles");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-1448309219344239870?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/1448309219344239870/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-purpose-of-servermappath-method.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1448309219344239870?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/1448309219344239870?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-purpose-of-servermappath-method.html" title="What is the purpose of Server.MapPath method in Asp.Net" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-7640937060853069064</id><published>2009-10-13T02:18:00.003-07:00</published><updated>2009-11-21T03:41:21.984-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.984-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is difference between Response.Redirect and Server.Transfer</title><content type="html">Response.Redirect vs Server.Transfer&lt;br /&gt;
&lt;br /&gt;
Server.Transfer or Response.Redirect both are the method of choice for transferring the user from one place in the application to another &lt;br /&gt;
&lt;br /&gt;
Server.Transfer is similar in that it sends the user to another page with a statement such as Server.Transfer("WebForm2.aspx"). However, the statement has a number of distinct advantages and disadvantages. &lt;br /&gt;
&lt;br /&gt;
Firstly, transferring to another page using Server.Transfer conserves server resources. Instead of telling the browser to redirect, it simply changes the "focus" on the Web server and transfers the request. This means you don't get quite as many HTTP requests coming through, which therefore eases the pressure on your Web server and makes your applications run faster. &lt;br /&gt;
&lt;br /&gt;
But watch out: because the "transfer" process can work on only those sites running on the server, you can't use Server.Transfer to send the user to an external site. Only Response.Redirect can do that. &lt;br /&gt;
&lt;br /&gt;
The other side debates that Server.Transfer is not user friendly because the page requested may not be the page that shows in the URL. Response.Redirect is more user-friendly, as the site visitor can bookmark the page that they are redirected to. &lt;br /&gt;
&lt;br /&gt;
Secondly, Server.Transfer maintains the original URL in the browser. This can really help streamline data entry techniques, although it may make for confusion when debugging. &lt;br /&gt;
&lt;br /&gt;
That's not all: The Server.Transfer method also has a second parameter"preserveForm". If you set this to True, using a statement such as Server.Transfer("WebForm2.aspx", True), the existing query string and any form variables will still be available to the page you are transferring to. &lt;br /&gt;
&lt;br /&gt;
For example, if your WebForm1.aspx has a TextBox control called TextBox1 and you transferred to WebForm2.aspx with the preserveForm parameter set to True, you'd be able to retrieve the value of the original page TextBox control by referencing Request.Form("TextBox1").&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-7640937060853069064?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/7640937060853069064/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-difference-between.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/7640937060853069064?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/7640937060853069064?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-difference-between.html" title="What is difference between Response.Redirect and Server.Transfer" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-6646635010099658883</id><published>2009-10-13T02:18:00.001-07:00</published><updated>2009-11-21T03:41:21.985-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.985-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>Explain the concept of Web Application</title><content type="html">An introduction to web applications&lt;br /&gt;
A web application consists of a set of web pages that are generated in response to user requests. The Internet has many different types of web applications, such as search engines, online stores, auctions, news sites, discussion groups, games, and so on. &lt;br /&gt;
Properties of web applications &lt;br /&gt;
• Web applications are a type of client/server application. In that type of application, a user at a client computer accesses an application at a server computer. In a web application, the client and server computers are connected via the Internet or via an intranet (a local area network). &lt;br /&gt;
• In a web application, the user works with a web browser at the client computer. The web browser provides the user interface for the application. The most popular web browsers are Microsofts Internet Explorer, .Mozilla Firefox &lt;br /&gt;
&lt;br /&gt;
• The application runs on the server computer under the control of web server software. For ASP.NET web applications, the server must run Microsofts web server, called Internet Information Services, or IIS. &lt;br /&gt;
• For most web applications, the server computer also runs a database management system, or DBMS, such as Microsofts SQL Server. The DBMS provides access to information stored in a database. To improve performance on larger applications, the DBMS can be run on a separate server computer. &lt;br /&gt;
• The user interface for a web application is implemented as a series of web pages that are displayed in the web browser. Each web page is defined by a web form using HTML, or Hypertext Markup Language, which is a standardized set of markup tags. &lt;br /&gt;
• The web browser and web server exchange information using HTTP (Hypertext Transfer Protocol).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-6646635010099658883?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/6646635010099658883/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/explain-concept-of-web-application.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6646635010099658883?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6646635010099658883?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/explain-concept-of-web-application.html" title="Explain the concept of Web Application" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfSp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-2824480594652223724</id><published>2009-10-13T02:17:00.005-07:00</published><updated>2009-11-21T03:41:21.985-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.985-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is LoginView control in ASP.NET</title><content type="html">LoginView Control: This control provides templates in which you can create different content for anonymous and authenticated users. The LoginView control is also role-aware, so you can actually create different templates for authenticated users in different roles. &lt;br /&gt;
&lt;br /&gt;
The control displays one of two templates: the AnonymousTemplate or the LoggedInTemplate. In the templates, you can add markup and controls that display information appropriate for anonymous users and authenticated users, respectively. &lt;br /&gt;
&lt;br /&gt;
The LoginView control also includes events for ViewChanging and ViewChanged, which allow you to write handlers for when the user logs in and changes status.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-2824480594652223724?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/2824480594652223724/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-loginview-control-in-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/2824480594652223724?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/2824480594652223724?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-loginview-control-in-aspnet.html" title="What is LoginView control in ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfip7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-7997107139604211000</id><published>2009-10-13T02:17:00.003-07:00</published><updated>2009-11-21T03:41:21.986-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.986-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is the use of PasswordRecovery control in ASP.NET</title><content type="html">PasswordRecovery Control: This control provides the user interface and corresponding functionality to help users retrieve or reset their passwords. The control has three views: User- name, Question, and Success. The Username view allows the user to enter the username for which a password has to be retrieved or reset. The Question view prompts the user for the answer to a question that was entered during registration. The Success view displays a success message after the password has been delivered via e-mail. &lt;br /&gt;
&lt;br /&gt;
The options available for password retrieval are determined in part by the Membership provider used to provide membership services. ASP.NET 2.0 includes a provider for Microsoft SQL Server. This support password retrieval and security questions. Other providers, such as a third-party offerings or one you create yourself, might not support all those features. Also, the default the built-in providers to stores password hashes. (Clear text and encrypted text are the other options.) Password hashes cannot be used to determine the original password, so by default the only recovery scheme available is to reset the password and e-mail the new password to the user.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-7997107139604211000?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/7997107139604211000/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-use-of-passwordrecovery-control.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/7997107139604211000?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/7997107139604211000?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-use-of-passwordrecovery-control.html" title="What is the use of PasswordRecovery control in ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfip7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-6273592020122963299</id><published>2009-10-13T02:17:00.001-07:00</published><updated>2009-11-21T03:41:21.986-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.986-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is LoginStatus control in ASP.NET</title><content type="html">LoginStatus Control: This control produces a Login or Logout hyperlink based on the login status of the current user: an anonymous user sees a Login link, and an authenticated user sees a Logout link. The actual text for the hyperlink as well as the target of the link is, of course, customizable. &lt;br /&gt;
&lt;br /&gt;
The Logout link can be configured to do one of three things after the user has logged out: refresh the current page, redirect the user to the login page, or redirect the user to some other page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-6273592020122963299?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/6273592020122963299/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-loginstatus-control-in-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6273592020122963299?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/6273592020122963299?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-loginstatus-control-in-aspnet.html" title="What is LoginStatus control in ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfyp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-7794090148811508979</id><published>2009-10-13T02:16:00.007-07:00</published><updated>2009-11-21T03:41:21.987-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.987-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is ChangePassword control in ASP.NET</title><content type="html">The ChangePassword control allows users to change their password. The user must first supply the original password and then create and confirm the new password. If the original password is correct, the user password is changed to the new password. The control also includes support for sending an e-mail message about the new password. &lt;br /&gt;
&lt;br /&gt;
The ChangePassword control includes two templated views that are displayed to the user. The first is the ChangePasswordTemplate, which displays the user interface used to gather the data required to change the user password. The second template is the SuccessTemplate, which defines the user interface that is displayed after a user password has been successfully changed. &lt;br /&gt;
&lt;br /&gt;
The ChangePassword control works with authenticated and non-authenticated users. If a user has not been authenticated, the control prompts the user for a login name. If the user is authenticated, the control populates the text box with the user's login name.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-7794090148811508979?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/7794090148811508979/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-changepassword-control-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/7794090148811508979?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/7794090148811508979?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-changepassword-control-in.html" title="What is ChangePassword control in ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczfyp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-3972860163782760800</id><published>2009-10-13T02:16:00.005-07:00</published><updated>2009-11-21T03:41:21.987-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.987-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is LoginName control in ASP.NET</title><content type="html">LoginName control: This control is a placeholder that displays the username of the user. If the current user is anonymous (that is, not authenticated), this control does not render any output. &lt;br /&gt;
&lt;br /&gt;
The LoginName exposes a FormatString property that you can use to display more than just the username. For example, the FormatString could be set to "Welcome, {0}", which would produce the output "Welcome, John" when John is logged in.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-3972860163782760800?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/3972860163782760800/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-loginname-control-in-aspnet.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/3972860163782760800?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/3972860163782760800?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-loginname-control-in-aspnet.html" title="What is LoginName control in ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total></entry><entry gd:etag="W/&quot;CUEMQHczcCp7ImA9WxNbGE0.&quot;"><id>tag:blogger.com,1999:blog-3970318778533185029.post-5215773504668441994</id><published>2009-10-13T02:16:00.003-07:00</published><updated>2009-11-21T03:41:21.988-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-21T03:41:21.988-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Asp.Net" /><title>What is the use of CreateUserWizard control in ASP.NET</title><content type="html">CreateUserWizard Control: This control provides a wizard-style interface for creating a new user in the membership system. The CreateUserWizard is a lot more than a simple form for entering a username and password. It includes field validation for all of its fields, including optional regular expression validation for e-mail addresses. It prompts the user to enter a proposed password twice and confirms that the passwords match. &lt;br /&gt;
&lt;br /&gt;
The CreateUserWizard control can also gather a security question and answer from the user if the underlying membership provider supports security questions. The "Walkthrough" section for this application also shows how you can add custom steps to the wizard to collect additional information from the user during registration.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3970318778533185029-5215773504668441994?l=dotnetprogramingdude.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetprogramingdude.blogspot.com/feeds/5215773504668441994/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-use-of-createuserwizard-control.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/5215773504668441994?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3970318778533185029/posts/default/5215773504668441994?v=2" /><link rel="alternate" type="text/html" href="http://dotnetprogramingdude.blogspot.com/2009/10/what-is-use-of-createuserwizard-control.html" title="What is the use of CreateUserWizard control in ASP.NET" /><author><name>http://jpsindia.tk</name><uri>http://www.blogger.com/profile/00917304244016665931</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total></entry></feed>

