Control | Upload This is an example of selecting a province and then uploading the click event to the top level of the control in the page handling event. The bold part is the entire upload event process. Upload events (exposure events), exposure attributes, complex property management, style management, and so on are advanced topics for ASP.net server custom controls.
Using System;
Using System.Web;
Using System.Web.UI;
Using System.Data;
Using System.Data.SqlClient;
Using System.Web.UI.WebControls;
Using System.ComponentModel;
Using Yeno.EnBiz.News.Tools;
Namespace Yeno.EnBiz.News.Controls
{
<summary>
Summary description of the Researchctrl.
</summary>
[ToolBoxData ("<{0}:localctrl_province runat=server></{0}:localctrl_province>")]
public class Localctrl_province:system.web.ui.webcontrols.webcontrol,inamingcontainer
{
Private TableCell _province;
public event Commandeventhandler Clickprovince;
<summary>
Renders this control to the specified output parameter.
</summary>
<param name= "Output" > HTML writer to write </param>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.