C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Error with UpdatePanel control - Solution


Posted Date: 06 Aug 2008    Resource Type: Errors and Solutions    Category: General
Author: KoshishMember Level: Silver    
Rating: Points: 5



Error : Event web control which we want to update through ajax is in UPdate panel, everythnig is right, still page postbacks

Solution:- check in web.config file mode of xhtmlconformance, if it is "Legacy" then Page post backs and update panel won't work. To rresolve this,
Add in web.config file


<location path="name of page">
<system.web>
<xhtmlConformance mode="Transitional"/>
</system.web>
</location>


If u want to apply update panel to all pages in your web application then there is no need to use a location tag. Just change mode of xhtmlconformace to "Transitional".




Responses

Author: Ramakrishna    12 Aug 2008Member Level: Bronze   Points : 1
Hi,

assign the triggers for update panel.

Code:


//Code



//btnClick is name of the Button





Author: Koshish    12 Aug 2008Member Level: Silver   Points : 2
Ya

We can assign Triggers to Update panel as







If u don't want to add triggers and want update updatepanel explicitly then simply use

up1.update();
in server side code. Here, up1 is ID of update panel.



Author: Deepak S    14 Aug 2008Member Level: Gold   Points : 2
Hai,
W can assign Triggers to update panel as:











Author: Milan Vachhani    04 Sep 2008Member Level: Bronze   Points : 1
You have not selected website as a Ajax Enabled web site.
So this type of problem arrive.
So one solution for this problem is that if you want to use ajax control than create website as ajax enabled web site at the time of creating a website


Author: Koshish    05 Sep 2008Member Level: Silver   Points : 1
Ya you are right, website is not seletced as ajax enabled. There is also case when u want to apply ajax to already created web site then you can't modify type of website.


Author: Prafulla S Shimpi    15 Sep 2008Member Level: Gold   Points : 2
This one is nice.

But if you are using AJAX, make sure you are using most of the controls form AJAX.

If you are using just 1-2 controls from AJAX, then it is worth to use custom controls or traditional one with added functionality. It is because, when you use even a single AJAX control, it internally generates long javascript embedded in web page, which makes page size heavier.

Generally web page should have minimum size and minimum database call to work efficiently i.e. with faster speed and better results.



Author: Koshish    15 Sep 2008Member Level: Silver   Points : 0
Thanks for your kind suggestion


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Update Panel wont work  .  Update Panel not working and Page posts back  .  Update Panel not working  .  Error with UpdatePanel Control  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: OleDbException - Operation must use an updateable query
Previous Resource: Failed to add web part (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) exception
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use