Click here to Skip to main content
11,925,896 members (61,369 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#3.0 C#
Server Error in '/' Application.
Compilation Error
Description: 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: CS1061: 'ASP.studentdetails_aspx' does not contain a definition for 'DropDownList1_SelectedIndexChanged' and no extension method 'DropDownList1_SelectedIndexChanged' accepting a first argument of type 'ASP.studentdetails_aspx' could be found (are you missing a using directive or an assembly reference?)
Source Error:

Line 70:             </td>
Line 71:             <td class="style5">
Line 72:                 <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="False"
Line 73:                     onselectedindexchanged="DropDownList1_SelectedIndexChanged">
Line 74:                     <asp:ListItem>BE</asp:ListItem>
Source File: d:\firmus21\FirmusJobportal\FirmusJobportal\StudentDetails.aspx    Line: 72
Posted 26-Feb-13 23:28pm
CHill60 27-Feb-13 4:35am
Do not repost - add comments to your original post or use the Improve question link to add detail. This question has been answered at

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


check your cs page having "DropDownList1_SelectedIndexChanged" event for dropdown. you have mentioned in design page. If you want fire this event create this event in your cs file or remove the following line from your design coding.



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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100