Wednesday, July 12, 2006

Custom Membership and Role Provider In ASP.NET

Put this into web.config file for removing default connection string

<connectionStrings>

<remove name="LocalSqlServer"/>

<add name="xyzConnectionString"

connectionString="Data Source=vsdotnet;

Initial Catalog=xyz;User Id=sa;Password=sa;"

providerName="System.Data.SqlClient"/>

</connectionStrings>

Put this in web.config file for membership providers.


<membership>

<providers>

<remove name="AspNetSqlMembershipProvider"/>

<add connectionStringName="xyzConnectionString"

enablePasswordRetrieval="false"

enablePasswordReset="true"

requiresQuestionAndAnswer="true"

applicationName="/"

requiresUniqueEmail="false"

passwordFormat="Hashed"

maxInvalidPasswordAttempts="4"

minRequiredPasswordLength="7"

minRequiredNonalphanumericCharacters="1"

passwordAttemptWindow="10"

passwordStrengthRegularExpression=""

name="AspNetSqlMembershipProvider"

type="System.Web.Security.SqlMembershipProvider,

System.Web, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a"/>

</providers>

</membership>


put this into web.config files for role provider


<roleManager enabled="true">

<providers>

<remove name="AspNetSqlRoleProvider"/>

<add connectionStringName="xyzConnectionString"

applicationName="/" name="AspNetSqlRoleProvider"

type="System.Web.Security.SqlRoleProvider, System.Web,

Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

<remove name="AspNetWindowsTokenRoleProvider"/>

</providers>

</roleManager>

Share:
Tuesday, July 4, 2006

Ajax,Microsoft, Atlas Proejct,ASP.NET

AJAX = Asynchronous JavaScript And XML

This name has made boom in web application development.Every days it is getting more and more popular.Ajax is a not a new language or standard but it is a simply a technique to use existing standard and development technology in to better way for creating better,Faster and more interactive and reach user interface web applications like desktop application.

It technique for fetching the server data without page submit or refreshing the pages. It uses javascript,XML and browsers http request for that.

The Big Company like Google and Microsoft already moving towards that with Google Suggest,Google Earth and Microsoft's live.com and live mail beta.

AJAX and ASP.NET:
So, Microsoft has also provided a Ajax framework called "Atlas" to develop ajax enabled application with the Microsoft ASP.NET 2.0 plate form. It provides easy to develop Ajax functionlity with out writing such heavy java script and XML codes.You can make your existing application Ajax enabled within the few minutes with that framework.

For more details Please visit http://atlas.asp.net/


Happy Programming...
Share:
Saturday, July 1, 2006

what is serialization -deserialization

Serialization is the process of storing class object into the some other
state may be a file or file or something like else.

Object Serialization is the process of reducing the objects instance into
a format that can either be stored to disk or transported over a Network.

Later time the Object will changed into its original state with the
re server process of deserialization.

Microsoft.NET support both serialization and deserialization.

Happy Programming..
Share:

how to add web servicein C# application

You can easily add web service to the application by add reference in C#
In the solution explorer right click the project and click add reference and
select add web reference then
type the URL of the web service that you would like to add to the web application
for example:
now you just need to refer this service like this:
localhost.HelloWebServiceinC MyService = new localhost.HelloWebServiceinC();
and you can use all the web methods that are defined in the webservice
through your application
Share:
Thursday, June 29, 2006

how to exeute stored procedure with partmeter in asp.net 1.1(

Following are the stored procedure that will get transaction data from database
and fill it in to the sql adapter and data set. it has four parameter.


SqlAdpt=new SqlDataAdapter("sp_getTransactionData",this.Con);

SqlAdpt.SelectCommand.CommandType=
System.Data. CommandType.StoredProcedure;

SqlAdpt.SelectCommand.Parameters.Add(new SqlParameter("@boid",System.Data.SqlDbType.NVarChar,16) );

SqlAdpt.SelectCommand.Parameters["@boid"].Value=
boid.Trim().ToString();

SqlAdpt.SelectCommand.Parameters.Add(new SqlParameter("@firstdate",System.Data.SqlDbType.SmallDateTime,4));

SqlAdpt.SelectCommand.Parameters["@firstdate"].Value=
firstdate.Trim().ToString();

SqlAdpt.SelectCommand.Parameters.Add(new SqlParameter("@lastdate",System.Data.SqlDbType.SmallDateTime,4));

SqlAdpt.SelectCommand.Parameters["@lastdate"].Value=
lastdate.Trim().ToString();

SqlAdpt.Fill(dt,table);

SqlApdt=SQL Data Adpater
dt=Sql Dataset

Happy Programming
Share:

Microsoft.NET interview question

Share:
Wednesday, June 28, 2006

Learn Visual Studio.NET 2005 with express edition

You can learn Microsoft.NET with the express edition sql server 2005 database and visual studio Ide expression edition. It is free and available for the down load. It provide almost
functionality as professional IDE.

To download SQL Server 2005 Express Edition:

http://msdn.microsoft.com/vstudio/express/sql/default.aspx

To download VB.NET 2005 Express Edition:

http://msdn.microsoft.com/vstudio/express/vb/

To Download C# express edition

http://msdn.microsoft.com/vstudio/express/visualcsharp/

So go start .NET Programming now.. Happy Programming
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews