Excuse me sir, Are you saved? (선생님, 구원받으셨습니까?)

If you died tonight, Are you going to heaven? (당신이 만약 오늘 밤 죽는다면, 천국에 갈 수 있습니까?)

For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. (하나님이 세상을 이처럼 사랑하사 독생자를 주셨으니 이는 그를 믿는 자마다 멸망하지 않고 영생을 얻게 하려 하심이라)

-John 3:16 (요한복음 3장 16절)

분류 전체보기 (178)
Embeded (3)
.NET (13)
DB (6)
Javascript (0)
Visual Studio (0)
Project (7)
Experience (0)
General (13)
Car (0)
Story (12)
YBC (4)
Book (6)
Movie (1)
구 MiniHomepy (109)
Visitors up to today!
Today hit, Yesterday hit
daisy rss
'컨트롤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

그럼 조그마한 도움이 되었길 바라며 


prev"" #1 next