From: Chen on
I am new to ASP.
I find there are tags:
<% @ %>
<% ! %>
<% # %>

Where could I find the reference to tell the meaning of charcter follows <%
such as @, !, # ,...

Thanks

From: Crouchie1998 on
Google is your friend:

http://msdn.microsoft.com/en-us/library/xz702w3e.aspx
http://msdn.microsoft.com/en-us/library/eb44kack.aspx

Just search for DIRECTIVES




"Chen" wrote:

> I am new to ASP.
> I find there are tags:
> <% @ %>
> <% ! %>
> <% # %>
>
> Where could I find the reference to tell the meaning of charcter follows <%
> such as @, !, # ,...
>
> Thanks
>
From: Brian Cryer on
"Chen" <mxchen100(a)hotmail.com> wrote in message
news:8C9E4244-5D39-4017-8D5E-30DA5511A6F5(a)microsoft.com...
>I am new to ASP.

Do you mean ASP or ASP.NET? ASP should be regarded as obsolete or legacy
only. So if you are starting out then I'd suggest you spend your time
looking at ASP.NET - either C# or VB.Net.
--
Brian Cryer
http://www.cryer.co.uk/brian

From: Chen on
I read some of ASP.NET
I found some codes in source view such as
<%! %>
<%# %>
I could not find refernce for the ! and # follows the <% to tell the
meaning of charcter follows <%
Mr Crouchie told me the @ is DIRECTIVES
but I still do not know to use the ! and #
Thanks

"Brian Cryer" <not.here(a)localhost> wrote in message
news:eVkNamWWLHA.4332(a)TK2MSFTNGP04.phx.gbl...
> "Chen" <mxchen100(a)hotmail.com> wrote in message
> news:8C9E4244-5D39-4017-8D5E-30DA5511A6F5(a)microsoft.com...
>>I am new to ASP.
>
> Do you mean ASP or ASP.NET? ASP should be regarded as obsolete or legacy
> only. So if you are starting out then I'd suggest you spend your time
> looking at ASP.NET - either C# or VB.Net.
> --
> Brian Cryer
> http://www.cryer.co.uk/brian
>

From: Brian Cryer on
"Chen" <mxchen100(a)hotmail.com> wrote in message
news:u2lCDTpWLHA.6132(a)TK2MSFTNGP05.phx.gbl...
>I read some of ASP.NET
> I found some codes in source view such as
> <%! %>
> <%# %>
> I could not find refernce for the ! and # follows the <% to tell the
> meaning of charcter follows <%
> Mr Crouchie told me the @ is DIRECTIVES
> but I still do not know to use the ! and #
> Thanks

I understand where you are coming from now. I only have <%@ and <%= in my
code.

<%@ is a directive, used to tell ASP.NET how to process the page.

<%=variable or expression%> replaces the content with the result of the
variable or expression.

<%# ... %> tells ASP.NET to evaluate the contents of the brackets when the
DataBind method fo the page is called.

<%-- comment --%> is a server side comment, so renders nothing.

<% ... %> is (otherwise) the syntax used for inline code.

Sorry, no idea what <%! means, unless its parting of <% ... %>. Do you have
an example?
--
Brian Cryer
http://www.cryer.co.uk/brian