I want to create a web form where I'll perform some background action based on the GET parameter through jQuery and will print 1 or 0. But the problem - ASP.NET is printing lots of HTML by default even when no such code exist in the Markup window
<%@ Page Language="C#"%>
<%
try
{
int cID = int.Parse(Request.QueryString["cid"].ToString());
//do some job and print 1 or 0
}
catch { }
%>
But in the output window I see HTML code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD>
<BODY></BODY></HTML>