Response.Write Error

liunx

Guest
Response.Write Error

I am using Response.Write in a class to write HTML code when i call the method
stored from that class... but am getting an error:

"response is not available in this context"

what should i do?i think u should left rest of the code in the class except response.Write statement..
and use it in the code of particular form.....................HttpContext.Current.Response.Write("Something")i can't do the writing in the page for security reasons.. i need to do it in the class to keep the data secure..Also, i tried using HttpContext.Current.Response.Write("Something") but it didn't work for me and i got the same error :(
 
Back
Top