惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
J
Java Code Geeks
C
Check Point Blog
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
L
LangChain Blog
有赞技术团队
有赞技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 司徒正美
IT之家
IT之家
Martin Fowler
Martin Fowler
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
U
Unit 42
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ

博客园 - angelfeather

json中获取key值 iOS开发常用代码块(2) 区别不同浏览器,CSS hack写法 [推荐]13款js编辑器大全 web标准 CSS Sprites 用户控件(.ascx)与网页间(.aspx)如何传值的几种方法 彩色验证码 一段常用的Page_Load事件 (如果有更好的希望大家留言) - angelfeather - 博客园 c#.net常用函数和方法集 利用MD5加密数据库中的密码 - angelfeather - 博客园 小记一篇~ - angelfeather - 博客园 推荐一个.net代码查看器Reflector 推荐一个学习asp.net的好地方 简单的ArrayList遍历 Microsoft .Net 框架 SDK 快速入门教程 asp.net简单的md5算法 遍历页面的所有button控件 GridView统计数据和修改Cell GridView格式化导出Excel GridView导出Excel
ASP.NET中$#=的用法 - angelfeather - 博客园
angelfeather · 2008-06-19 · via 博客园 - angelfeather

<%$     %>

 获取App_GlobalResources中message.resx文件中的B0011对应的字符串                                                        <asp:Button ID="btnExecute" runat="server" CssClass="pressedbutton" Font-Bold="True" Text="<%$ Resources:Message, B0011 %>" />

 获取App_LocalResource中***.aspx.resx文件中的ShoriYm对应的字符串                                                        <asp:Label ID="lblShoriYm" runat="server" CssClass="label_02" Text="<%$ Resources:ShoriYm%>" ></asp:Label></td>

获取web.config文件中的数据库连接字符串    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$connectionStrings:Pubs %>" SelectCommand="select * from catalog"></asp:SqlDataSource>

<%#     %>

数据绑定 

<asp:Label ID="lblId" runat="server" Text='<%#Eval("MenuBig_Id") %>' Visible="false"></asp:Label>       

<%=     %>

是在客户端获取服务器端的变量,后台往前台传值
<asp:Label ID="Label2" runat="server" CssClass="label"  Width="255px"><%=testStr%></asp:Label>