With the Razor view engine, I just want to convert a path like this:
src="<%=MyImageServer %>image1.jpg"
into
src="@MyImageServer[PROBLEM_HERE]image1.jpg"
You see the problem… Any Suggestion?
Note: MyImageServer is a variable with a path.
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.
Wrap in parentheses:
But you probably want to avoid such tag soup in your views and write a custom HTML helper:
which will take care of generating the proper image.