You must Sign In to post a response.
  • Category: ASP.Net MVC

    Converting html template to mvc4

    hai every one,
    i have html templates.i want display that pages in exiciting mvc applications.how can do this please help me.
    Thanks and Regards,
  • #761369
    If you are not using any server side controls,
    If you are using only html contents, Copy the html content into the created view.

    MVC view will accept all the html controls.

    By Nathan
    Direction is important than speed

  • #761374
    but i have styles and scripts and font,images also how can repalce it.

  • #761376
    You can use the same Styles, Scripts, Fonts, Images etc...
    By Nathan
    Direction is important than speed

  • #761380
    Hello Sadiq,

    Add the template's html in _Layout page which works as a master page for mvc.

    For content part(which will change for every page) use @RenderBody() in Layout page and use content part html on every view.

    Add Layout page _Layout.cshtml for every view.

    Hope this will help you.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #761395
    Hi
    Sadiq

    1.Scripts
    If you need add script means MvcProject->Scripts

    2.Css

    If you need add script means MvcProject->Content


    3. Master Page Means
    If you need change master Page means MvcProject->View-> Shared->_Layout.cshtml

    I have attached Image given below

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

    Delete Attachment


Sign In to post your comments