Oct 4, 2009 #1 jslmvl Vendor Joined Jan 26, 2008 Messages 268 Location GB in C#, what is the difference between those two: <% //string s = "aaaaaa"; %> <%-- string s = "aaaaaa"; --%> Thanks for answer me.
in C#, what is the difference between those two: <% //string s = "aaaaaa"; %> <%-- string s = "aaaaaa"; --%> Thanks for answer me.
Oct 4, 2009 #2 markros Programmer Joined May 21, 2007 Messages 3,150 Location US <%-- some code --%> - is ASP-like comment used only in ASPX file. In your .cs (code-behind) you can use // or /* Multi-line comment */ The first syntax you showed it not valid, I believe. Upvote 0 Downvote
<%-- some code --%> - is ASP-like comment used only in ASPX file. In your .cs (code-behind) you can use // or /* Multi-line comment */ The first syntax you showed it not valid, I believe.
Oct 4, 2009 Thread starter #3 jslmvl Vendor Joined Jan 26, 2008 Messages 268 Location GB Thanks for your help! Upvote 0 Downvote