473,387 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

echo user input

Hi
I am working on a web application, just wonder how could I display (on a web
page) what the user is typing in another textbox field?
By the way, I am using c# if this would make any difference.

TIA

--

Nov 19 '05 #1
3 1238
You can wire to the onkeydown event for the second text box.

When that function/event fires, you can change the label or whatever you are
wanting to do. C# really has nothing to do with it other than:

txtEntry.Attributes["onkeydown"] = "javascript: EchoText( this );";

HTH,

bill

<dl> wrote in message news:uU**************@TK2MSFTNGP10.phx.gbl...
Hi
I am working on a web application, just wonder how could I display (on a web page) what the user is typing in another textbox field?
By the way, I am using c# if this would make any difference.

TIA

--

Nov 19 '05 #2
Are we doing some kind of client side programming?
Let me try to see if I get this right. "EchoText" is the client side
javascript event that actually put / echo the text onto another textbox?
I guess I can not have a server control when doing this, can I?

TIA

"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:uh**************@TK2MSFTNGP10.phx.gbl...
You can wire to the onkeydown event for the second text box.

When that function/event fires, you can change the label or whatever you are wanting to do. C# really has nothing to do with it other than:

txtEntry.Attributes["onkeydown"] = "javascript: EchoText( this );";

HTH,

bill

<dl> wrote in message news:uU**************@TK2MSFTNGP10.phx.gbl...
Hi
I am working on a web application, just wonder how could I display (on a

web
page) what the user is typing in another textbox field?
By the way, I am using c# if this would make any difference.

TIA

--


Nov 19 '05 #3
Yes you can have a server control do this. But without posting back every
key stroke, you will need do to the bulk of the work client side. It will
not be a happy user experience if they must wait after each keypress for the
page to reload.

Remember that web programming is disconnected. After the page is rendered
and sent to the browser, the only way to have server side functionality is
to have the page post back to get the server involved.

What exactly are you trying to accomplish?

bill
<dl> wrote in message news:eU**************@tk2msftngp13.phx.gbl...
Are we doing some kind of client side programming?
Let me try to see if I get this right. "EchoText" is the client side
javascript event that actually put / echo the text onto another textbox?
I guess I can not have a server control when doing this, can I?

TIA

"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:uh**************@TK2MSFTNGP10.phx.gbl...
You can wire to the onkeydown event for the second text box.

When that function/event fires, you can change the label or whatever you

are
wanting to do. C# really has nothing to do with it other than:

txtEntry.Attributes["onkeydown"] = "javascript: EchoText( this );";

HTH,

bill

<dl> wrote in message news:uU**************@TK2MSFTNGP10.phx.gbl...
Hi
I am working on a web application, just wonder how could I display (on
a web
page) what the user is typing in another textbox field?
By the way, I am using c# if this would make any difference.

TIA

--



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: haoren | last post by:
Can anybody help me with this problem: How can I echo a string that contain <? and <?php? For example, $str="test <? and <?php echo"; echo $str;
3
by: Alex Shi | last post by:
Hi all, Please take a look at following very simple script; #!/usr/bin/php -q <? echo "Hello, world!\n"; if (!$tty) { $tty = fopen('php://stdin', 'r'); }
12
by: Dave | last post by:
Hello, I'm a somewhat PHP newbie, so please bear with me. Here is what I am trying to do: $foobar = "blah blah"; $a = "foo"; $b = "bar"; $fooboo = "$a" . "$b"; echo $fooboo
1
by: ericm | last post by:
Hello all, I am looking for a little guidence. I have written a page in which I am trying to identify when a function key (f1-f12) is pressed. When the key is pressed a pre-defined event will...
5
SHOverine
by: SHOverine | last post by:
Hello All. I have a problem with a form that I am trying to create. What happens is: I have a person enter a UserName and select some values using radio buttons. They submit the form, and the next...
4
by: rawky1976 | last post by:
Hi, I have a hyperlink which goes to the page below and passes the PK_ID from a query into 'userid'. From this we query the DB and then echo a table with a form; only the textboxes are already...
2
by: kaotik78 | last post by:
I've racked my head on this all day long. I've been using php for 3 days now and this is the first hang up I've had and it's driving me nuts, but I can't pull myself away from trying to fix the...
5
by: AnDyG | last post by:
Hi everyone, i have a php script that echoes the following code from an if statement, what i need to do is make part of this only show if ($cat=="fireplaces.php"). Does anybody have any...
1
by: webandwe | last post by:
Hi, I got the page login.php that have a script that logs you in and then go to loggedin.php with a piece of code to validate your loged in. The validate stores the username, how can I echo the...
35
by: hdsalbki | last post by:
hi everyone, I have below a small program to echo back what character the user types. It's working OK but prints a extra prompt between every character. what can I do? I'm new in C and my book is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.