gpt4 book ai didi

.net - asp.net 中调用的 <% %> 结构是什么?

转载 作者:行者123 更新时间:2023-12-01 09:39:49 24 4
gpt4 key购买 nike

我是 ASP.Net 的新手,在这里我有点困惑。

在通过一些在线文章学习 ASP.Net 时,我注意到一些专家在源代码中使用一些关键字来绑定(bind)数据和自动递增日期,例如 <%#Container.DataItemIndex + 1 %> , <%#Eval("Itemid")%> , <%#DataBinder.Eval(Container.DataItem, "itemStock")%><%=sectionId%> .

这些结构叫什么,我在哪里可以得到带有解释的关键字列表?

最佳答案

这些通常被称为内联标签,请注意,因为有很多不同的类型。

您可以在此处找到每种类型的详细说明:

http://naspinski.net/post/inline-aspnet-tags-sorting-them-all-out-(3c25242c-3c253d2c-3c252c-3c252c-etc).aspx

http://forums.asp.net/p/1049167/1478431.aspx#1478431

关于.net - asp.net 中调用的 <% %> 结构是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1525424/

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