how to fire a postback event

F

flashk

Hi, All

I design a composite custom control, which has three dropdownlists in
it. I find as long as one of the dropdownlist control's id is assigned
using uniqueid property of my custom control then a postback event
will be fired, but since my dropdownlist has javascript event which
does some function and using dropdownlist ids to identify them, since
uniqueid is generated dynamaically, it is difficult for my js function
know the id, is there any other method to solve the problem, i tried
create a hidden type input with id = uniqueid, but it seems postback
event can't be fired... needs help thx a lot

regards
Kevin
 
M

Matt Dockerty

Not much experience with custom controls but this should work. Call
Page.RegisterRequiresPostBack(control) to request that your parent control
is notified about the post data. You then need to implement
IPostBackDataHandler on the control to recieve the postback data.

hth, Matt
 

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

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top