Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Dynamically Add text input in client script.

Reply
Thread Tools

Dynamically Add text input in client script.

 
 
=?Utf-8?B?QWxpZW4yXzUx?=
Guest
Posts: n/a
 
      03-22-2005
I have a report parameters page that currently accepts an invoice number to
generate an invoice report. The user would like to process many invoice
reports, rather than having 10 or 15 textboxes ready for input I'd like to
have a button that will add a textbox using client script, has anyone seen an
example of something like this...?

TIA

Dan
 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      03-22-2005
The only way to do it with client script is to either have the textboxes
already in the doc, and with a "display=hidden" style, or to use JavaScript
to create the textboxes and hide them when the doc loads, using
document.write. Honestly, your best bet would be to do a PostBack, and build
them on the server side.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Alien2_51" <> wrote in message
news:892E0EFD-A276-4469-B06F-...
>I have a report parameters page that currently accepts an invoice number to
> generate an invoice report. The user would like to process many invoice
> reports, rather than having 10 or 15 textboxes ready for input I'd like to
> have a button that will add a textbox using client script, has anyone seen
> an
> example of something like this...?
>
> TIA
>
> Dan



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a row to the table web control dynamically in asp .net 2.0 on a button click retaining the user input in previous rows? loga123 ASP .Net 1 10-03-2006 04:48 AM
Dynamically Create Input Box on Client Side crjunk Javascript 2 12-09-2005 04:27 PM
Add readonly attribute dynamically to input tag upersson@consit.dk Javascript 2 06-30-2005 02:38 PM
grabbing values from standard INPUT TEXT fields that are being dynamically written? Darrel ASP .Net 3 11-13-2004 11:01 PM
why does form with only 1 text input and 1 button input submit on enter? Guy HTML 5 12-13-2003 06:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57