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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:48:28+00:00 2026-06-10T08:48:28+00:00

I have 2 textboxes with the ID=situps and ID=pushups The reason they’re in Div’s

  • 0

I have 2 textboxes with the ID=”situps” and ID=”pushups” The reason they’re in Div’s is because I need them to use number pads only when used on a tablet. I was wondering if there was a way to retreive that ID in c#. Here is the code for the textboxes:

<div style="display:none">
    <asp:TextBox ID="situps" runat="server" Height="16px"   
    ontextchanged="TextBox1_TextChanged" Width="108px"></asp:TextBox>
</div>
<input onblur="document.getElementById('<%=Sits.ClientID %>').value = this.value" type="tel" style="width: 86px" />

<div style="display:none">
        <asp:TextBox ID="pushups" runat="server" Height="16px" 
        ontextchanged="TextBox1_TextChanged" Width="108px"></asp:TextBox>
</div> 
<br />
    Push-ups <input onblur="document.getElementById('<%=Push.ClientID %>').value = 
    this.value" type="tel" style="width: 86px" />
<br />

I’ve figure out how to retrieve Labels within a formview, but can’t figure out how to get DIV ID’s from texboxes outside of formview.

Thanks!!!

  • 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-06-10T08:48:29+00:00Added an answer on June 10, 2026 at 8:48 am

    I think I’ve made a simple mistake. I must’ve had duplicates of the names situps and pushups. I am now able to grab the ID!!

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

Sidebar

Related Questions

I have textboxes where i only want signed a max number of characters in.
I have several TextBoxes which need to allow only numeric inputs. The problem is
I have 4 textboxes which can only take a number. The problem is that
I have two textboxes. I need to validate them before taking any other action.
I have two textboxes which uses the same class (they both need to be
I have many textboxes that need to be enabled only when certain action are
I have two textboxes <input id='random_value' name='random_name' value='First' <input id='random_value' name='random_name' value='' I need
I have several textboxes where users can enter information into them. This can include
I have textboxes being generated by a repeater that use OnTextChanged with autopostback enabled
For example in Windows Form, you have textboxes textbox0 to textbox29 and you need

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.