Oct 4, 2009 #1 jslmvl Vendor Jan 26, 2008 268 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 May 21, 2007 3,150 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 Jan 26, 2008 268 GB Thanks for your help! Upvote 0 Downvote