Thursday 11 January 2018

How to pass model data from partial view to JavaScript?

itemprop="text">


I have a strongly typed
with A model Partial view.



Is it possible to
pass the model data to an external
JavaScript?



My partial view temporary is like
this:



@model
MyProject.Models.myModel
src=".../myScript.js">

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...