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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:58:03+00:00 2026-06-11T17:58:03+00:00

I am not able to get the event GotFocus, LostFocus of a textbox while

  • 0

I am not able to get the event GotFocus, LostFocus of a textbox while creating a website. I just wanted. As I have asked earlier in my question how to get the value of one textbox into another textbox when focus is text to the other textbox in winforms. I was able to work it done in windows form. But, when I try the same in a website, I am not able to get these events their…..Should Java script be used to get these events? Pelase help

  • 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-11T17:58:04+00:00Added an answer on June 11, 2026 at 5:58 pm

    GotFocus, LostFocus events for TextBox are in Windows Control but for WebControls, You will not get these, Instead of you should try clientside scripting (Javascript).

    In javascript you will get the event focus and blur for a textbox (which is actually a input type=”text” on web page) , and you can use these for your purpose.

    For setting an event handler, use on + event as event handler and provide the js code which to execute.

    like for blur event you should add attribute onblur and for focus add attribute onfocus

    In Javascript you can try, if your aspx has TextBox as

    <asp:TextBox runat="server" id="textbox1" onblur="SetTextInTextBox2()" />
    <asp:TextBox runat="server" id="textbox2" onfocus="SetTextInTextBox2()" />
    

    in javascript

    function SetTextInTextBox2()
    {
        document.getElementById('textbox2').value = document.getElementById('textbox1').value;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not able to get MouseDoubleClick event fired for my ListBox. I have
I have few Question for which I am not able to get a proper
I have not been able to get the break point I have on LinkButtonDelete_Click
I am not able to get document.ready event or attach button click event. What
In this fiddle, i am not able to get the Dynamic Event Handler onclick
not able to get this, can someone help for this LINQ query? select col1,
I am not able to get the hg head or status for a given
I'm not able to get this persistence file correct... I do not find any
I am not able to get my jwysiwyg and Jhtmlarea text editors to work
i tried to search this but was not able to get any proper help.I

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.