Live Chat Icon For mobile
Live Chat Icon

How can a ClientSideEvent can be attached to a Custom control?

Platform: ASP.NET| Category: Custom Controls

We can add any ClientSideEvent like Onclick,OnBlur in the Render Method as,


protected override void Render(HtmlTextWriter writer)
{
	_button.Attributes.Add('OnClick','JavascriptClickFunction');
}

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.