Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm creating a website in Visual studio , asp.net C#
I have the design of a login template but how do i add actions behind the buttons and textbox so i can put codes behind it?

When i double click it doesn't bring me to the event handler :x

Regards,
Jon
Posted
Comments
Praveen Kullu 29-Oct-11 3:10am    
Are you using Visual studio 2010?

Normally a double click on the item will create a handler for you and / or take you directly to the handler method. But if it isn't, then:

Click once on the object to highlight it.
Look at the Properties pane. There is a button near the top that looks like a small lightning bolt. Click it.
The properties are replaced by a list of events applicable to the object.
Double click on the event you want to handle and the skeleton code will be generated for you.
 
Share this answer
 
Change the HTML tags into ASP: control tags eg ASP:TextBox , ASP:Button
then add a on_click="loginBTN_click" and you would be able to connect them up.
 
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