Click here to Skip to main content
15,924,038 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone

Today i was working on my asp.net project.i finished my work and upload the project into local iss.Till then its working well and website is running well.
But now the problem is this now when i am working on this asp.net project. when ever i try to load the .cs file on double click the asp.net page or on any control then its event is opening into the source file not into the .cs file just like this

ASP.NET
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerInfo.aspx.cs" Inherits="SalesCRM.CustomerInfo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

    protected void btnsave_Click(object sender, EventArgs e)
    {

    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>CustomerInfo</title>
    <link href="Css/mos-style.css" rel="stylesheet" type="text/css" />
</head>
<body>


please tell me what happen wrong here. I can open the .cs file from solution explorer but i cannot do any work in this.
Posted

1 solution

Following will explain you what is happening and why: Inline (Single File) vs. CodeBehind[^]
 
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