問題描述
vs2010 asp.net設置斷點問題 (Problem in setting breakpoint in vs2010 asp.net)
I'm new in the asp.net . I'm having one web page in asp.net which is developed in vs2010 & for design i'm using devxpress control. I've designed one page & the code behind file is "cs" file . I've used page load event. & set a break point to the page load event. but it is not showing me in the debug mode. And code which i've written in the page load that code is also not executing. I don't know why it is happened for my web page. Also i've used master page for designing my web page.
How to resolve this problem?
thanks.
參考解法
方法 1:
If you are beginning with ASP.NET try this one :
http://www.beansoftware.com/ASP.NET-Tutorials/Debuging-Breakpoints.aspx
This one too :
http://www.beansoftware.com/ASP.NET-Tutorials/Stepping-Data-Viewing.aspx
方法 2:
Perhaps you are not working with Internet explorer to debug your application? Perhaps you just have to "Use Internet Explorer as default browser".
This description is for Silverlight pages but can work for ASPX too: Click on the web page that has your control (such as default.aspx) and choose “Browse with…” from the context menu.
I also found - this - to use Debugger.
方法 3:
Take a look at the page ASPX on the first line there is the @Page directive. Check if there is the attribute CodeBehind on that line like this :
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="*yourfile*.aspx.cs" Inherits="*Namespace.yourfile*" %>
(by Priyanka、Wassim AZIRAR、Nasenbaer、2GDev)