Assigning The Result

How can I assign the result of a SQL-query to an ASP variable? This is what I have so far but it doesn't seem to work. Code:

dim strSQL
strSQL="select TestID FROM TestID_Description WHERE CL1='" &Request.Form("CL1")& "' AND CL2='" &Request.Form("CL2")& "'AND CL3='" &Request.Form("CL3")& "'AND CL4='" &Request.Form("CL4")& "'AND CL5='" &Request.Form("CL5")& "'AND CL6='" &Request.Form("CL6")& "'"
objRS("TC_Number")=objConn.execute(strSQL)

Maybe it's interesting to know that TC_Number is the primary key of the table.

View Replies


ADVERTISEMENT

Filter The Result And Display The Final Result

it is possible to compare the result of 2 recordset and
filter those similiar results,and display only the remaining results

View Replies View Related

Assigning Values

I know I can use

Dim Array1(item1,item2,item3)
Session("Array2") = Array1

To copy a local array to a session array. What syntax do I use to copy a local array to another local array (without using a loop to load each element)?

View Replies View Related

Assigning An ASP Object To A Jscript Var

I have an ASP variable containing an XML object, i want to pass this object to a javascript object .... how can i do that?

one solution i know of is to write the xml in the page as an xml island and retriving this code using the document.getElementById....

is there another way where i can do that directly?

View Replies View Related

Using Checkbox For Assigning Items

I have a catalog of books which need to be categorized into different
groups. Some of the books can be listed under more than one category.
I'm creating a page where I can assign a group of books to a category
by checking the checkbox next to their name (say I've looped out 100
of them, and check some, and not others) then submitting the form for
processing, so that those titles where the checkbox is checked will
get the categoryid number assigned to them on a one-to-many table

I need to know how to read the checkbox value as it comes in if it is
selected or not, if it is, I'll send the isbn in one direction, and if
not, I won't send it at all.

So, how would I read this on the sheet that grabs the values?

View Replies View Related

Assigning Variable Value In Global.asa

I'd like to have a variable that I assign a value to for an entire website. It's a variable that contains the DSN name for my ADODB Connection.

This variable value is necessary on every page on the website. Is it incorrect to assign a variable the value in global.asa so it just stays for the entire site?

View Replies View Related

Assigning Values In A While Loop

I don't know if this is possible, but I have a Do While Not rs.EOF loop that is pulling values from a SQL database and writes it to an html form. I'm trying to figure out how to tally the values as they are siphoned from the database -- I'm assuming I have to set a unique variable equal to that value as it goes through the loop, but I'm not certain how to pull it off. Code:

View Replies View Related

Assigning An Invoice Number To An Order

I am trying to assign an invoice number to orders that are made on my website so that i can combine multiple order numbers into one invoice number. Here is the code i am using to insert the invoice number into the orders table.

It works if there is only one order in the table but if you try and order again it multiplies the orders by the number of invoice rows for example if there was 3 invoice fields it would add the same order 3 times into the order table. Its got stuck in some sort of loop. Code:

View Replies View Related

Assigning A Default Value To A Function-variable

Well, it's quite simple, it's easily done in C, but in ASP (and VB in
general) i haven't been able to see it done...

function setvalues(var1, var2="a", var3="b")
if var2="a" then
response.write("Var2 wasn't defined")
end if
if var3="b" then
response.write("Var3 wasn't defined")
end if
end function

I hope it makes sense, and that someone has the solution to it...

View Replies View Related

Assigning A Boolean Of True Or False To VBScript Variable...

Is there a way I can assign a value of true or false to a VBScript variable? I have a function where I want to initiate a value of false: Would this work? Code:

View Replies View Related

Sum Result

I have a database setup and the results come out as

Product 1: Shorts
Size: M
Price: £2.99

Product 2: T-Shirt
Size: XL
Price: £3.99

Total: "TOTAL HERE"

What I need to do is total these up

The Cells are called:
Product
Size
Price

View Replies View Related

Result Set

I want to do some checking for my table for eg:

I want to check if the table for which year then if same year then do something.....

View Replies View Related

Calculation Result

Does anyone know how i can make

[code]
Dim excl

excl = rs("price") / 1.175
[code]

return only a 2 decimal place number

View Replies View Related

Top 10 Search Result

i want to have a search application wherein it returns a results page and arranged based on the most relevant word. can you please give me an idea with this or point me to any info.

View Replies View Related

Detect Result

The delete method of the FileSystemObject.FileObject does not return a result. If permissions disallow deletion, it will not raise an error. Conversely, if the delete method does succeed, a call to FileExists directly afterward may return true because the system hasn't updated yet (or whatever actually goes on). Is there any way to accurately check the result of a deletion?

View Replies View Related

ASP Result Page

why my results page is not coming back with anything?? I have set up a simple form in dreamweaver, it connects to a access database and IIS web server. When i test the recordset it works ok (returning the desired affect).

It uses a post method therefore the recordset uses form variable. But when i preview in browser(either IE or Firefox or Netscape) and enter text the browser comes back with something like the page does not exist or can't be found? It's not the recordset and result page so is there something else i'm missing?

View Replies View Related

Joining 2 Result Sets

i want to left join result sets together coming from two different databases based on a common field storenumber. They are separate databases as per management design.

Basically it should match rows based on the store number, those who don't have matches should display only the storenumber and no other info like: Code:

