Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

textbox enter

I have a requirement give me a idea to do that.
When I enter a value in the text box and press enter I have to display some values in the other text .
Tell me how I have to do this.
Give a idea
[210 byte] By [Rathi] at [2007-11-11 8:48:54]
# 1 Re: textbox enter
What kind of application: Windows Forms or ASP.NET? What programming language?
Phil Weber at 2007-11-11 23:12:59 >
# 2 Re: textbox enter
Hallo its Asp.Net application done with C#.Net
Rathi at 2007-11-11 23:13:59 >
# 3 Re: textbox enter
Please post ASP.NET questions to the ASP.NET forum, not to the .NET Forum. Thanks!

What kind of information do you want to display in the second textbox? If it's something you'll have on the client (the user's browser), you can use JavaScript to display it. If you need to get it on the server, such as by querying a database, then you'll need to do a postback when the user presses Enter.
Phil Weber at 2007-11-11 23:15:02 >
# 4 Re: textbox enter
I wish to have code to fetch data from the database on key press.
Rathi at 2007-11-11 23:16:08 >
# 5 Re: textbox enter
Hey,
just make the AutoPostBack property of the TextBox to True and fetch the Data from the Database using DataReader and display it on the Other text in the Click event of the Text.
radcaesar at 2007-11-11 23:17:02 >