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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:43:57+00:00 2026-05-24T06:43:57+00:00

I wanna to store some hidden data in my text box . Is there

  • 0

I wanna to store some hidden data in my text box . Is there any property like CommandArgument for the buttons to store my data? The text boxes are in the template field in a grid view and i get those data in text changed event of every one.

EDIT:

TabIndex='<%#((GridViewRow)Container).RowIndex%>'

protected void txt_evaluateWeights_TextChanged(object sender, EventArgs e)
        {
            calc();
           int index = ((RadTextBox)sender).TabIndex;
           ((RadTextBox)gv_Evaluation.Rows[index + 1].Cells[3].FindControl("txt_evaluateWeights")).Focus();
        }

I wanna to replace the TabIndex with a convenient property to hold my index.

  • 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-24T06:43:58+00:00Added an answer on May 24, 2026 at 6:43 am

    I’d suggest that you use the HTML5 “data-” attribute. Then you can easily extract it using jquery.

    <textarea name="MyTextArea" data-arbitraryName="HIDDEN TEXT" cols="40" rows="5">
        Enter your comments here...
    </textarea>
    
    <input type="text" name="MyInput" data-arbitraryName="HIDDEN VALUE" />
    

    Then you’ll extract it like so

    $("textarea").data("arbitraryName") === "HIDDEN TEXT";
    $("input").data("arbitraryName") === "HIDDEN VALUE";
    

    So now with ASP.NET WebForm controls, you can add the arbirtaryName to your RadTextBox in your codebehind

    var foo = "HIDDEN TEXT";
    RadTextBox1.Attributes.Add("arbirtaryName", foo);
    

    Here’s some further reading
    http://ejohn.org/blog/html-5-data-attributes/
    http://api.jquery.com/data/

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

Sidebar

Related Questions

Hey guys, I have some questions would like to ask: I wanna ask how
any web service i can use to store small amounts of data (thinking XML
I have a condition such as 'a==1' stored in property $(c) and I wanna
I wanna stop the reading of my text input file when the word synonyms
I wanna do something like the safari app when fill a form, so when
I wanna rewrite links like index.php?page=entry&id=15&action=edit to entry/15/edit . This is how my .htaccess
I have a array which store some country names im doing a search module
I wanna know if it's possible to call php api like in extjs 3.x.x.
I have a tuple that i wanna store its elements, I'm trying to insert
I retrieve few data from database then store it into hashmap and display it

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.