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?
From stackoverflow
-
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
Cerebrus : @Andy: ;-).......Andy White : You are a gentleman and a scholar -
- <%= 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
Michael Stum : 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)
0 comments:
Post a Comment