通过其他人编写的完整项目,我开始了解ASP代码。在aspx文件中,有如下代码
<asp:BoundField DataField="Location" HeaderStyle-HorizontalAlign="Center"
HeaderText="Location" SortExpression="Location">
<HeaderStyle HorizontalAlign="Center" />
</asp:BoundField>。但如果我把
<asp:BoundField DataField="Lcation" HeaderStyle-HorizontalAlign="Center" HeaderText="Location" SortExpression="Location" />,这也很管用。我想知道那些带有/没有名字开始的结束标记之间是否有区别。谢谢!
发布于 2014-08-11 17:15:09
这叫做自闭标签。
他们是一样的。
https://stackoverflow.com/questions/25248725
复制相似问题