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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:34:01+00:00 2026-05-27T14:34:01+00:00

Pretty basic set-up. I’m creating a number of textboxes, all calling a function during

  • 0

Pretty basic set-up. I’m creating a number of textboxes, all calling a function during the onchange event to update their value to the database. These boxes are dynamically created in the backend because the data changes based on specific criteria that can be changed on the page. Here’s the creation of the boxes:

Dim t as TableRow
tC = New TableCell
Dim txtBox As New TextBox
txtBox.ID = "SampleTextBox" & counter
txtBox.Text = dt.Rows(i)(11).ToString
txtBox.ClientIDMode = UI.ClientIDMode.Static
txtBox.Attributes.Add("onchange", "return UpdateLabTestValue('" & txtBox.ClientID & "');")
tC.CssClass = "padBoth"
tC.Controls.Add(txtBox)
t.Cells.Add(tC)
tblResults.Rows.Add(t)

On the HTML side of the ball:

<asp:UpdatePanel ID="uplResults" runat="server">
  <ContentTemplate>
    <div class="formContentLeft">
      <fieldset class="collapsible" style="width: 90%;">
        <legend>Results</legend>
          <div class="formContentLeft">
            <div class="formField">
              <span class="formInline">Status: </span><span class="formInput">
              <asp:DropDownList ID="dlStatus" runat="server" /></span>
            </div>
          </div>
          <br />
          <br />
          <asp:Table ID="tblResults" runat="server" />
       <div class="centeredButtonRow">
         <asp:Button ID="btnSaveResults" runat="server" Text="Save" />
       </div>
       <asp:Label ID="errorMessage" runat="server" CssClass="errorMessage" />
      </fieldset>
     </div>
    </ContentTemplate>
   </asp:UpdatePanel>

When I enter a number into the Textbox, the event fires as expected, but it fires twice. Any thoughts?

  • 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-27T14:34:02+00:00Added an answer on May 27, 2026 at 2:34 pm

    Changed this to an “onblur” and it works. There must be something else causing the fire for the change, although the same textbox is firing it off twice. In any case, I resolved this by switching to onblur.

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

Sidebar

Related Questions

Pretty basic programming question, I know PHP have a function for it, but does
I have a pretty basic windows form app in .Net. All the code is
I'm trying to set up a pretty basic hover animation in jQuery. Mouse over
This might be a pretty basic question, or peculiar to my set up (hopefully
I am creating a record of Widgets with Hibernate. It's pretty basic. I've got
I have a pretty basic question. Assuming I have a UINavigationController set up for
I successfuly changed an instruction to a NOP since it is pretty basic: set
Pretty basic question, I know... I just don't know how it's done. I want
Given a pretty basic source tree structure like the following: trunk ------- QA |--------
I have created a pretty basic Flash website for a client and am having

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.