hiI am getting some wiered error in my web application.when i run my application i am getting method doesnot exist in the App_code eventhough there is method. when i refresh the page then application works.the error is:Compiler Error Message: CS1061: ''KPI'' does not contain a definition for ''GetDiv'' and no extension method''GetDiv'' accepting a first argument of type ''KPI'' could be found (are you missing a using directive or an assembly reference?)Source Error:Line 50: Drpdiv.AppendDataBoundItems = true;Line 51:Line 52: Drpdiv.DataSource = K.GetDiv();Line 53: Drpdiv.DataTextField = "Division"Line 54: Drpdiv.DataValueField = "Division"my App_code class is KPImy code behind: KPI K=new KPI();Dataset ds=K.GetDiv();App_code is having the method GetDiv(). but its giving the above error sometimes and not always. when the error comes I refresh the page then it works. What may be the problem? is it any refreshing problem? please help regarding this ASAP.Thank you 解决方案 这篇关于App_Code方法不存在错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-17 13:13
查看更多