Click here to Skip to main content
15,910,277 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear friends i am using Visual to develop my web application when i double click or click from click event in property of a button its just going to HTML code of page not going to default.aspx.cs page to write code for button
thanks in advanced
Posted
Comments
Maciej Los 24-Jun-15 16:16pm    
What?
Muhammad Qasim Ludin 24-Jun-15 16:21pm    
yes
i have the default.aspx.cs file with my default.aspx file but when i want to go to click event to default.aspx.cs file its just going to html code of button
ZurdoDev 24-Jun-15 16:22pm    
Do you have a codebehind page?
Muhammad Qasim Ludin 24-Jun-15 16:25pm    
no
ZurdoDev 24-Jun-15 16:31pm    
That's why it is going to html. Where else would it go?

1 solution

It has a simple solution.
Check in the source file (.aspx) that CodeBehind attribute correctly points to "default.aspx.cs".
Example:
ASP.NET
<%@ Page Language="C#" CodeBehind="default.aspx.cs"


Hope, it helps else let me know :)
 
Share this answer
 
v3

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