다음과 같은 오류가 나타납니다. 이름 '요청'나는 절대 안돼서 오류를 조사했지만 조립 내가 참고로 누락 될 수있는대로 혼란 스러워요 현재 컨텍스트"이름이 현재 컨텍스트에 없습니다."
using System;
using System.Web;
using System.Web.UI;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using Microsoft.Exchange.WebServices.Data;
namespace Exchange101
{
// This sample is for demonstration purposes only. Before you run this sample, make sure that the code meets the coding requirements of your organization.
class Ex15_CreateMeetingOnBehalfOfPrinciple_CS
{
static ExchangeService service = Service.ConnectToService(UserDataFromConsole.GetUserData(), new TraceListener());
protected void Page_Load(object sender, EventArgs e)
{
var request = HttpContext.Current.Request.QueryString["source"];
HttpRequest q = Request;
NameValueCollection n = q.QueryString;
if (n.HasKeys())
{
string k = n.GetKey(0);
if (k == "one")
{
string v = n.Get(0);
}
if (k == "two")
{
string v = n.Get(0);
}
}
}
에 존재하지 않습니다.
이것이있는 경우 웹 페이지 뒤에있는 코드는'System.Web.UI.Page' 클래스를 확장해야합니다. – mellamokb
나는 그 의미가 무엇인지 알았 으면 좋겠다. – user990016
System.Web을 참조하고 있습니까? –