Expose method as a property in user control
I created user control for textbox with autocompleteextender, and its working fine, but now i wanted to expose methods in user con开发者_开发知识库trol to aspx page as a one of the property in user control,like in button control having onClientClick event. and forgive my English.
Try adding a property like this to your user control:
public string OnClientClick
{
get { return Button1.OnClientClick; }
set
{
Button1.OnClientClick = value;
}
}
精彩评论