Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
can any one clear my error in DropDownList?
March 13, 2013
Hi,I have dropdownlist in one page,in that page when i am executing this,am getting error as follows......
An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message:
CS0123: No overload for 'DropDownList2_SelectedIndexChanged' matches delegate 'System.EventHandler'
Line 113:style="color: #006600; font-weight: 700" Text="Select The Domain"></asp:Label>
Line 114:<span class="style21"><strong> </strong></span>
Line 115:<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True"
Line 116: onselectedindexchanged="DropDownList2_SelectedIndexChanged">
Please can any one suggest me what should i do,because i tried it,but id didn't find whee should i change.
Posted Date: March 13, 2013 Points: 20
It seems like you do not have method DropDownList2_SelectedIndexChanged in your .vb or .cs page
remove this line onselectedindexchanged="DropDownList2_SelectedIndexChanged" from your .aspx page and wire the event again by double click on DropDownlist
Posted Date: March 14, 2013 Points: 20
check if DropDownList2_SelectedIndexChanged is taking object and EventAgrs parameters or not????
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
If still problem persists , post the code to resolve the issue:-)
Posted Date: March 17, 2013 Points: 20
You have double clicked on the DropDownlist control and it has created a event handler
and then you have incidently deleted the code in your code behind. That's why it is expecting the code in compile time. Please double click on the DropDownlist again so that it would create the code in your page and you would get rid of this error.
To post reply
Related Questions Related Questions
While running ASP.NET in IE it shows error like this
How to access triggers error message in asp.net..
how to fill the dropdownlist
Error at reading xml data in C#.NET
Error while running on IIS
Error In Encryption
Sort items in combobox or dropdownlist in Asp.net
Error in Web Setup Project while using Installer Class aError in Web Setup Project while using Installer Class and Custom Actions "Object reference not set to an instance of an object"nd Custom Actions "Object reference not set to an instance
ASP.NET - Error throwing or logging
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend