Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,



i had a anchor tag if i click on that it should perform two actions one is it should check whether user logged in or not,if user logged in i want to insert some details in to db,second thing is that if user not logged in it should show the sign in pop up..please tell me how to approach
Posted
Comments
[no name] 27-May-14 11:24am    
Missing the real question ;)

1 solution

1. Declare the link OnClick event on aspx Page.
2. Define the OnClick Event in Code Behind Page.
3. Inside the Event, check if User is Logged In or not. For that check the Session or something in which you have stored the User Logged In details.
4. If User is Logged In, create connection to Database and using ADO.NET objects do your CRUD operations.
5. If not, show jQuery Modal Popup with the Login Controls.
 
Share this answer
 

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