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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:59:21+00:00 2026-05-12T22:59:21+00:00

Some weird stuff is happening, I am converting an application that used to use

  • 0

Some weird stuff is happening, I am converting an application that used to use javascript to open another web page in a tiny window for data input to use a ModalPopupExtender.

It seems to work fine, but in the OK event, when I do txtData.Text (the textbox in my modal popup), it comes back with a comma before the data, so if you type “Rabbit”, it comes back as “,Rabbit”.

Also when I use it multiple times, in another place where I might click to show it, and type “Fish”, it starts coming back with stuff like “,Rabbit,,Fish”

I don’t know why or how to stop it from doing this… any ideas?

  • 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-12T22:59:21+00:00Added an answer on May 12, 2026 at 10:59 pm

    For some reason it doesn’t seem to happen if the textbox is set to ReadOnly.

    I’m thinking there could be a workaround by displaying an editable textbox to the user, catching the keystrokes to it, and updating a readonly textbox that is hidden from the user.

    Still a bit messy, but I can’t roll back to May’s release because there’s another bug in that release with the ComboBox that I need to avoid!


    UPDATE:

    As a bit of background, I have a user control (ascx) inside my modal popup because I need to reuse it. The ascx has to handle the user’s input itself (the containing page doesn’t know what’s going on inside the control) so when the user clicks a button I do a callback and process the data. If a successful result is returned to the client callback function then I simulate a click of what the containing page thinks is the “OK” button which is actually invisible to the user.

    I’ve changed my code to add a hidden, readonly textbox and copy the text from the original textbox into the new one every time the text changes.

        <asp:TextBox runat="server" ID="txtName"></asp:TextBox>
    

    becomes

        <asp:TextBox runat="server" ID="txtName" onchange="document.getElementById(this.id + 'RO').value = this.value"></asp:TextBox>
        <asp:TextBox runat="server" ID="txtNameRO" ReadOnly="true" style="display:none;"></asp:TextBox>
    

    then when passing values back in the callback instead of getting the value of txtName, I use txtNameRO.

    I don’t think this will help if you’re doing a postback, but you could add a callback before the postback like I have. Hopefully this will help someone anyway!

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

Sidebar

Ask A Question

Stats

  • Questions 268k
  • Answers 268k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There is a horizontalAlign property, and a verticalAlign property, on… May 13, 2026 at 1:02 pm
  • Editorial Team
    Editorial Team added an answer The Thread interrupt mechanism is the preferred way to get… May 13, 2026 at 1:02 pm
  • Editorial Team
    Editorial Team added an answer While not ideal, it looks like the FTP Server is… May 13, 2026 at 1:02 pm

Related Questions

i've been playing some time with different builds of my application and there seem
I've written a little application that does some text manipulation and writes the output
Okay XHTML want's to play some games with me, I was doing fine, until
this is a weird thing. I created a simple SOAP based web service with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.