User Control Firing Multiple events.

M

Mike Housey

For a simple explanation of my problem:

I have created a web form(wf1.aspx) containing a panel
and 1 user control(uc.ascx) containg a dropdown list and a
text box.

On the PageLoad Event of wf1:

if(!IsPostBack)
{
Control ctl = LoadControl("uc.ascx");
Panel1.Controls.Add(ctl);
Session["ctl"] = ctl;
}
else
{
Control ctl = (Control)Session["ctl"];
Panel1.Controls.Add(ctl);
}

My Problem is that the on_click event of the dropdown list
is called 1x on the first click 2x on the second click,3x
on the third.... and so on.

Can anyone please tell me whazzup ? This behaviour does
NOT occour in .net 2003, only in 2002 and framework 1.3
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top