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

RE: Using query string

Hi,

I am new to VB .NET programming. I need to display a value on a web
form called FeatureList.aspx.

Here are the details:
The web form FeatureSearch.aspx contains a user control called
FeatureSearch.ascx. The UserControl contains 20 rows following:

So row 1 could be color with may be 3 radio button
Row 2 could be height with may be 2 radio buttton

Row 20 could be material with 6 radio buttons.

And we make 1 selection from each row and then press the submit button
at the end of the 20th row. I would like to display the values
selected by the user using a QUERY STRING. Is it possible to do that
using a query string and if I could get an example related to that.

Thanks for your input.

SA
Jun 30 '08 #1
1 1529
As for creating the the querystring, you basically have two options:

1. Set the Button's PostBackUrl property to FeatureList.aspx and set the
method attribute of the form tag to post
OR
2. Generate the action attribute of the form tag using JavaScript (generate
something like FeatureList.aspx?color=red&height=100&material=woo d). You can
add this JavaScript to the Button's OnClientClick property (you may want to
create a JavaScript function for this, since 20 is a lot for inline
JavaScript)

I would strongly suggest the second suggestion, because fooling aroung with
the form's method attribute is usually not a good idea (and ASP.NET has
several hidden fields you don't want to show in the querystring). If you
know basic JavaScript, you shouldn't really need an example, but if you are
still having trouble just let us know and I'm sure someone will help you.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

<ag**********@gmail.comwrote in message
news:08**********************************@i36g2000 prf.googlegroups.com...
Hi,

I am new to VB .NET programming. I need to display a value on a web
form called FeatureList.aspx.

Here are the details:
The web form FeatureSearch.aspx contains a user control called
FeatureSearch.ascx. The UserControl contains 20 rows following:

So row 1 could be color with may be 3 radio button
Row 2 could be height with may be 2 radio buttton

Row 20 could be material with 6 radio buttons.

And we make 1 selection from each row and then press the submit button
at the end of the 20th row. I would like to display the values
selected by the user using a QUERY STRING. Is it possible to do that
using a query string and if I could get an example related to that.

Thanks for your input.

SA


Jul 1 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: bofh | last post by:
I'm working on a project where I need to store a CGI query in a database field. The query contains variables which will be substitued at runtime (e.g., today's date, key to select upon, etc), and...
9
by: shank | last post by:
Per a previous suggestion, I'm trying to use a parametized query in Access 2002. The query functions properly in Access. Now I'm trying to call it from ASP. I'm using code I found at...
2
by: Andy | last post by:
I haven't done any web work for over a year and for the life of me I cannot remember how to use a query string in a URL. I want the link to be page.aspx?ID=1 then pass 1 into a query like this ...
3
by: Dr. Oz | last post by:
Hi, I am trying to read in a query string from one page and build a link to another page based on the query string. Here's the code I am using to read in the query string: <script...
1
by: Nicolae Fieraru | last post by:
Hi All, I want to find if there is a different way than the way I am working now. Lets say I have a table, tblCustomers containing address details. I want a report with all the customers from...
1
by: bdt513 | last post by:
I am trying to extract the values from a query using VBA. Specifically, I want to concatenate all the values of the "rosEmail" field from query "qselRosterEmailList" into one string (strEmails). I...
4
by: Oceania | last post by:
Hi All, I did try using the sample code from the ADO.net forum to link one table, it is working fine. But, I got a problem when I tried to link all tables (20 tables)... Please help, thank...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
1
by: kommaraju | last post by:
iam a starter to db2 & jdbc.i have a servlet program which connects to ibm db2 using jdbc.when i run this using apache tomcat 4.1.34 , it is showing a error message of HTTP STATUS 500 my jdbc...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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
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...

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.