Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2004, 05:09 AM
Authorized User
 
Join Date: Aug 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to add a button dynamically?

how to acheive this!?

i want to show up a page with drop down list,say "slt_0" first ,and
then if user press the "more" button, my page would show another more drop down list.

do i make it clear?

the purpose is here:
going to provide a search page, and ask user to enter search query,
drop down list contains field names. after user select a field name in list, user is promoted to enter criteria in a corresponding text area. if he wants more, press "more" and another list showed up for him to narrow down the search query.

 
Old August 27th, 2004, 08:46 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Robin,

  This you can do in different ways.

1. Loading the page when the user clicks More button. This is needed when the new select control is generated based on the value selected in the form.
  In that case, submit the form to the same page. And test the form status like
 IF Request.ServerVariables("HTTP_METHOD")="POST" /("GET") THEN
    '.....form your new select control
 END IF

2. If the new control to be displayed(select control) or text box is fixed, then place the control along with the other and make it hide. When the More button is clicked, make it visible. Simple CSS coding.




 
Old August 30th, 2004, 09:46 PM
Authorized User
 
Join Date: Aug 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

"more"_onClick submits to the same page works for me.
i kept a counter to store number of "more" clicks, use a for loop to generate
select controls.
thanks


 
Old October 1st, 2004, 10:02 PM
Authorized User
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Based on user's selection of a choice from the select control on a aspx page, I want to add different sets of fields (basically append to the bottom) to the same page. Let us say, user selects Choice1, I add two text fields, when user selects choice2 then I add a select and a text field. How can I accomplish this. Can someone give me an example?


 
Old October 2nd, 2004, 06:25 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

vhrao,
Quote:
quote:... ... select control on a aspx page...
Are you taking about ASP.Net? If so post that under an ASP.Net forum here, as this is classic ASP forum. You can always post that as a new topic with relavant subject, than posting under an existing topic.

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
How add data into DataGrid dynamically [email protected] C# 2005 1 October 24th, 2007 03:27 AM
Add Push button or Check Box in outlook add-ins capdevs VS.NET 2002/2003 0 January 7th, 2006 08:51 AM
Dynamically Add input tags Jstmehr4u3 Javascript How-To 2 July 29th, 2003 04:03 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.