'컨트롤id'에 해당되는 글 1건
2010. 12. 7. 14:34
asp.net 1.1 에서 2.0 변경시 web.config 를 그대로 사용할 경우 간혹 발생될 수 있는
html 랜더링시 컨트롤 id 가 이전과 바뀌어 버리는 경우가 있다.
<input id="ctl00_ctl00_eDefaultStore_0" type="radio" name="ctl00$ctl00$eDefaultStore" value="1" />
이런경우 이렇게 바꾸면 원래대로 돌아오게 할 수 있다.
있다.
<input id="_ctl0__ctl0_eDefaultStore_0" type="radio" name="_ctl0:_ctl0:eDefaultStore" value="1" />
해결 방법은 web.config 안에 내용을 추가하면된다.
<configuration>
<system.web>
<xhtmlConformance mode="Legacy" />
</system.web>
</configuration>
참고 URL
http://www.codeproject.com/Articles/72728/ASP-NET-Controls-Validators-problem-NetFx-1-1-vers.aspx
http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx#1249706
그럼 조그마한 도움이 되었길 바라며
'.NET > ASP.NET' 카테고리의 다른 글
객체 값 복사 (0) | 2009.09.26 |
---|---|
asp.net 응용프로그램을 실행할 수 없습니다 해결방법 (0) | 2009.07.17 |
Window XP에서 폴더에 iis가 접근하게 권한 주기 (0) | 2009.06.09 |