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 !






Commit() error while using PopupControlExtender of AjaxToolKit


Posted Date: 19 May 2008    Resource Type: Errors and Solutions    Category: General
Author: BharathiMember Level: Diamond    
Rating: Points: 5



Error :
The control '' already has a data item registered.
Parameter name: control

Solution:

The above error occurs with the PopupControlExtender of AjaxToolKit. This occurs when the commit() function of the control is called. The reason is because the commit() might be called twice or the event where the commit funtion is called would be fired twice. ie, the commit() fires before the popupcontrolextender is closed.

To solve this instead of calling the commit() function, assign the value directly to the target control and call the cancel() of the popupcontrolextender. Like,

Targetcontrol1.text = sourcecontrol1.text;
popupcontrolextender.cancel();





Responses

Author: Kumar Velu    02 Jun 2008Member Level: Diamond   Points : 0
thanks..


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

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: The Project is not configured to be debugged
Previous Resource: Problem with UriBuilder
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