vs2010 asp.net設置斷點問題 (Problem in setting breakpoint in vs2010 asp.net)


問題描述

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 PriyankaWassim AZIRARNasenbaer2GDev)

參考文件

  1. Problem in setting breakpoint in vs2010 asp.net (CC BY-SA 3.0/4.0)

#ASP.NET #devexpress #C#






相關問題

System.Reflection.Assembly.LoadFile 鎖定文件 (System.Reflection.Assembly.LoadFile Locks File)

如何在沒有全局變量的情況下一直保留我的變量? (How can I keep my variable all the time without global variables?)

C# / ASP.NET - Web 應用程序鎖定 (C# / ASP.NET - Web Application locking)

關閉模態對話框窗口後 ASP.NET 刷新父頁面 (ASP.NET Refresh Parent Page after Closing Modal Dialog Window)

無法將 NULL 值傳遞給數據庫 (Unable to pass NULL value to database)

wcf:將用戶名添加到消息頭是否安全? (wcf: adding username to the message header is this secure?)

使用 ASP.Net 教初學者 Web 開發的小項目想法 (Small projects ideas to teach beginners web development using ASP.Net)

SQL Server - 分組、擁有和計數 (SQL Server - Group by, having and count in a mix)

企業庫異常處理應用程序塊和日誌記錄應用程序塊在 ASP.NET 中的正確使用 (Enterprise Library Exception Handling Application Block and Logging Application Block proper use in ASP.NET)

來自proc的asp.net多個結果集:是否有必要將結果映射到類?如果是這樣,怎麼做? (asp.net multiple result set from proc: is it necessary to map results to class? If so, how?)

如何在測試工具中實例化 asp.net 代碼隱藏類? (How can I instantiate an asp.net codebehind class in a test harness?)

Web 窗體用戶控制事件,需要在頁面加載後添加 (Web Form User Control Event, needs to be added after page loads)







留言討論