Hello Doc's,
I am using asp.net MVC for my application.
I am dynamically generating HTML content from my controller using STRING variable. Below mentioned is the code snippet generaed by my controller using c#
<ul id=\"dhtmlgoodies_tree2\" class=\"dhtmlgoodies_tree\"><li id=\"1\" > <%=Ajax.ActionLink(\"ATI Display Driver\", \"Test/5\",new AjaxOptions(){UpdateTargetId=\"returnData\"}) %>
Now when above code reaches my VIEW, my scriplet ( <% %>) tag consists of literal ' \ ' which is not executed. Literals in pure HTML code have no problem.
When I hardcoded above snippet inside my view it executes perfectly which has no literal ' \ ' .
<ul id=\"dhtmlgoodies_tree2\" class=\"dhtmlgoodies_tree\"><li id=\"1\" > <%=Ajax.ActionLink("ATI Display Driver", "Test/5",new AjaxOptions(){UpdateTargetId="returnData"}) %>
After generating string inside controller I tried to replace literal but it gives me RUN TIME error. Because doublequotes ( " ) without literal (' \ ' ) is not permitted.
I would really appreciate If some one could suggest me way to generate the HTML.
Thank You
Jaikit Savla