I have been doing some work lately with a Pre-compiled .NET3.5 app so i have had to write alot of inline code and i was just wondering about the usage of the # and = and niether when doing inline code?
+5
A:
I posted a similar question here, this might give you some things to look at:
http://stackoverflow.com/questions/649428/asp-net-special-tags
Especially this page:
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/syntax.aspx
Andy White
2009-03-17 05:57:07
@Andy: ;-).......
Cerebrus
2009-03-17 06:03:40
You are a gentleman and a scholar
Andy White
2009-03-17 06:06:28
+12
A:
- <%= is the equivalent of Response.Write()
- <%# is for Binding Expressions on Data Bound controls.
- <%$ to access AppSettings, ConnectionStrings and other values contained within an application's configuration and resource files
CMS
2009-03-17 05:59:07
For <%$, i'd like to add that Phil Haack has an excellent post about creating your own Expression Builders: http://haacked.com/archive/0001/01/01/Express_Yourself_With_Custom_Expression_Builders.aspx (Also read the comments)
Michael Stum
2009-03-24 23:45:26