Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Getting error or unable to call App_Code from code-behind?
Question Posted on 08 Apr 2022

Home >> DotNet >> ASP.NET >> Getting error or unable to call App_Code from code-behind?




Getting error or unable to call App_Code from code-behind?
Once you are doing with some visual studio version and you have added a App_Code folder and add a class file in it. You will not able to access that class file in your code-behind file. And to visible class file in code-behind you need to do below changes in properties of class files as given in below screen.\

CLass File Prop

Now right click on class1.cs and go to property section of class file. And you will get below screen



Change prop

Now change the build action to "Compile" and now run your application your problem will be solved.
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Use of Calendar control in dotnet with code
How to improve Front End UI performance of dotnet web application?
File upload in dotnet
reverse a string
function of garbage collector






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |