Checks The Variables Number Amount
how can I make an if condition where the condition checks has the user inputted atleast 3 numbers in the text field. Code:
if variable1 < 3Numbers then
response.redirect "error.asp"
else
execute something
I have fought with this problem all day long and I can not get this work.
View Replies
ADVERTISEMENT
I am retreiving the records and placing them in the original form with stuff going in its own text boxes and all. i have a few checkboxes and when i retreive the records,i want to even see the checks in the checkboxes.
so that the user can see all the info abt that record and if they want to uncheck any. they can do so. So how do i retreive those checks in the checkboxes?
View Replies
View Related
Currently, when I'm building dynamic pages I build a page (for example, default.asp?ID=2) to process one variable within the dynamic URL (ID), and find myself having to create a seperate page if I want to process 2 variables for the same content (i.e default.asp?ID=2&Dt=3).
Surely there's a way of loading different content on the page depending if the URL you to the page has either one or more URL variables - is there a way of doing this? I've been thinking about it, and would it be simplest just writing an IF statement (e.g : if the URL contains only one URL variable, load this content, if it contains 2 URL variables, load this other content.
Would someone please be able to give me an example of how this IF statement would be written?, as I've never had the need to write an IF statement before. If you are able to give me an example of the IF statement I'm after, would you be kind enough to comment it aswell so I can understand the methodology behind it?
View Replies
View Related
I have an ASP form that users enter a number into. The form then posts
the number with a hidden login and password to a web address which
opens in a new window. However, I want make sure that the number they
enter is not one of the numbers I have in an Access database table that
contains a list of numbers they are not allowed to enter. How can I do
this?
View Replies
View Related
How would I limit the amount of Characters that show in the display:
<% =objRS("Title")%>
Like a Left Trim I only want 12 to 20 characters to show.
View Replies
View Related
i would like to sum the total of the Daily Sum Total Field name. Code:
View Replies
View Related
Is there a way to put a cap on the amount of lines you can type into a textarea?
View Replies
View Related
I need to populate a select form input (combo box) with about 22,000 rows of data. This is taking an unacceptable amount of time to load. And this data is only going to grow in the future.
I'm using a stored procedure to get the data. Not sure if that's the most efficient. I'm using classic asp. I'm open to any suggestions because I'm not even sure where to look to get options.
View Replies
View Related
How would I limit the amount of Characters that show in the display:
[ <% =objRS("Title")%> ]
Like a Left Trim I only want 12 to 20 characters to show.
View Replies
View Related
i have a textbox that has a value $6.00 for example the user has
to enter a dollar value which has to be less then $6.00 so for example if the user enters 4.00 an alert should be fired telling him he has forgotten his dollar sign ("$") then when he enters it properly like this $5.00 i have to check the value is less then $6.00 and it has to be done in javascript
the textbox which holds the $6.00 value is called saleprice
the textbox which holds the $5.00 or value less then $6.00 is called userprice
View Replies
View Related
I've been working on a script that finds and updates a record in
database based on the user's input. When I try it I get this error:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. Yo
can change this limit by specifying a new value for the propert
Server.ScriptTimeout or by changing the value in the IIS administratio
tools.As I can't post a message for some reason whenever I try to include m
script in this message, see attached .txt file for code.
View Replies
View Related
I want to calculate the sum of all invoices so to be displayed total sum of them
I'm trying with this: Code:
View Replies
View Related
How would I limit the amount of Characters that show in the display:
<% =objRS("Title")%>
Like a Left Trim I only want 12 to 20 characters to show.
View Replies
View Related
Is it possible to run a script after specified amount of time after login. I made an online test tool. I want to end the test after 20 minutes.
At present one who is writing the exam clicks this endtest script. I want to handle this from software, if he takes more than the given time.
View Replies
View Related
I am using couple of dropdowns on a form which pulls data from one of our
tables.
The data list is quite large (500+) and it takes users a lot of time to find
the correct item. Users are getting quite frustrated using the dropdowns as
they have to scroll for a long time.
View Replies
View Related
I have three text boxes. One text box holds a beginning date, a second holds an end date, and the third box holds the number of days in between. I would like the page to figure out the number of days in between the two dates without having to type in the number of days.
Is that possible to do without having to use some kind of confirmation page. I mean using a confirmation page would work also, but I wanted to cut out the number of steps that a user needs to complete the assigned task.
Text Box 1: Beginning Date
Text Box 2: Ending Date
Text Box 3: Number of Days in Between
View Replies
View Related
Is there a way to limit the number of characters shown from a db field on a web page. In other words, instead of showing the entire title of a work order, I may only want to show the first 30 characters followed by .... Does anyone know how to do this?
View Replies
View Related
I have been writing a photoalbum in ASP and I am trying to receive an undetermined amount of files.
A more detailed explanation:
The client side (Javascript) generates a new file upload box as soon as the file in the first box is selected...the name of the file upload boxes is bestand[] so that the input is received in an array.
Now I am trying to receive all the files with ASP and store them on the server....
View Replies
View Related
I will need to send bewteen 2 asp pages very large amounts of data
what is the best way to send it and to read it?
for ex. I know this method:
For i = 1 To Request.QueryString.Count - 1
Response.write(Request.QueryString.Key(i))
Next
View Replies
View Related
unable to reterive large amount of data(100k) from a textarea control using request object in ASP. It gives runtime error.
View Replies
View Related
I have an ASP app that allows administrators to add articles to a database for viewing by the public. What I want to do is display a summary of the article and give the user the visitor to the website the option to click "more..." to view all of the article.
View Replies
View Related
I am looking to return the first 50 characters from a database field. Does anyone know if there is a SQL function that returns a defined amount of characters from a database field?
View Replies
View Related
This is my first asp form so please be gentle with me It's a publications ordering form. I've got the form and the asp code setup, when the form is sent the name of the publication comes through but not the amount ordered - i'm sure i've made a simple mistake somewhere - can anyone spot why the order amount isn't coming through. Code:
View Replies
View Related
i wirte SQL statment to collect information from oracel database but after 5 minutes i got the following measage
Error Type:
Active Server Pages, ASP 0113 (0x80004005) The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools. Code:
View Replies
View Related
I need to insert some number into database as text. My problem is if I insert the number (ie. 4.0), the value in the database only show (4). So, is it possible to convert a real number into text number using ASP?
View Replies
View Related
here is the scenerio
in master batch table i have various master batch like
200701-0001
200701-0002
200701-0003
Now each master batch can have multiple final mixed batch like
200701-0001-01
200701-0001-02
200701-0001-03
and this record is inserted in to fmix table.
so i have a form in which i have a dropdown menu in which all the master batch is listed,
i select 200701-0001 and that value is passed to next page where i will enter other fields data and insertion to my fmix_no will be done automatic like 200701-0001-01, 200701-0001-02 and so on,
how to achieve this
so in short each master batch will have more than one final mixed batch.
pls help, also if u have any online contact in yahoo or msn pls send me, i am so confused and badly struck deadline is just couple of hours away. my yahoo id is(E-Mail address blocked: See forum rules) you can PM me i am online right now.
View Replies
View Related
I want To handel the error messages by myself in one part in my script. I know that in VB I can Use the statment - On error resume next And I also know that I can retrive the Error Number In VB with Err.Number.
How can I handel the errors by myself in ASP? I heard about the ASPErr Object, Is it the same thing like the err object in VB?
View Replies
View Related
The problem concerns 2 tables, cart_products and cart_shoppingcart.
Cart_products contains all the product data (eg, prices, product's key name, etc), but most importantly, it contains the quantity of stock (prod_quantity) for each item.
cart_shoppingcart contains all of the user's items in their shoppingcart, including those that are part of an (customer) order; these have the order_number to differentiate from those that aren't in any order (their Order_number is 'no_order', the others have the order number).
Now, what I want to do is this:
For every item in the order (ie, every entry in cart_shoppingcart that matches the username and order number), take the quantity (x) the customer is ordering, then take the quantity of stock remaining (y), then subtract x from y to create the new stock level (z) and update the appropriate record in cart_products with z (all this with SQl preferably).
I was thinking of using a Do while loop, but realised that it wouldn't work as I'd have to use several SQL statements and then I'd run into a problem the minute ASP reads "objrec.movenext".
View Replies
View Related
can anyone tell me difference between environment variables and server variables.
View Replies
View Related
I'm not sure how to best describe my problem, so a simple example should help explain things:
I have two arrays, called set1_data and set2_data
if I create a variable like so:
firstPart = "set1"
and then assign like this:
copyOfArray = firstPart & "_data"
how do I make copyOfArray reference the set1_array, as opposed to just a string "set1_array" which is what it's doing?
I've had a good rummage round ye olde Internet but couldn't find anything there must be a keyword or function to achieve this?!?
View Replies
View Related
if I dispaly certain column data from database, how to make the auto numbering in front of each data?for example
1. ha
2. ho
3. hu
let say the ha, ho and hu is data that call from database column.
View Replies
View Related
Can you help me with this? Is there any function that I can use in getting a
whole number
Example:
Input OutPut
12.3 12
1.63 1
21.1 21
Im using the function left(p1,p2) but it doesnt recognize the whole number
View Replies
View Related
I have an error statement in place which i would like to catch when a problem aoccures and assign a value to Compensation.
Code:
If Err.number<>0 then
If iCount Mod 2 = 1 Then
objRS.Move ((iCount + 1)*0.9)-1
Compensation = Int(objRS(0))
Else
objRS.Move (iCount*0.9)-1
Compensation = objRS(0)
objRS.MoveNext
Compensation = (Compensation + objRS(0))/2
End If
Else
Compensation = 0
End If
at the moment,Compensation seems to always have the value of 0 even when an error is not evident. Have i got this the wrong way around?
View Replies
View Related