Using Response.Write in a static class.

I have a static class and I want to use Response.Write to display some text. I noticed that Response.Write is not available in this class. I have added following on top, but still it is not available:

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

LVL 8
rpkhareAsked:
Who is Participating?
 
crazymanConnect With a Mentor Commented:
System.Web.HttpContext.Current.Response.Write("SomeThing");
0
 
Gyanendra SinghArchitectCommented:
Write
HttpContext.Current.Response.Write
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.