什么将 aspx 文件转换为 c#
哪个进程或类负责将 aspx 文件和数据绑定表达式转换为 C# ?
例如
<%# Eval("XXXXX") %>
转换为:
public void @__DataBind__control118(object sender, System.EventArgs e)
{
System.Web.UI.WebControls.RepeaterItem Container;
System.Web.UI.DataBoundLiteralControl target;
#line 383 ""
target = ((System.Web.UI.DataBoundLiteralControl)(sender));
#line default
#line hidden
#line 383 ""
Container = ((System.Web.UI.WebControls.RepeaterItem)(target.BindingContainer));
#line default
#line hidden
#line 383 ""
target.SetDataBoundString(0,
System.Convert.ToString(Eval("XXXXX"), System.Globalization.CultureInfo.CurrentCulture));
#line default
#line hidden
}
可以定制吗?
which process or class is responsible for converting aspx files and data-binding expressions into c# ?
for example
<%# Eval("XXXXX") %>
is transformed into:
public void @__DataBind__control118(object sender, System.EventArgs e)
{
System.Web.UI.WebControls.RepeaterItem Container;
System.Web.UI.DataBoundLiteralControl target;
#line 383 ""
target = ((System.Web.UI.DataBoundLiteralControl)(sender));
#line default
#line hidden
#line 383 ""
Container = ((System.Web.UI.WebControls.RepeaterItem)(target.BindingContainer));
#line default
#line hidden
#line 383 ""
target.SetDataBoundString(0,
System.Convert.ToString(Eval("XXXXX"), System.Globalization.CultureInfo.CurrentCulture));
#line default
#line hidden
}
could this be customised ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
处理 ASP.NET 预编译的工具是 aspnet_compiler.exe< /a>
我不熟悉它的可扩展性/定制选项——但是我见过人们预编译站点以手动部署它;这让我相信您至少可以编写它的替代方案(即使您无法自定义它)。
The tool that handles ASP.NET precompilation is aspnet_compiler.exe
I'm not familiar with the extensibility/customization options of it--however I've seen people pre-compile sites for deployment with it manually; which leads me to believe you could at least write an alternative of it (even if you can't customize it).