private void GetHTML() { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.ContentType = "text/plain"; HttpContext.Current.Response.Write(objImpl.GetHTML()); HttpContext.Current.Response.End(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Position_BAL objImpl = new Position_BAL(); litList.Text = objImpl.GetHTML(); } }