我想在请求处理过程中印出一些痕迹。
但是,当我让科索尔时。 这一环境中的写作(“隐形”)没有显示。
什么是失踪的,我需要做些什么才能用奥尼特语印刷这些痕迹?
我想在请求处理过程中印出一些痕迹。
但是,当我让科索尔时。 这一环境中的写作(“隐形”)没有显示。
什么是失踪的,我需要做些什么才能用奥尼特语印刷这些痕迹?
使用<代码>Debug.Write(),并观察通过民主选举学会的夸大产出窗口取得的成果。
除了已经提到的方法外,你可以简单地写到一个记录档案中:
File.AppendAllText(@"c:log.txt", @"Debug Message Here!" + Environment.NewLine);
当然,你可以使用服务器。 页: 1
我知道这一点很晚,但你可以使用以下类别从你的C#稿中写到 Java稿。
public static class Javascript
{
static string scriptTag = "<script type="" language="">{0}</script>";
public static void ConsoleLog(string message)
{
string function = "console.log( {0} );";
string log = string.Format(GenerateCodeFromFunction(function), message);
HttpContext.Current.Response.Write(log);
}
public static void Alert(string message)
{
string function = "alert( {0} );";
string log = string.Format(GenerateCodeFromFunction(function), message);
HttpContext.Current.Response.Write(log);
}
static string GenerateCodeFromFunction(string function)
{
return string.Format(scriptTag, function);
}
}
这样,你就可以在你点击现场时,如你会 j的时候,实时看到你的标识。
你们可以做出反应。 撰写论文,将产出写到你的网页,以便进行清点,或用javascript进行警示,或甚至写到记录上。 获取分解产出的方法很多。 还有一个标志。 您可使用的净值(类似于原4j)
鉴于这是一个伙伴关系。 互联网应用,我将:
Page.Trace.Write ("Something here");
你们在什么地方寻找产出?
Console。 书写字在指挥线上,而不是在网页上。 两种使用对应办法。 撰写文章,在网页上书写或开始在视力演播室台上应用,以检查指挥线的产出。
In my webpages I have references to js and images as such: "../../Content/Images/"Filename" In my code if I reference a file as above, it doesnt work so i have to write: "c:/miscfiles/"filename" 1-...
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
I m looking for best practices here. Sorry. I know it s subjective, but there are a lot of smart people here, so there ought to be some "very good" ways of doing this. I have a custom object called ...
I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...
i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...
For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!