#和=的用途是什么 [英] What is the use of # and =

查看:107
本文介绍了#和=的用途是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Asp.net中,#和=的用法是什么,当我们在内联代码...中使用它时,例如:
<%=某事%>



<%#某事%>


请直接.
此致

In Asp.net, what is the usage of # and =, when we use it it in inline code ,...such as:
<%= something %>

and

<%# something %>


Please direct.
Regards,

推荐答案

^ ]


用于将数据从源绑定到控件(数据绑定技术)...
某些字段名称或方法名称
used for bind data from source to controls (Data Binding Techniques)...
something field name or method name


使用DataBinding时,使用#.引用某些内容(例如,后面的代码中的受保护变量或页面上的控件之一)时,请使用=
When DataBinding, # is used. When referencing something, like a protected variable in the code behind or one of the controls on your page, then use =


这篇关于#和=的用途是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