3
Answers

New to programming, where do I start to learn C# ASP.NET?

Photo of dan hickson

dan hickson

12y
3k
1
Hi, I am totally new to programming other than simple visual basic in MS access. I am currently working as an IT Technician but I will be required to take over our web devlopers duties in a year or so.

The only qualifications I have are in the IT Techs field.

He is using MS Visual 2010 and writes in C#.

My question is, where do I even begin to start and understand this?
I have searched online and its overwhealming. I just need a starting point really.

Do most people start with beginner books> will this book be good to start withhttp://www.amazon.co.uk/Beginning-ASP-NET-In-Wrox-Programmer/dp/0470502215/ref=sr_1_1?ie=UTF8&qid=1344349738&sr=8-1


Appreciate any advice.


Thanks

Answers (3)

0
Photo of Rahul Kaushik
NA 383 14.6k 7y
There is a perfect way while using flag to detect whether someone is already logged in or not and in case if System get power off , you need an event handler called as SystemEvents.SessionEnds.
 
Use this to change the flag value from true to false
 
Use this link as a reference
https://stackoverflow.com/questions/6799955/how-to-detect-windows-shutdown-or-logoff 
0
Photo of Mann Maurya
NA 47 869 7y
Hey Ajeesh
 
one more question... ??
 
If power off happen then how you suppose to Reset the flag
 
0
Photo of Ajeesh
NA 349 1.6k 7y
You can take a look at this article which discuss a similar topic. 
 
https://blog.learningtree.com/preventing-duplicate-logins-in-asp-net/
 
Another option would be to have a flag in your table and set the value to true when an user login and when user log off set the value to false.  Also for when a second user tries to login we will first check if login flag has been set to true for any other user. If its true then show message to user and display the login page, if not allow the user to login.