Store Q1 Q2 Q3 Q4
1 x x x x
2 x x x x
3 <--No data in 3, just display storenumber
4 x x x x

View Replies View Related

Keep Track Of The Query Result

I have a search form that display result based on the user search criteria.
the result displayed through paging when the user select a specific product description to look at then go back
to the search result the user will lose it's place.

my question is:
How can I let the user search the database for all the products that I have then select a specific product to read the description of it
then be able to go back to the original search. I have the first part working fine but to be able to go back to the original search that I need your help. Code:

View Replies View Related

Refreshing Page With Result Set

My web page is calling a result set that is displayed on the page. If I click refresh, it pops a warning saying, "The page cannot be refreshed without resending the information." I then have to click RETRY in order to refresh the page.

Is there anyway to automatically perform that action so that my users will not have to be prompted?

View Replies View Related

Search Result By Relevancy

i am trying to make a search/result page(using asp, dreamweaver,iis,winnt,miscrosoft access database) wherein the results page brings up the most relevant words or phrases and not in alphabetical order.

View Replies View Related

How To Deal With Big Query Result?

In my search application, user can type a number to search. I use LIKE in my
query.

If a query result generates over 10,000 recordsets, it may several minutes
to run.

Is there a way to only query certain recordset at a time?

I found in SQL you can use "TOP". Like select TOP 100.... it will return
only top 100 records.

Is there a way to query may be from 101 to 200 then from 201 to 300...

My query is like: Select * from Product where PartNumber like '%" PartNumber
"%'

Any idea is welcome.

View Replies View Related

Execute Asp From Database Result?

I'm working on a application where I've created a couple of Sub routines I call them from my ASP page.

But I would love to put the hole HTML including my "call showOffers" in my database and when I get the result set do I want to execute the "call showOffer". Is this possible?

View Replies View Related

Asp Script For Forms Result

I am struggling to come up with a way to save a forms' results, to a text file, but the name of the text file comes from the input of a user name on another forms...

ex. john doe enters pg1 & enters his name in a space on the page (form) . this links him to the next page, pge_form. I need the results of page_form to be named johndoe.txt

View Replies View Related

Optimizing - Large Db Result Set

when creating a webpage that must display a large result set, the page load time is unbearable. Unfortunately, there are a lot of records and they all need to be displayed, at once, on this one page.

To reduce file size, I have minimized the amount of HTML tags used to dislay these records. My only other idea is to write javascript matrix to hold the data, and then to use dom to create the page on the client side. Are there any tried and true ways of speeding up page loads?

View Replies View Related

Database Result Error

We have completed a clean install of Microsoft Server 2003
on our Web Server and are using frontpage 2002 for our web
site. On our asp page (www.dgf.k12.mn.us/contactus.asp) we
are getting the following error:

Database Results Error
Description: Syntax error in query. Incomplete query
clause.
Number: -2147217900 (0x80040E14)
Source: Microsoft JET Database Engine
www.dgf.k12.mn.us/contactus.asp

We cannot find any kind of documentation on this error.
Has anyone else seen this kind of error, and know how to
fix it?

View Replies View Related

Result To Multiple Pages

This is my first post to this newsgroup, I have question regarding showing resultset to html. Let's say I have in resultset 200 rows, and I'd like to show on each page 10 of them, so it could look like for example google search results:

Results 1 - 10 of about 17,700 for "asp search engine" [results]
Result Page: [1] 2 3 4 5 6 7 8 9 10 Next

Is there some helpful script/guide?

View Replies View Related

Count The Result In A Record Set.

I have a question about looping in a recordset. I'm actually showing some actualities in a page, based on a start and end date. All is working well. My problem is that I put a <hr> between each news, but I don't want a <hr> at the end of the last news. I would like to count how many results I have in my recordset so I would be able not to show the last <hr>.

View Replies View Related

Percentage On Search Result

i'm sure there're no post about this in asp forum.Any idea how do I show the percentage number for the matching result.

example :

Your search for xxxx :

1. item 1 98%
2. item 2 86%
3. item 3 75%

View Replies View Related

Realtime Result Checking

i have a command object that executes an insert for a billing system.i also have a recordset object that creates a cursor to check. the credits status before. Another to check the credits status after.however, both appear to be the same when i do a response.write .How could i check the credits before and the credits after online and realtime ?

View Replies View Related

Return A Cgi Script Result

How can I have ASP call a cgi script, via Form-GET, and then display the results in the same ASP page?

View Replies View Related

SQL Result To Excel File.

I have a SQL query to generate the report for me in SQL Query Analyzer. I would like to create an ASP page that has a link, and when people click on that link, it will prompt a download message (open or save) in Excel format. Is there any codes can do this?

View Replies View Related

Get A Result Page To Display

I have a search page that allows user to search a SQL database and want the result page to display on a search page. How do I get the result page to display on a search page when user clicks a search button. Have you got any sample codes to demonstrate this?

View Replies View Related

Second Table From Sp_help Result

I am using SQL Server 2000 and I want to be able to list out all the field names and their datatypes from a particular table. I found out that sp_help does that but unfortunately when using a recordset, I could only get the first of the 3 tables.

Is there anyway to get the second table using a recordset because that is the one with all the info about the fields and their datatypes? Or is there another way of finding out the datatypes of the fields?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved