jquery - Send HTML from C# -


hi want append html in c# here code that

        rework = "<label class=\"assignmenticon\" title=\"tinyc count    "+tinykcount+"\"bigcount:"+reworkcount+">" + samplecount + "</label>"; 

and code putting in jquery data tabl.so,it working absolutely fine in tooltip showing "tinyc count" , value want show bigcount along value in new line in tool tip bu unable append here

tinykcount,reworkcount 

are variable passing c#,i can jquery dont want make additional call it

try this:

in controller:

string rework = "<label class=\"assignmenticon\" title=\"tinyc count:" + tinykcount + "\n bigcount:" + reworkcount + "\">" + samplecount + "</label>"; 

you can pass view using viewbag controller

 viewbag.t = rework; 

in view:

@html.raw(viewbag.t) 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -