Solved

From html to ASP:NET

Posted on 2014-10-31
1
167 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 6 18
Error viewing ASP page 12 146
Automatic sizing of HTML.TextAreaFor based on content 1 26
WEB Farm 6 60
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
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…

929 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now