Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7528293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:20:21+00:00 2026-05-30T04:20:21+00:00

In the _LogonPartial.cshtml there is a actionlink for user to log on, I would

  • 0

In the _LogonPartial.cshtml there is a actionlink for user to log on, I would like to replace @:[ @Html.ActionLink("Log On", "LogOn", "Account") ]with a button or an image i can use onmouseover and onmouseout but I don’t know how

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:20:22+00:00Added an answer on May 30, 2026 at 4:20 am

    @Html.ActionLink("Log On", "LogOn", "Account", new { @class = "hover" })

    then use css to place an image on the link and another when the user hovers on it.

    .hover{  
    background: url('/path/to/myImage.png');  
    }  
    .hover:hover{  
      background: url('/path/to/myOtherImage.png');  
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How/Where can I declare an object like @User so that it can be referenced
I have LogOn.ascx control which is located on master page site.master: <% Html.RenderPartial(LogOn); %>
Are there any good tutorials for beginners for a simple fb log in and
In my scenario, the users can not register, there will be an admin, and
I have a Partial view (Login, with username, password and Submit button), and the
is there some way to share a partial razor view between areas? For example
I have a shared view in my _Layout.cshtml for my header named _Header.cshtml. I
Log in/Log out isnt working, and uploading photos gives an error in internet explorer.
I'm using a standard MVC 3 Web Project and I've written my HTML out
Trying to pass in data after valid logon to the _LogOnParial view but ViewBag

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.