I noticed if I start doing this:
var companyID = <% %>;
I don’t get any intellisense letting me access my Model.object that the view is suppose to have available to me since it is strongly typed.
What am I missing here?
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 intellisense support for javascript is a little sketchy as it is. Make sure you set it up correctly. i just used this guide, and it at least it’s giving javascript intellisense.
now, to test your question, i just put the following on one of my pages:
and it did indeed write the SiteID out. no intellisense for the model, but it does work. hope that helps some.