Response from static method

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Hello.

I have a form which I'm going to use for displaying some messages, I will
pass in URL parameter message text and then assign it to some label.
But I want to write some static method which will receive text as parameter
and then response it to my message form.
But I can't use Response object from static method:(
Can anyone tell me how can I do or may be there is some better way to do
such task?

Thank you.
 
Dave, you can use HttpContent.Current.Response to obtain a reference
to the current Reponse.

Be careful of where this statement pops up in your design. It sounds
like you may just need an instance method on your form.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top