Monday 22 March 2010

Fantasy Cricket

 

Custom Profile Provider:

http://www.bestechvideos.com/2009/04/07/asp-net-how-do-i-create-a-custom-profile-provider

 

 

Password Recovery : 

The passwordFormat property specifies how the provider will store passwords, and will impact a number of other membership features. The SqlMembershipProvider supports three formats: Hashed (the default and most secure format), Encrypted, and Clear. The hashed format passes a user’s plaintext password and a random salt value through a one-way hash algorithm before storing the password. You cannot retrieve a hashed password. To validate a password, the provider has to salt and hash the entered password and compare the two hash values (for more information on hashing passwords, seePass The Salt). The provider can also store encrypted passwords (which can be decrypted and retrieved), or store passwords in the clear (which is not recommended).

 http://odetocode.com/articles/427.aspx

 

 

Mail Settings:

  <system.net>
    <mailSettings>
      <smtp>
        <network
             host="relayServerHostname"
             port="portNumber"
             userName="username"
             password="password" />
      </smtp>
    </mailSettings>
  </system.net>

 

Session Management:

Problem : Session objects is not working properly.Some times it will work some times not(getting empty).

If your problem is that your page is getting timed out before the timeout value set.
Then I will suggest you to change your web.config code like this.

ASP.NET Syntax

  <sessionState mode="StateServer"   cookieless="false"   timeout="30"/>

Here I have changed the session state to a seperate worker process (ASP state management server).
It is recommended to move your session into the stateserver or SQL server state management in the production environment.


Note: You need to start the 'ASP.NET State Service' windows service on the web server in order to make this code work.

image

Diff between diff session states:

http://forums.asp.net/p/7504/7504.aspx

If You want to use StateServer on Remote Servers (Hosting Machines) use the following code:

<sessionState mode="StateServer"  stateConnectionString="tcpip=127.0.0.1:42424"
                    stateNetworkTimeout="20"/>

“stateConnectionString” Specifies the server name or address and port where session state is remotely stored. The port value must be 42424. This attribute is required when mode is the StateServer value.

To improve the security of your application when using StateServer mode, use Protected Configuration to help protect the stateConnectionString value by encrypting the sessionState section of the configuration.

The default is "tcpip=127.0.0.1:42424".

stateNetworkTimeout” Specifies the number of seconds that the TCP/IP network connection between the Web server and the state server can be idle before the request is canceled. This attribute is used when the mode attribute is set to the StateServer value.

The default is 10 seconds.

 

Model PopUp

The ModalPopup extender is used to pop open a standard ASP.NET Panel control as a modal dialog box.

http://www.asp.net/learn/ajax-videos/video-85.aspx

Download  ajax tool kit from http://ajaxcontroltoolkit.codeplex.com/releases/view/11121.

No comments:

Post a Comment