Solved

From html to ASP:NET

Posted on 2014-10-31
1
174 Views
Last Modified: 2014-11-01
I have two types of codes. One is html code and one is asp.net code. Both codes are working fine but I would like to exchange the asp.net code into the html code.  How? I cant seem to make it work.

I have this code

 <a class="dropdown-toggle" href="page-login.html">
                                    <i class="fa fa-user"></i> Sign In
                                    <i class="fa fa-angle-down"></i>
                                </a>

Open in new window

 
and I would like that to this instead
 <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>

Open in new window

0
Comment
Question by:Mickeys
1 Comment
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 500 total points
ID: 40416951
I think you would have to do it this way:

<a href="@Url.Action("LogIn", "Account")"  id = "loginLink">
    <i class="fa fa-user"></i> Sign In
    <i class="fa fa-angle-down"></i>
</a>

Open in new window


Giannis
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question