asp.net tag
https://forums.asp.net/t/1139381.aspx?what+are+these+special+tags+and+
答案1
Those tags can be hard to search for since the are generally discarded by search engines as noise...
here are some helpful links for you on the various tags.
<% %> An embedded code block is server code that executes during the page's render phase. The code in the block can execute programming statements and call functions in the current page class. http://msdn.microsoft.com/en-gb/library/ms178135(vs.80).aspx
<%= %> most useful for displaying single pieces of information. http://msdn.microsoft.com/en-us/library/6dwsdcf5(VS.71).aspx
<%# %> Data Binding Expression Syntax. http://msdn.microsoft.com/en-us/library/bda9bbfx.aspx
<%$ %> ASP.NET Expression. http://msdn.microsoft.com/en-us/library/d5bd1tad.aspx
<%@ %> Directive Syntax. http://msdn.microsoft.com/en-us/library/xz702w3e(VS.80).aspx
<%-- --%> Server-Side Comments. http://msdn.microsoft.com/en-US/library/4acf8afk.aspx
<%: %> Like <%= %> But HtmlEncodes the output (new with Asp.Net 4). http://weblogs.asp.net/scottgu/archive/2010/04/06/new-lt-gt-syntax-for-html-encoding-output-in-asp-net-4-and-asp-net-mvc-2.aspx
答案2
<%# is a data binding syntax for use in databound controls.
<%= is a short cut for Response.Write. 这个是无法动态计算的,适合存放一些不会变化的东西
<%@ is a directive to include a namespace, page directives, etc.
最新文章
- Java To CSharp源代码转换
- HDU 2577 How to Type(dp题)
- java nio知识点总结
- java 访问器方法中对象引用的问题
- poj 2635 The Embarrassed Cryptographer(数论)
- Activity的lanuchmode
- nodejs学习[持续更新]
- 在 Mac OS X 中建立加密的 Zip 压缩 -- 让机密资料加上密码
- 用android LinearLayout和RelativeLayout实现精确布局(转)
- 花括号中的json数据--->;转为数组array
- WIN2003 设置 OPENVPN 服务端
- zk command
- 使用idea新建jsp
- Powershell Linux正式版可用,启动名称有变
- java.lang.IllegalStateException: Connection pool shut down
- Debian &; CentOS建立本地iso源
- hdu 1757 (矩阵快速幂) 一个简单的问题 一个简单的开始
- Django的开始
- zeroclipboard实现多浏览器复制到粘贴板功能
- jzoj5804
热门文章
- python windows 下pip easy_install 使用错误的问题
- Python全栈-库的操作
- 【转】推荐4个不错的Python自动化测试框架
- Python学习记录之(五)-----类进阶篇
- OpenCV学习笔记(一) - 边界填充、Rect函数
- 【转】ETL讲解(很详细!!!)
- Linux基础命令---ifdown、ifup
- Linux基础命令---文本格式转换expand,unexpand
- window下nodejs用nodemon启动koa2项目(用cmd启动不了,要用Git Bash Here 启动才可以)
- AELF(ELF)区块链项目介绍