[ASP.NET] Parent 속성 사용

[■Web Programing/OO ASP.NET OO]
    protected void setUnit(object sender, EventArgs e)
    {
        ((TextBox)((DropDownList)sender).Parent.FindControl("yyyy")).Text = xxx;
    }

    그리드뷰 사용시 이벤트가 발생한 Row의 Cell에서 다른 위치의 Cell에 값을 저장하고 싶은 경우
    Parent 속성을 이용하여 처리해줄 수 있다
크리에이티브 커먼즈 라이센스
Creative Commons License
TAG. ,

이 글의 트랙백 주소 :: http://munduki.tomeii.com/darkhorse/trackback/219

::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::