The path is javascript path
var fileName = args.get_fileName(); lstImg.src = <%=GetListImageFilePath(fileName) %>
file name is error because it is javascript and not in .NET
how to put this argument in .NET Code
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.
You’ll need to use AJAX. One easy way to do it would be to use PageMethods. First, add a
[WebMethod]attribute to your method:This method must be static.
Then set
EnablePageMethods="True"on your script manager. Then you can call your c# code from JavaScript like this: