By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,660 Members | 1,103 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,660 IT Pros & Developers. It's quick & easy.

<% symbols

P: n/a
so what is the difference between all these symbols, i know a few but don't
know them all, what am i missing and what do the ones i dont know mean?
thanks

<% %> code block
<%@ %> include i think? used in page directives
<%= %> returns a value out
<%# %> not sure what does but use it with data grids a lot

what else is there? and could someone maybe point me to a resource on these
and what exactly they do? thanks!
Nov 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi Brian,

As for the different expression syntax in ASP.NET webform page, here is the
reference in MSDN, it has a list of those syntax :

#Web Forms Syntax
http://msdn.microsoft.com/library/en...PageSyntax.asp
?frame=true

and you can find the <%# %> in them, it's the databinding expression in
asp.net:

#Data Binding Expression Syntax
http://msdn.microsoft.com/library/en...abindingExpres
sionSyntax.asp?frame=true

Please have a look. Hope helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2

P: n/a
thanks

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:%2****************@cpmsftngxa06.phx.gbl...
Hi Brian,

As for the different expression syntax in ASP.NET webform page, here is the reference in MSDN, it has a list of those syntax :

#Web Forms Syntax
http://msdn.microsoft.com/library/en...PageSyntax.asp ?frame=true

and you can find the <%# %> in them, it's the databinding expression in asp.net:

#Data Binding Expression Syntax
http://msdn.microsoft.com/library/en...abindingExpres sionSyntax.asp?frame=true

Please have a look. Hope helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

P: n/a
Hello Stevereeno! Do you know if anybody has documented
a syntax and grammar map comparing JavaScript/JScript with C#?

The differences are probably fewer than the similarities and I'd
certainly like to see that kind of document come from the MSDN.

-
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:#L**************@cpmsftngxa06.phx.gbl...
Hi Brian,

As for the different expression syntax in ASP.NET webform page, here is the
reference in MSDN, it has a list of those syntax :

#Web Forms Syntax
http://msdn.microsoft.com/library/en...PageSyntax.asp
?frame=true

and you can find the <%# %> in them, it's the databinding expression in
asp.net:

#Data Binding Expression Syntax
http://msdn.microsoft.com/library/en...abindingExpres
sionSyntax.asp?frame=true

Please have a look. Hope helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

P: n/a
Hi ClintonG,

As for the Grammar mapping between C# VB.NET or JScript, I've not found any
documenation directly discussing on this. But I've searched the web and
found a certain Quick Reference for the c# ,vb.net and jscript.net

#C#, VB, JScript Quick Reference for .NET
http://www.werelight.com/docs/dotnet_lang_quickref.htm

Also, generally in the DOTNET quickstart, all the samples have different
code version(such as C# , VB.NET , JSCript), you can also have a look for
reference. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5

P: n/a
Thanks Steve -- that was a helpful document. I hope somebody will
map the languages that derive from C into to put learning syntax and
grammar into perspective so new and experienced users alike can
see the wisdom in adopting C#. It would really help respond to the
many newsgroup posts asking about "VB or C#" -- but again --
that document you refer to is really well done itself.
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET csgallagher@ REMOVETHISTEXT metromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:Lv**************@cpmsftngxa06.phx.gbl...
Hi ClintonG,

As for the Grammar mapping between C# VB.NET or JScript, I've not found any
documenation directly discussing on this. But I've searched the web and
found a certain Quick Reference for the c# ,vb.net and jscript.net

#C#, VB, JScript Quick Reference for .NET
http://www.werelight.com/docs/dotnet_lang_quickref.htm

Also, generally in the DOTNET quickstart, all the samples have different
code version(such as C# , VB.NET , JSCript), you can also have a look for
reference. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.