tags:

views:

19

answers:

2

Hi,

I am using AJAX extension in visual studio 2005. First of all i am created a Web custom control which contains Dropdown list. I have also set AutoPostBack="true" for getting its SelectionEventChange event.

I am added this web control on another page inside a UpdatePanel.(i added dynamically on another page).

MyControl = (MyControl) LoadControl("MyControl.ascx")

My problem is when i select the values from dropdown it refersh my whole update panel.

What can i do please help me. I searched in google and somebody says Use triggers

<Triggers>

<asp:AsyncPostBackTrigger ControlID="DropDownList1" EventName="SelectedIndexChanged" />

But on AJAX Extension i am not getting it please Help me.

A: 

Hi Prashant, Triggers tag is part of update panel. Also look at some other important properties of UpdatePanel and search on how to use and referesh nested update panels.

lakhlaniprashant.blogspot.com
other didn't work.
prashant
A: 

Add this web custom control inside another(other then one you are already having, that is, have Multiple UpdatePanels) UpdatePanel, and call .Update() manually, in order to refresh only the web control.

Dont forget to set the UpdateMode to Conditional.

KMan
i tried that.it dynamically added the control so when timer runs it will unload the whole control from Page.
prashant
Can you explain, **so when timer runs it will unload**?
KMan