If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-03, 15:14
sreepadasharma sreepadasharma is offline
Registered User
 
Join Date: Nov 2003
Location: hyderabad
Posts: 12
Asp

hai friend,
i am facing a problem in ASP3.0. i want to increase the row of the table dynamically. for that i desugned a table with 2 rows. i placed a button beside it and i want to inrease the row of the table by clicking the button. please anybody help me urgently.
bye....
Reply With Quote
  #2 (permalink)  
Old 12-11-03, 16:03
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Can you be more specific ? When clicking on the button are you posting back to the same page ?
Reply With Quote
  #3 (permalink)  
Old 12-11-03, 16:37
sundialsvcs sundialsvcs is offline
Registered User
 
Join Date: Oct 2003
Posts: 706
When you click on the "Add new row" button the response will be sent back to the page. At this point you'll know that a request to add a new row was received, and you can generate the input fields. On the input HTML-form, another button (say "Add it now!") will be presented. Your ASP page must handle both of these types of requests.

Very important: you're covering a lot of very familiar ground here, and you can be very certain that suitable ASP-code already exists out there on any number of related websites and forums.

Quote:
Actum Ne Agas: Do Not Do A Thing Already Done.
__________________
ChimneySweep(R): fast, automatic
table repair at a click of the
mouse! http://www.sundialservices.com
Reply With Quote
  #4 (permalink)  
Old 12-11-03, 17:35
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
You can response.write your rows using <tr> and <td> - where appropriate. Where is the data originating from that you need to population (a database ?) ?
Reply With Quote
  #5 (permalink)  
Old 12-12-03, 11:46
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
Just another thought....

ASP is ok for this, i guess... but it requires the page to be reloaded.

JavaScript is what you want if you need to do this "dynamically" on a single page load.

Check out www.javascriptsource.com for TONS of good javascripts that do this particular thing and a whole lot more. I know for certain that scripts for adding table rows and columns are already posted there.

Tim
__________________
Tim
Reply With Quote
  #6 (permalink)  
Old 12-12-03, 17:58
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Yeah, but javascript is only useful when you already have the information you need - unless you use remote scripting. It just depends on what this page is supposed to do ...
Reply With Quote
  #7 (permalink)  
Old 12-12-03, 18:04
MrWizard MrWizard is offline
Registered User
 
Join Date: Mar 2003
Location: Atlanta, GA
Posts: 191
Quote:
Originally posted by rnealejr
Yeah, but javascript is only useful when you already have the information you need - unless you use remote scripting. It just depends on what this page is supposed to do ...
Details, details....
__________________
Tim
Reply With Quote
  #8 (permalink)  
Old 12-12-03, 18:07
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
I know - but most asp applications the way this one is described is involved in some database interaction. And yes, we do need more details, details ... describing this application.
Reply With Quote
  #9 (permalink)  
Old 12-21-03, 22:08
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
And www.asp101.com has some good database examples in the site's Samples section.
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #10 (permalink)  
Old 12-24-03, 13:30
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
Are you going to do this?

Are you going to do the thing like the page at
http://www.careerengine.com/tellAfriend/tellfriend.asp? When you click Add More button with the number you select, the number of the text field will be increased. If yes, I can post some code here.

Last edited by gyuan; 12-24-03 at 13:33.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On