Just been asked this question as a true / false in a telephone job interview and was a little stumped. Any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get hold of the Response object from the HttpContext static object:
If current returns null then the code is not being run as part of a page request. If you get asked the question again then that’s the answer but a follow up question should be “why would you need to?”