Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new to asp.net.
i have a text box i want it to auto increment the value of the text box,when ever the user logins into it.
plz inform me if any ambiguity is there in my question..??
Posted

1 solution

Make a private variable
C#
private static int visitCounter = 0;


after login successfully increase its value

C#
visitCounter++; // Increase each time a form is loaded
    textBox1.Text = visitCounter.ToString("0000000"); // Format the counter
 
Share this answer
 
Comments
Tech Code Freak 8-Feb-12 12:42pm    
5up!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900