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

  • Home
  • SEARCH
  • 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 3225268
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:19:11+00:00 2026-05-17T16:19:11+00:00

I have a tag element in .aspx page: <a id=loginLink runat=server class=loginLink href=# onclick=$(‘registerform’).hide();

  • 0

I have a tag element in .aspx page:

 <a id="loginLink" runat="server" class="loginLink" href="#" onclick="$('registerform').hide(); $('signin').show(); this.style.display='none';   $('back').show(); $('reg-signin-email').focus(); return false">Already signed up? Log in here</a>

and trying to get loginLink.ClientID , but it spits back ct100_main_loginLink. How do I get original ‘loginLink’ id in the same aspx page?

Tried var ctrl = document.getElementById(‘<%# loginLink.ClientID %>’);
and it didnt work..

example:

<asp:Content runat="server" ContentPlaceHolderID="Main">

        <a id="loginLink" runat="server" class="loginLink" href="#" onclick="$('registerform').hide(); $('signin').show(); this.style.display='none';   $('back').show(); $('reg-signin-email').focus(); return false">Already signed up? Log in here</a>

        <script type="text/javascript">   alert('diplay here original loginLink ID instead of ct100_Main_LoginLink');  </script>
</asp:Content>
  • 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-17T16:19:12+00:00Added an answer on May 17, 2026 at 4:19 pm

    if you know the name, and that’s what you want to have available in js, you can just type it in js. alternatively, if you want the control to provide its own id, you could do

    <script type="text/javascript">   
      alert('<% =loginLink.ID %>');  
    </script> 
    

    although I don’t see the point in that. if you need to grab the element during a javascript routine, you’ll need the ClientID value as there won’t be any element on the page with the short-form id in the example I’ve given.

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

Sidebar

Related Questions

I have an element that is similar to a tag (because it has word-wrap:
I have a span element inside a table td element. The span tag has
I have three tables tag , page , pagetag With the data below page
I have two elements (a button and an anchor tag) both with a dynamical
I have a .tag file that requires a JavaScript library (as in a .js
I have an img tag in my webapp that uses the onload handler to
I have a div tag styled through CSS. I set the padding to 10px
I have a Div Tag which contains 4 child Div Tags <Div id=Parent> <div
If I have a script tag like this: <script id = myscript src =
I have a <table/> in a ViewUserControl that I have given the tag a

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.