Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have an error when loading webform and the error is written below

'ASP.frm_repairpart_aspx' does not contain a definition for 'ddlareaofamc_SelectedIndexChanged1' and no extension method 'ddlareaofamc_SelectedIndexChanged1' accepting a first argument of type 'ASP.frm_repairpart_aspx' could be found (are you missing a using directive or an assembly reference?)

What would be the solution please give me idea.
Thanks in advance.
Posted

C#
ddlareaofamc_SelectedIndexChanged1

this is the method and hope you would not define this method in cs file.
right click on ddlareaofamc
goto properties
events
see in events onselectedindexchanged
ddlareaofamc_SelectedIndexChanged1 method will appear
enter on this method
you will be appear on cs page with this method
 
Share this answer
 
v2
Comments
singh7pankaj 22-Oct-11 3:18am    
What i done i just took control from tool box and put into web form and double click on dropdownlist then it gives this event after loading it gives error
Make Sure U have defined the 'SelectedIndexChanged1' event on the form
 
Share this answer
 
Comments
singh7pankaj 22-Oct-11 3:21am    
Yeh I did that and this is code
protected void ddlareaofamc_SelectedIndexChanged1(object sender, EventArgs e)
{
Response.Redirect("freetrail.aspx");
}
Try to check the mark up whether you have given the right method name to OnSelectedIndexChanged property .
 
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