位置:海鸟网 > IT > ASP.NET >

比较ASP和ASP.NET中的Response.Write

Response.Write may be the most frequently used function in classic ASP applications. When I (and I'm sure
a lot of you) use Response.Write in classic ASP it usually looks something like:

Response.Write "This is a test write."

In the brave new ASP.NET world we can longer call Response.Write (this applies to all functions - not just
Response.Write) without using parentheses. So, instead of using the code above we must now use syntax
like:
Response.Write("This is a test write.")

Just a helpful little tip for those of you making the switch to ASP.NET!