Friday, February 10, 2012

Bindable Property for User Control

public string empName="";

//This property Makes bindable.
[System.ComponentModel.Bindable(true)]
public string employeeName
{
    get
    {
      return empName;
    }
    set
    {
      empName=value;
      this.txtName.Text = empName.ToString();
    }
}

No comments:

Post a Comment

Comments

Search

Custom Search
Protected by Copyscape Plagiarism Software