0
레이블에 aspx 페이지 UserControl .ascx.cs에 링크를 추가하려고합니다.레이블에서 UserControl 페이지에 연결
링크 텍스트 (나는 그것을 볼 수 있습니다)이 있지만 오류는 다음과 같습니다
여기CS0103: The name 'All' does not exist in the current context
내가 코드에서했던 것입니다.
의 .ascx
<asp:Label ID="All" runat="server" Text="All"></asp:Label>
.ascx.cs
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
ViewState["LoginErrors"] = 0;
string UrL = "<a href='http://www.google.com'>www.google.com</a>";
All.Text = UrL;
}
이의 .ascx에 대한 전체 코드를 제공 가지고. 마크 업 템플릿이 – Uriil