Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Problem creating a custom control in vs.net 2003
I am creating a web custom control in asp.net using c#.net
I am not able to understand the following code, I mean why is it used?
The code is as follows:-
protected override CreateChildControls()
//Code for Creation and addition of certain server controls.
/*Now associating the click event of the SubmitButtoncontrol with the event handler, SubmitButton_Click (I need to know why are we doing this and what for are we using '+=' ?)*/
SubmitButton.Click += new System.EventHandler (this.SubmitButton_Click)
Please let me know if the question is'nt presented clearly...
Looking forward for a response soon...