tags:

views:

159

answers:

2

i have a custom control which consists of html select and html inputtext

and i want to define the events for that custom control running at server in

c# page ?

i wan to write code for that custom control click event in c# page?

can any one help me in that.

+1  A: 

Here are some tutorials and articles please go through them:

Creating Composite Custom Control

Custom and User Controls (O'Reilly Programming ASP.Net)

MSDN Article: Creating Custom ASP.Net Server Control

EDIT:- Please read this thread at asp.net forums about problems with htmlselect. The OnServerChange event is described in details in this MSDN article

If possible please consider using ASP.net DropDownList.

TheVillageIdiot
i have created custom composite control it's functionlity is to filter the htmlselectbox based on the characters in htmlinputbox .it works well,and when the control is applied to application ,i am not able to describe event for onserverchange event for html selectbox in c#, and i am able to fire onclick event for that control in javascript.
subash
A: 

hi thank u for ur answer, but the problem is

i have created custom composite control it's functionlity is to filter the htmlselectbox based on the characters in htmlinputbox . it works well,and when the control is applied to application ,i am not able to describe event for onserverchange event for html selectbox in c#, and i am able to fire onclick event for that control in javascript.

subash