How to convert Razor Page to String in Controller -



How to convert Razor Page to String in Controller -

just want inquire on how convert whole razor page(.cshtml) string in controller.

i have created action template below:

public actionresult template() { homecoming view(); }

and in page shows below:

<div style="margin-left:auto; margin-right:auto; width: 940px"> <div class="logo"> <img src="/content/assets/img/logo.png" /> </div> <div class="dbox"> <label class="clabel">test1 # </label> <span>: value1</span><br> <label class="clabel">test2 </label> <span>: value2</span><br> <label class="clabel">test2 </label> <span>: value3</span><br> <label class="clabel">test3 : </label> <span>: value4</span><br> <label class="clabel">test4 </label> <span>: value5</span><br> <label class="clabel">test5 alter </label> <span>: value6</span><br> </div> </div>

how convert string?

razor controller

Comments

Popular posts from this blog

php - How to pass multiple values from url -

database - php search bar when I press submit with nothing in the search bar it shows all the data -

ios - How to load .png images from Documents folder of an app -