Click here to Skip to main content
15,921,250 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have used Masterpage.

In the child pages, I added UpdatePanel and properties of UpdatePanel and Triggers also.

But child pages are still refreshed.

How to avoid page refreshing in child pages for every PostBack?

Please help me on this.

I need very urgent.

<asp:contenetplaceholder id="main" runat="server">
<asp:scriptmanager id="scriptmanager1" runat=server">
<asp:updatepanel id="updatemain" updatemode="conditional">
<asp:content>
<asp:Dropdownlist id="ddlcity" runat="server"><asp:Dropdownlist>
<asp:content>




Like this my code has been going......................
Posted
Updated 1-Oct-13 0:36am
v4
Comments
raj ch 30-Sep-13 3:50am    
Use UpdateMode="CONDITIONAL" IN UPDATE PANEL
Member 10305964 1-Oct-13 1:46am    
I have used Update mode="conditional" ,"Always"
but,The page is refreshed when click events and Select index changed events firing.
Please,give information about more properties for update panel
Thanks7872 30-Sep-13 4:00am    
Where is the code?
Member 10305964 1-Oct-13 1:46am    
In contentplace holder
Thanks7872 1-Oct-13 1:48am    
I asked you to post your code.use Improve question

make use of UpdateMode. There are different value of this property which define when to refresh the page.
SG
 
Share this answer
 
Comments
Member 10305964 1-Oct-13 1:45am    
I have used Update mode="conditional" ,"Always"
but,The page is refreshed when click events and Select index changed events firing.
Please,give information about more properties for update panel
 
Share this answer
 
Comments
Member 10305964 1-Oct-13 1:45am    
I have used Update mode="conditional" ,"Always"
but,The page is refreshed when click events and Select index changed events firing.
Please,give information about more properties for update panel
SQL
When an UpdatePanel control is not inside another UpdatePanel control, the panel is updated according to the settings of the UpdateMode and ChildrenAsTriggers properties, together with the collection of triggers. When an UpdatePanel control is inside another UpdatePanel control, the child panel is automatically updated when the parent panel is updated.

The content of an UpdatePanel control is updated in the following circumstances:
•
If the UpdateMode property is set to Always, the UpdatePanel control's content is updated on every postback that originates from anywhere on the page. This includes asynchronous postbacks from controls that are inside other UpdatePanel controls and postbacks from controls that are not inside UpdatePanel controls.

•
If the UpdatePanel control is nested inside another UpdatePanel control and the parent update panel is updated.

•
If the UpdateMode property is set to Conditional, and one of the following conditions occurs:
◦
You call the Update method of the UpdatePanel control explicitly.

◦
The postback is caused by a control that is defined as a trigger by using the Triggers property of the UpdatePanel control. In this scenario, the control explicitly triggers an update of the panel content. The control can be either inside or outside the UpdatePanel control that defines the trigger.

◦
The ChildrenAsTriggers property is set to true and a child control of the UpdatePanel control causes a postback. A child control of a nested UpdatePanel control does not cause an update to the outer UpdatePanel control unless it is explicitly defined as a trigger.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900