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

  • Home
  • SEARCH
  • 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 718357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:31:02+00:00 2026-05-14T05:31:02+00:00

I am trying to polish up a program a program that I have converted

  • 0

I am trying to polish up a program a program that I have converted from a Windows Form in to an ASP.NET Web Application. I have several questions:

1.) I have a drop down box where users can select their variables, but users can also enter their variables manually into various text fields. What I want is for the drop down box to show a string like “Choose Variables” when ever the user enters their variables manually. I want this to happen without having to reload the page.

2.) In the Windows Form version of this application I had a RichTextBox that populated with data (line by line) after a calculation was made. I used “AppendText” in my Windows Form, but that is not available in ASP.NET, and neither is the RichTextBox. I am open to suggestions here, I tried to use just a text box but that isn’t working right.

3.) In my Windows Form application I was using “KeyPress” events to prevent incorrect characters from being entered into the text fields. My code for these events looked similar to this:

Private Sub TextBox_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox.KeyPress

        If (e.KeyChar < "0" OrElse e.KeyChar > "9") AndAlso e.KeyChar <> ControlChars.Back AndAlso e.KeyChar <> "." Then
            e.Handled = True
        End If

End Sub

How can I make this work again… also without reloading the page.

4.) This is not a major issue, but I would like all of the text to be selected when the cursor enters a field. In my Windows Form application I used “SelectAll”, but again, that is not available in ASP.NET

Thanks in advance.

  • 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-14T05:31:03+00:00Added an answer on May 14, 2026 at 5:31 am

    1) You will have to do this in Javascript by changing the text of the dropdown or disabling it from the TextChanged event using something like this

    2)You can use a Textbox with the TextMode set to MultiLine. Then you can use Textbox1.Text = Textbox1.Text & newString to append text to the end.

    3) You can either do this in javascript or by using a regular expression validator (my suggestion).

    4) Do this in javascript using something like this

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

Sidebar

Ask A Question

Stats

  • Questions 376k
  • Answers 376k
  • 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 Take a look at this free web control from Microsoft:… May 14, 2026 at 8:27 pm
  • Editorial Team
    Editorial Team added an answer all browsers, except IE8 (and maybe earlier versions). I checked… May 14, 2026 at 8:27 pm
  • Editorial Team
    Editorial Team added an answer Can you nest your chart into a ScrollViewer: <ScrollViewer HorizontalScrollBarVisibility="Auto>… May 14, 2026 at 8:27 pm

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.