.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Login Control: Auto LockOut and Auto UnLock

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :ASP.Net


I'm trying to implement automatic lockout after 3 password failure attempts and then to auto unlock after 3 mins. But it does not auto lockout, I can still login if i use the correct password within the 3 mins. Any ideas please?

Many thanks in advance.


Here is the Web.Config file

                    type="Samples.AccessProviders.AccessMembershipProvider, SampleAccessProviders" 

View Complete Post

More Related Resource Links

Auto login to websites from WinForms app

I have a requirement where I need to open 3 websites in a browser, from a windows app. These have authentication,I want these sites to logged in when I open the website.I will have the credentials in a config file in Windows application. Is it possible to read the controls and post the credentials in the browser(IE)? It should be possible as per my knowledge,as it is already been done in QTP and WinRunner. Any help would be appreciated.Thanks.Ravi

Auto complete control in User control



I have inplemented the auto complete extender in a web form (with a static method)..works fine.

Now I have  moved the functionality into a user control and the auto complete extender is not working.

Any idea?


Auto click Literal Control on Form Load


Hi Everyone,

          How can one Auto click a Literal Control button on Form Load???

Forms Authentication -> login.aspx bypass and auto-create user?


Can I do the following, if I have 'this' within my web.config:

        <authentication mode="Forms">
            <forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH" timeout="120"/>

        <authentication mode="Forms">

            <forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH" timeout="120"/>


auto-login after registration verification



how do I get my user to automatically log in after they have registered verification though e-mail?

Verification page:

    protected void Page_Load(object sender, EventArgs e)
        if (string.IsNullOrEmpty(Request.QueryString["ID"]))
            Label1.Text = "The UserId was not included in the querystring...";
            Guid userId;
                userId = new Guid(Request.QueryString["ID"]);

                Label1.Text = "The UserId passed into the querystring is not in the proper format...";

            MembershipUser user = Membership.GetUser(userId);
            if (user == null)
                Label1.Text = "User account could not be found...";
            else if (user.IsApproved == true)
                Label1.Text = "";
                user.IsApproved = true;
                Label1.Text = "";

linqDataSource control - auto update/delete feature - when there is a join?



I've used the linqDatasource control (combined with listView) with it's features supporting automatic insert/update/delete for tasks who's data resides only in one table.... Now I have a scenario where I need to include a join in the linq query that will return the data for the linqDatasource control... will I still be able to use the linqDatasource control's automatic update/delete feature? I'll be using the linqDatasource contro's 'selecting' event to craft the query to return the data that will be bound to a listView control. All the fields of the table that I need the updates/deletes on will be included, but I need to pull in one field from another table for viewing purposes only, don't need to update/delete it.


Auto Complete extender is not working in Web User Control



I am using auto complete extender and it is not working in Web user Control . But Working in Web form Please give its solution ASAP.

Cs Code

    public static string[] GetSuggestions(string prefixText, int count)
        MyDatabaseDataContext db = new MyDatabaseDataContext();
        return db.Movies
            .Where( m => m.Title.StartsWith(prefixText) )
            .OrderBy( m => m.Title )
            .Select( m => m.Title)

<asp:TextBox  id="txtMovieTitle"  AutoComplete="off"  Runat="server" />
    <ajax:AutoCompleteExtender   id="ace1"

Auto logout and redirect to login page when session expires using asp.net

In this article I will explain you how to auto logout and redirect to login page when users session expires within specific period.

How to modify the login control



I'd like to record more information than the default control allows as well as perform actions with the input when the form is submitted but I'm having trouble figuring out how.

So firstly, if I want to record the middlename for example, how would I do that, and by default, where would it go if anywhere?
When the form is submitted, I'd like to take specific input, such as just the middlename for example, and write some linq to sql code to specify when and how it's stored.
In what event would I put this code?


BITS: Write Auto-Updating Apps with .NET and the Background Intelligent Transfer Service API


Both the .NET Framework and Windows have some very interesting APIs for creating applications that are capable of updating themselves automatically over a network. There are many advantages to writing your application to update itself like Windows Update does, including convenience for your users, from easier maintenance to network administration. Automatic updates require attention to factors such as discovery, security, and file replacement. In this article, the author covers the BITS API as well as a number of features of the .NET Framework that take care of these facets of auto-updating using the same facilities that the Windows Update uses.

Jason Clark

MSDN Magazine February 2003

Making auto suggestions more appropriate for your textbox

To round out my coverage of Input Contexts we need to cover the concept of Input Classes. Put simply an input class is a hint to the Windows Mobile OS as to what kind of information should be entered into a text box (for example an email address, phone number, or person's name).

Selecting an Input Class for a textbox will change the source of data used for the auto suggestions provided by the OS as the user starts typing. For example in the screenshot above you can see the user is typing in a person's name yet the operating system is suggesting matching cellphone numbers.

auto complete extender stops


Hello everyone

when the textbox of the  autocomplete extender looses focas the auto complete extender stops the returning any results or even firing events(onpopulating, onpupulated).

Could you please help me fix this.


and I there any way to know when the extender fires the request(please provide code example if you can).


thanks a lot.

Customize failure text for login control


Hi all,

I would like to show the failure text in a client-side alert box for login control in c#. Please help me if there is an easy way to convert it from vb.net to c#.net. Thanks a lot!

Protected Sub Login1_LoginError(ByVal sender As Object, ByVal e As System.EventArgs) Handles Login1.LoginError
'Display the failure message in a client-side alert box
ClientScript.RegisterStartupScript(Me.GetType(), "LoginError", _
String.Format("alert('{0}');", Login1.FailureText.Replace("'", "\'")), True)

 End Sub

 Converted, but it doesn't work.

protected void Login1_LoginError(object sender, System.EventArgs e)
    //Display the failure message in a client-side alert box
    ClientScript.RegisterStartupScript(this.GetType(), "LoginError", string.Format("alert('{0}');", Login1.FailureText.Replace("'", "\\'")), true);

create Scheduled Task that auto send mails


hello every one

i bought a hosting plan that allows me to send about 500email/per hour

but my client wish to send about 2000 or 3000 email at a time

is there a way to split them and 500 email per a time automaticly without the need of reloging again every hour

my hosting plan doesn't allow me to create a sql jop or send mails via Sql Server.

any bright ideas ?

SharePoint Batch Update Auto Increment Field Value


Hello All,

I am making use of SharePoint List Batch Updating methodology in order to update the items in bulk. I build the query dynamically for each and every item using StringBuilder and process the data ultimately using 'ProcessBatchData' Method.

Now, I have a requirement where I have to increment a particular field value in the query while iterating through each item for building the query. How can I auto-increment a field value for each item in the batch query?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend