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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:12:57+00:00 2026-06-13T12:12:57+00:00

Hi i am writing asp textbox controls. I want my pass the id using

  • 0

Hi i am writing asp textbox controls. I want my pass the id using keypress event. Below code i am using but i m getting error.

The server tag is not well formed.

.aspx page

<asp:TextBox ID="tbxId" runat="server" Text='<%# Eval("ID") %>' Enabled="false">

<asp:TextBox ID="tbxValue" onkeyup="LoadAttributeValueLong("<%# Eval("ID") %>")" runat="server" 
 MaxLength="40" Text='<%# Eval("VALUE") %>'></asp:TextBox>

If anyone have any idea than please help me in this..

  • 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-13T12:12:58+00:00Added an answer on June 13, 2026 at 12:12 pm

    Binding expressions can’t start from the middle of an attribute value. You need to write it like that:

    <asp:TextBox onkeyup='<%# "LoadAttributeValueLong(" + Eval("ID") + ")" %>'
    

    To pass also the value of the tbxId textbox:

    <asp:TextBox onkeyup='<%# "LoadAttributeValueLong(" + Eval("ID") + ",\"" + tbxId.ClientID + "\")" %>'
    

    And in your js function:

    LoadAttributeValueLong(id, tbxId)
    {
       var tbxIdValue = $('#' + tbxId).val(); // jquery version
       var tbxIdValue = document.getElementById(tbxId).value; // non jquery version
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi all i am writing calculation of varius asp textbox controls. I want my
Using the Pluralsight demos found in asp.net I created autocomplete textbox. I want to
I am writing various ASP.NET Server controls and am needing to remove the tags
I have a textarea in C#, please see below code: <asp:Label ID=lblQuestions runat=server CssClass=addinfo>
Currently I'm writing code to make variable sized tables with asp:controls in them that
Writing Classic ASP code in JScript has a lot going for it: more humane
I'm writing a ASP.NET Web Application and I'm running into trouble getting the CSS
I am writing an ASP.NET custom control. In my custom control code, I find
I'm writing a ASP.NET application used within our company. Now I want to send
I am writing in asp.net c#. I want a control similiar to RequiredFieldValidator except

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.