foreach (string key in HttpContext.Current.Request.Form.AllKeys)
{
string value = HttpContext.Current.Request.Form[key];
}
위의 코드의 .net 핵심 버전은 무엇입니까? 마치 .net 코어가 꺼낸 것 같습니다. 올 키 그리고 키으로 바 꾸었습니다. 위의 코드를 .net 핵심 방법으로 변환하려고 시도했지만 잘못된 연산 예외가 발생합니다.HttpContext.Current.Request.Form.AllKeys in ASP.NET CORE 버전
foreach (string key in HttpContext.Request.Form.Keys)
{
}
예외 메시지는 무엇입니까? – Tratcher