473,397 Members | 2,068 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,397 software developers and data experts.

Need help…any suggestions

7
Hello,
Here is the code:
<tr>
<tr>
<td class="FormCell">Do you live in US? </td>
<td class="FormCell"><input type="radio" value="true" name="Country">Yes</td>
<td class="FormCell"><input type="radio" value="false" checked name="Country">No</td>
</tr>

<% if true then %>
<td class="FormCell"> This is a test </td>
<td class="FormCell" colspan="2"><select name="TEST">
<option selected value="1">0 to 2500</option>
<option value="2">2,501 to 5,000</option>
<option value="3">5,001 to 8,000</option>
<option value="4">8,001 to 20,000</option>
<option value="5">over 20,000</option>
</select></td>
<% end if %>
</tr>

What I want is that when the page loads the No (Radio Button) is selected (that is by default) and than if the user select the Yes radio button than the dropdown list shows up (TEST).
I guess there r two ways to do that:
• Using DHTML (java script)
• Or some how using the post back function
I will really appreciate yr help. It’s kind of urgent.
Thanks a lot for yr time & effort.
Ricky
Dec 9 '06 #1
3 1257
sashi
1,754 Expert 1GB
Hello,
Here is the code:
<tr>
<tr>
<td class="FormCell">Do you live in US? </td>
<td class="FormCell"><input type="radio" value="true" name="Country">Yes</td>
<td class="FormCell"><input type="radio" value="false" checked name="Country">No</td>
</tr>

<% if true then %>
<td class="FormCell"> This is a test </td>
<td class="FormCell" colspan="2"><select name="TEST">
<option selected value="1">0 to 2500</option>
<option value="2">2,501 to 5,000</option>
<option value="3">5,001 to 8,000</option>
<option value="4">8,001 to 20,000</option>
<option value="5">over 20,000</option>
</select></td>
<% end if %>
</tr>

What I want is that when the page loads the No (Radio Button) is selected (that is by default) and than if the user select the Yes radio button than the dropdown list shows up (TEST).
I guess there r two ways to do that:
• Using DHTML (java script)
• Or some how using the post back function
I will really appreciate yr help. It’s kind of urgent.
Thanks a lot for yr time & effort.
Ricky
Hi guys,

I've moved this thread from ASP forum section. Take care.
Dec 11 '06 #2
AricC
1,892 Expert 1GB
Set the visibility to hidden then capture the onclick and set the visibility to visible. Here is an example.


HTH,
Aric
Dec 12 '06 #3
jgill
7
Hello,
Sorry for the late reply was really busy with other stuff…thanks u guys…for the help…but got few more questions that are???
1) How do I maintain state…that happens is that after post back and value in the dropdown & the radio buttons are not maintained…they go back to default.
2) If I want to call the values (selected in the drop down list) in some other page how do I do that.
Thanks…lot the help is appreciated
Dec 18 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Susan Bricker | last post by:
Greetings. As a relative newcomer to Access, I am having trouble deciding on how to design the form flow for updating and creating related records. I'm looking for a variety of suggestions so...
0
by: Jack Black | last post by:
Well, here's what I want to do: the user enters one or more keywords. Those keywords are then run individually against several different tables, each presumably returning between 0 and -x- records...
85
by: | last post by:
List, I'm looking for C links for Standard C for a website targeting professional SW engineers. Intent is to have a convenient reference to Standard C, particularly for those who come from...
1
by: Daniel | last post by:
when my C# service impersonates a secondary account does the secondary account need any special permissions? what are they?
1
by: samadams_2006 | last post by:
Hello, I have Visual Studio 2005 and am developing my first web site. I see TreeViews, ReportViewers, etc. but I'm not sure which approach that I should choose. Let me tell you what I'm going...
2
by: Trev | last post by:
Hi, I need you suggestion and ideas as I am not a programmer by any means but I've been reading the articles on how to show a dynamic chart in asp web pages. I have to say it's brilliant and...
5
by: sudhaMurugesan | last post by:
Hi all, I've given a task.I have to get employee's Country,State and city. When I select Country as India, In State dropdownlist it must list all the states in India, When I select the state...
2
navneetkaur
by: navneetkaur | last post by:
hello every1 i am developing web application.its at the edge of completion...bt i want to add ajax to it...i have added at some places bt problem is with 1 page in this am displaying some...
4
by: saadkhan | last post by:
I have a private map bought by my company. I need to deploy tht in my ASP.NET website. I dont have any idea about the files of it as it consist of many files with different extensions, which are as...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.