473,385 Members | 1,757 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,385 software developers and data experts.

How to make asp code with option buttons if statements

I want to make an ASP code with option buttons. If i select an options the code related to that gets activated.Plz help.
Jul 9 '08 #1
3 1507
DrBunchman
979 Expert 512MB
Hi there,

How much experience of ASP do you have? What have you written so far?

Dr B
Jul 9 '08 #2
I want to make an ASP code with option buttons. If i select an options the code related to that gets activated.Plz help.
2 yrs of exp........
Jul 9 '08 #3
idsanjeev
241 100+
2 yrs of exp........
Thats good
whats code you are using
this code is working for data based on option button
Expand|Select|Wrap|Line Numbers
  1. <body>
  2. <form action="test5.asp" method="post">
  3. <table>
  4. <tr>
  5. <td>
  6. <select name="opt" >
  7. <option value="option1">option1</option>
  8. <option value="option2">option2</option>
  9. <option value="option3">option3</option>
  10. <option value="option4">option4</option>
  11. </select>
  12. </td></tr></table>
  13. <%'session("option")=%>
  14. <input type="submit">
  15.  
  16. <%
  17. 'this code is normally print your  select option
  18. Response.Write(Request.Form("opt"))
  19. 'If you wants to select from database based on your option
  20. 'open conn  with database and select with this query
  21. set R1=conn.execute("select *from your tablename where yourfield='"&Request.Form("opt")&"'")
  22. Response.Write(R1("yourfields"))
  23.  
  24. %></form>
  25. </body>
provide more detail with code if porblems
Dr. B is already asked you whats code you are using for it
regards
jha
Jul 9 '08 #4

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

Similar topics

5
by: Georges Heinesch | last post by:
Hi. I created an option group using the wizard. I included 3 option buttons. An option group (in general) can be enabled or disabled completely (includung option buttons and their respective...
3
by: jdph40 | last post by:
In Access 2002, I designed a simple database for our Safety department to enter results of a survey. There are 41 true/false statements. I have a main form called frmSurvey with a subform called...
8
by: Scott Emick | last post by:
I am using the following to compute distances between two lat/long coordinates for a store locator - (VB .NET 2003) it seems to take a long time to iterate through like 100-150 locations -...
28
by: Steven Bethard | last post by:
Ok, I finally have a PEP number. Here's the most updated version of the "make" statement PEP. I'll be posting it shortly to python-dev. Thanks again for the previous discussion and suggestions!...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
6
by: Ian Boyd | last post by:
Every time during development we had to make table changes, we use Control Center. Most of the time, Control Center fails. If you try to "undo all", it doesn't, and you end up losing your identity...
2
by: Chuck | last post by:
How can I make an array of command buttons (or toggle buttons) on a form and have a text box on the same form display the index of the button clicked? This works very well in VB6, but I can't...
0
by: sparks | last post by:
I was using the keypress with an option group If Me.ActiveControl.ControlType = acOptionGroup Then If KeyAscii >= 48 And KeyAscii <= 51 Then Me.ActiveControl.Value = Chr(KeyAscii) End If End...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.