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 7189233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:15:29+00:00 2026-05-28T19:15:29+00:00

I have following asp hyperlink: <asp:HyperLink ID=a runat=server Text=return NavigateUrl=https://google.com/></asp:HyperLink > What i want

  • 0

I have following asp hyperlink:

<asp:HyperLink ID="a" runat="server" Text="return" NavigateUrl="https://google.com/"></asp:HyperLink>

What i want is that when user switches to another page instead of this text an image should show up.
Is there any way to change text to image using css? or jquery? or is there any .net function that does that?

  • 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-28T19:15:30+00:00Added an answer on May 28, 2026 at 7:15 pm

    use the imageurl attribute on asp:hyperlink

        <asp:HyperLink ID="myHyperlink" runat="server" 
                       ImageUrl="imageLocation.png" Text="return"        
                       NavigateUrl="https://google.com/">
        </asp:HyperLink>
    

    Edit: You could give the hyperlink a specific id and target it’s first child which would be the image and use .toggle() to remove it and then add the text you want with .html().

    In Jquery:

    $(document).ready(function(){
        $("#<%= myHyperlink.ClientID%>").children( ":first" ).toggle();
        $("#<%= myHyperlink.ClientID%>").html("This is text");
    });
    

    Think that should work. Sorry for not reading properly before.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following hyperlink in asp.net: <asp:HyperLink ID=a runat=server ImageUrl=1.png NavigateUrl=https://google.com/></asp:HyperLink> I want to
I have used following code : <asp:HyperLink ID=Time runat=server Text='<%#Eval(CREATED_ON)%>'> </asp:HyperLink> It will display
On an aspx page I have following hyperlink: <asp:HyperLink ID=HyperLink1 runat=server NavigateUrl=#Bottom CssClass=ToBottom>To Bottom
I have several links that look like the following: <ul> <li><asp:HyperLink ID=lnk1 NavigateUrl=~/section/sub-section/page1 runat=server>My
I have the following ASP.NET RadioButtonList: <asp:RadioButtonList ID=rbl runat=server> <asp:ListItem Text=Type1 Value=1 /> <asp:ListItem
I have the following ASP code: <asp:LinkButton ID=LinkButton1 runat=server Text=edit item onclick='AddItem.aspx?catid=<%# Eval(CollectionID)%>' />
I have the following ASP page: <asp:Content ID=Content2 ContentPlaceHolderID=ShellContent runat=server> <form runat=server id=AddNewNoteForm method=post>
I have following view <asp:Content ID=Content2 ContentPlaceHolderID=MainContent runat=server> <h2>Tables <%=ViewData[RetriverName] %></h2> <%using (Html.BeginForm(ResfreshSelectedTables, Home))
If I have the following in an ASP.NET Web Form: <asp:TextBox runat=server ID=tbxUser/> and
I have the following asp.net markup: <asp:TextBox ID=txtPassword runat=server TextMode=Password ValidationGroup=passwordValidation></asp:TextBox> <asp:RequiredFieldValidator ID=RequiredFieldValidator1 runat=server

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.