Click here to Skip to main content
15,892,805 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
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>



XML
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="False"
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                    <asp:ListItem>BE</asp:ListItem>
                    <asp:ListItem>BSc</asp:ListItem>
                    <asp:ListItem>B.Com</asp:ListItem>
                    <asp:ListItem>MBA</asp:ListItem>
                    <asp:ListItem>MCA</asp:ListItem>
                    <asp:ListItem></asp:ListItem>
                </asp:DropDownList>



am getting error in line 72.
Posted
Comments
willington.d 27-Feb-13 4:23am    
What is the error?
karthikeyan9966 27-Feb-13 4:24am    
am getting error in line 72

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

Source File: d:\firmus21\FirmusJobportal\FirmusJobportal\StudentDetails.aspx Line: 72

hi,

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.

onselectedindexchanged="DropDownList1_SelectedIndexChanged"


regards,
Prakash.T
 
Share this answer
 
Comments
karthikeyan9966 27-Feb-13 4:33am    
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: CS0123: No overload for 'Registeration' matches delegate 'System.EventHandler'

Source Error:


Line 236: <tr>
Line 237: <td class="style2">
Line 238: <asp:Button ID="Register" runat="server" Text="Register"
Line 239: onclick="Registeration" />
Line 240: </td>

Source File: d:\firmus21\FirmusJobportal\FirmusJobportal\StudentDetails.aspx Line: 238

ERROR IN 238
The error message is pretty clear:
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
Check your code behind file - you do not have the method defined (you may have removed the method, or changed it's name accidentally)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900