There is a function in a class file name “User” in App_Code file. I need to access a function in the class
public static string GetUserRole(string returnValue)
from javascript which is placed in a seprate .js file in the folder name “js”
Please help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The simplest way to accomplish this is to utilize page methods. I better way is to use a web services or expose the function though some type of http get method or a web service .