i am using an HTML button having attribute runat="server" in the XSLT file in the webservice and then i want to call a function from code behind file onClick event of the Button. but i need to Initialize like this..
private void InitializeCompo nent()
{
this.Button1.Se rverClick += new System.EventHan dler(this.Butto n1_ServerClick) ;
this.Load += new System.EventHan dler(this.Page_ Load);
}
and also
private void Button1_ServerC lick(object sender, System.EventArg s e)
{
Response.Write( "Good");
}
but i am using a class in Web Service so where i should put these two methods, so that Button can Write Good on Click.
private void InitializeCompo nent()
{
this.Button1.Se rverClick += new System.EventHan dler(this.Butto n1_ServerClick) ;
this.Load += new System.EventHan dler(this.Page_ Load);
}
and also
private void Button1_ServerC lick(object sender, System.EventArg s e)
{
Response.Write( "Good");
}
but i am using a class in Web Service so where i should put these two methods, so that Button can Write Good on Click.
Comment