What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 12535 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET AJAX > Trigger could not find the Control id of a button inside tabcontainer ...
Meet1424

Trigger could not find the Control id of a button inside tabcontainer

Replies: 1 | Posted by: Meet1424 on 5/12/2012 | Category: ASP.NET AJAX Forums | Views: 2113 | Status: [Member] | Points: 10  


Hi I have an updatepanel and a tab container inside it. Tab panel consists of two drop downs and a button in first drop down list of universities is coming from DB, and in second drop down list of course comes on postback of first drop down and when I try to save the selected index/value of drop down with course on button click then it always save only 0th index value. I tried to add postback trigger on updatepanel for my button but this error occurs "A control with ID 'btnSaveCourses' could not be found for the trigger in UpdatePanel 'updatePanel1' can anybody help me please???


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Arpan.Jwr
Arpan.Jwr  
Posted on: 6/3/2012 12:32:57 AM
Level: Starter | Status: [Member] | Points: 25

ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
scriptManager.RegisterPostBackControl(buton1);

Add these two line with in page-load event

Meet1424, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 1:04:36 PM