简体   繁体   English

在C#中,是否有办法查看通过ASPX页面生成的代码?

[英]In C# is there a way to see the code that gets generated via an ASPX page?

I'm looking at code in an XYZ.aspx.cs that pertains to a drop down list. 我正在查看与下拉列表有关的XYZ.aspx.cs中的代码。 It is: 它是:

dt = SessionData.Report_RespondentAnswer(DateTime.Parse(tbFromDate.Text).ToString("yyyy-MM-dd"),
                                         DateTime.Parse(tbToDate.Text).ToString("yyyy-MM-dd"),
                                         SurveyID,
                                         SupplierID,
      LK_SurveyStatuses.GetResponseGroup_ResponseCodes(ddlResponseRange.SelectedValue),
      LK_SurveyStatuses.GetResponseGroup_ClientResponseCodes(ddlResponseRange.SelectedValue));

And this corresponds to a drop-down that looks like this: 这对应于如下所示的下拉列表:

ddlResponseRange.SelectedValue

is this possile? 这是可能的吗?

在此处输入图片说明

In your browser, Right Click -> View Source 在浏览器中,右键单击->查看源代码

This will show you the generated markup. 这将向您显示生成的标记。

Edit Most browsers also have developer modes which are better for this sort of thing. 编辑大多数浏览器还具有开发人员模式,这种模式对这种情况更好。 Chrome for example has a great set of Developer Tools. 例如,Chrome有很多开发人员工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM