locked
CS1647 Asp.Net MVC HTML5 inline svg RRS feed

  • Question

  • Hello
    For my bachelor thesis I have to write a web application with Microsoft ASP.Net MVC technology.
    I just started with the project, that intends to put an SVG inline into a web page and have the possibility to modify (extend) it later on from the server.

    First I created a simple HTML5 page with the required code for a tiny svg (tiny for my Project.. they will get bigger)

    This proved to work fine.

    So I created a simple MVC Project from the template and just copied the <svg> Region of my HTML5 page to the Index.cshtml

    When compile and run, the browser displays the above mentioned error CS1647

    I understand that the <svg> tag contains a lot of data in this case, but as a fact as soons a there are paths elements involved, the amount of characters is larg  (my svg contains app. 440'000 char's) and if all Sub Elements of <svg> are concatenated to a single string for parsing and evaluation this might lead to such errors.

    Is it intended, that the compiler supports inline svg as according to html5 specification?

    I can send the Project or just parts of it as required.

    Any help or input is aprechiated.

    Best regards

    Christian

    • Moved by Kristin Xie Sunday, June 21, 2015 6:59 AM Asp.Net MVC related
    Saturday, June 20, 2015 4:07 PM

Answers