2010-12-19 7 views
0

내가 좋아하는 몇 가지 템플릿 사용자 컨트롤을 보았다. 하지만 내가 원하는 것은 매개 변수를 컨트롤에 전달하는 것과 같습니다.ASP.net 템플릿 기반의 사용자 제어

<uc:Control1 ID="Uc1" runat="server"> 
    <messagetemplate> 
     <CustomAttribute="Color" Value="Green" /> 
     <CustomAttribute="Size" Value="Small" /> 
     <CustomAttribute="Param1" Value="1" /> 
    </messagetemplate> 
</uc:Control1> 

이 방법을 보여 주시겠습니까?

답변

1

MSDN 웹 사이트에 short tutorial이 있습니다. 아마 너를 조금 도와 줄거야?