postback doesn't work in ascx

M

Maersa

Hi all,

i've got a control that has a button and when clicked on it would send a
postback, all of this works fine when the control is placed on a webform
(aspx) but doesn't work when placing it in a webcontrol (.ascx).

any ideas what may be the problem ?

thanks,
 
R

Rahul gade

You need to implement IPostBackEventHandler interface in your webControl to
Enable control for AutoPostBack.

Rahul Gade
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top