gpt4 book ai didi

asp.net - 在 GridView 中键入注释注释

转载 作者:行者123 更新时间:2023-12-01 10:52:04 25 4
gpt4 key购买 nike

要注释掉代码隐藏中的注释,我可以这样做:

' This is my VB comment
/// This is my C# comment

在我的 .aspx 页面中,我可以使用以下内容:
 <!-- I'm commenting on my .aspx page -->

只要不在我的范围内
<asp:GridView></asp:GridView>

这给了我一个错误,指出不允许文字内容:
        <asp:BoundField DataField="Max_Scheduled_Pick" HeaderText="Max_Scheduled_Pick" SortExpression="Max_Scheduled_Pick" DataFormatString="{0:MMM dd yyyy}" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" ReadOnly="true"/>
<!-- These are the Order Notes -->
<asp:BoundField DataField="txt_Order_Key" HeaderText="txt_Order_Key" SortExpression="txt_Order_Key" HeaderStyle-CssClass="hidden" ItemStyle-CssClass="hidden" />

关于如何将注释添加到我的代码中以用于文档目的的任何建议?

谢谢,

最佳答案

尝试使用 ASP 注释:

<%-- --%>

关于asp.net - 在 GridView 中键入注释注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17975785/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com