프로그램 자료/ASP.NET

aspx , ascx 에서의 using 사용

motolies 2014. 6. 27. 17:58

Dictionary 타입을 쓰다보면 aspx 나 ascx 파일에서 KeyValuePair 를 사용해야하는데,

using 을 사용하지 못해서 일일히 

System.Collections.Generic.KeyValuePair 

라고 써주었다.



검색하다보니 찾았는데,

 페이지 부분에다가

<%@ Import Namespace="System.Collections.Generic" %>

 

라고 써주면 제대로 인식이 되더라 ㅠㅠ

이제야 알았다.