Saahithyan Vigneswaran Saahithyan Vigneswaran - 2 years ago 98
Javascript Question

comment both js and asp at once

I'm looking for a way to comment both js and asp.

var myurl ="name.aspx?id=" + '<%= Request.QueryString["myid"].ToString() %>';

As you can see above, I've a js statement which calls asp, I need a way to comment both at once, ie, with one comment. Individually I can comment each js with
and asp with
<%-- -->
. But I want to comment it once or a comment block where I can enclose the line above.

Answer Source

If you comment only JavaScript code, It will be enough:

   //var myurl ="name.aspx?id=" + '<%= Request.QueryString["myid"].ToString() %>';
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download