Request Objects Addition
Can I add two request objects?
View RepliesCan I add two request objects?
View Repliesi cant open any project in ASP.Net and neither can a create a new one
I have two strings that instead of adding them together to get the sum the are concatenating together.Does anyone know how I can get these two to add
while not rstemp4.eof
vservdate = rstemp4("servdate")
vdesc = rstemp4("desc")
vservhours2 = rstemp4("servhours")
vtravelhours = rstemp4("travelhours")
vtech = rstemp4("tech")
shvar = shvar + rstemp4("servhours")
thvar = thvar + rstemp4("travelhours")
rstemp4.movenext
wend
I am trying to add the values of a form. The results keep getting treated as a string and not an integer. So with :
theForm1 = Request.Form("number1")
theForm2= Request.Form("number2")
thetotal = theForm1 + theForm2
Response.Write(thetotal)
If the value of theForm1 is 4 and the value of theForm2 is 5, thetotal is 45, instead of 9.
how to add two numbers from two different textboxes and display it in the third box.
View Replies View RelatedThe problem i am having is adding 2 rs values to each other to come up with an amount.
so i have something like the following:
sql1 = "select sum(col1 + col2 + col3) as result1 from table where col4 = "y" "
set RS1 = Conn.Execute(SQL1)
pastdue1 = formatnumber(rs1("result2"))
sql2 = "select sum(col1 + col2 + col3) as result2 from table2 where col4 = "y" "
set RS2 = Conn.Execute(SQL1)
pastdue2 = formatnumber(rs2("result2"))
pastduefinal = (pastdue1 + pastdue2)
But when i do a response.write (pastduefinal) i get "0.000.00"
Does anyone have any idea? I replaced the formatnumber with formatcurrency but still didnt work. Am I using the addition incorrect?
I have a database with three feilds
Tbl_counter
ID
NAme
Count
Evertime the user clicks on a button in the asp page. I want to subtract on from their Count feild and then reinsert that value back into the database as ther new count value.
<%
dim n, c, t
n = request("number")
c = request("cost")
t = c+n
%>
This code returns 43 for c=4, n=3 instead of the sum 7. Do I need any thing else?
I presume it simply does not hold the variables?
On selection (could just as easily be a text field) I want to do two thing.
1) See how many times the script is run, after 5 attempts go to next page.
2) When a number is selected/typed in it should be added to the previous number
Basically I want to stop the page at either a number of loops if it reaches 5 or when the total summing of numbers equals say 4. Code:
I have 2 radio buttons, Yes and No. I have a text box with a value entered by the user. If the user selects the Yes radio button, I need to add 339 to the value they entered. They will submit the form to add the value...but the problem I am getting is, it keeps adding 339 more than once. If there is also a way...where they select yes and submit and go back to no...to set the value back to the value they entered.
How can I add 339 to a value the user entered without continuing to add 339 if the form is submitted multiple times?
I am trying to build the code that will add a specific column's column where something = something
Example
ID Name Amount
1 Bill 10.00
3 Ted 15.00
1 Bill 25.00
1 Bill 35.00
4 Jude 5.00
In basic word terms, this will describe what I am seeking:
SUM(amount column where ID = 1) ..... answer would be 70.00
I am already connected to the database and can pull out one specific field in a column, just can not add that column.
A starting price grabbed from querystring is shown to begin with. Then the options are shown(prices next to them) with checkbox(populated with over 90 options) and the user selects the options and a new total comes up upon submit. So the total of the options is a subtotal and the home and options together is the grand total. Code:
View Replies View RelatedI have current date and iam getting by GETDATE() function. Now i would like to add coming 12 business days in this date. e.g ( today is 1st Feb and if i add 12 business days in this date then the date i will get 17th Feb).
how to do it. I know there are some functions in SQL server which can be used to get the business days. Please some one tell me how is it possible.
below is the code which is used for adding items and then displays the item
which is working fine i have a problem when i display the item if the user press f5 or does refresh it increases the qty.
so if u look at the code i get the product details from a earlier page if the qty which i get is 2 and then i do a refresh on the page the qty becomes 4 is there any way to stop it Code:
Why does the error below occur whenever the statement Request.BinaryRead Request.TotalBytes) is executed for uploads larger than 100K? I thought the 100K limit applied only to Request.Form. This does not occur with smaller uploads. This is running on an IIS 6 server with full FP2002 extensions.
ERROR:
Request object error 'ASP 0104 : 80004005'
Operation not Allowed
Request.Form and Request.BinaryRead cannot be called after each other as it causes errors.
I need the BinaryRead and I also need to access other form values, but I cannot call them after one another. What do I do?
What is the difference between these two statements? They seem to do the
same thing...
response.write(request("variable"))
response.write(request.querystring("variable"))
I was working with filesystemobject in asp.
When i give filesysstemobject.copyfile the system will be gogin searching indefelty and IIS will get crash..
Why this pblm occurs..
I would like to know if someone has already exchange ASP objects by SOAP with the SOAP Toolkit 3.0 ? Is-it possible ?Because, I have to connect, with ASP, to a Web Service and send to him array of objects.
View Replies View RelatedI'm so glad i finally found a web development forum! It's been a while and it's not easy to find. Until someone recommended this site to me.
Enough about that... I really want to learn about COM objects and don't really know where to go to find out about such things.
If someone could direct me to the right place, i'd be extremely grateful.
I've already learned ASP and PHP (though i have to admit that i am not an expert and I don't think i'll ever be one), but i aim to be a "jack of all trades".
anyone have better information on IIS 5.0 memory behaviour on setting objects to nothing?
Connections and recordsets of course should be set to nothing, but should for example XMLNode object be set to nothing?
I have a object which I declare as a application object "gObj".
I need to use "gObj" with all sessions. I need "gObj" to have access based on the user's id. Is this possible without creating multiple gObj's?
Code would be something like:
Application_OnStart
set gobj = Server.Create( "someDll" )
gobj.uname = "somename"
gobj.port = 1234
gobj.pwd = "pwd"
I've created a simple pop-up form that
takes the required info and sends it via e-mail. Right now, I've got
the From E-mail, the To E-mail, the Subject, and the TextBody. It
works, and it's fine, but I'd like to spruce it up a little so I can
make it more personalized. Can I add other objects? I've been
searching for a general reference online that lists all my choices for
ObjCDO, but can't find anything, and any ideas of my own ("FirstName",
"Comments", etc.) have been shot down as not being supported.
I have stored a .gif and jpeg file in the database as the BLOB object.
Now I am trying to create a report which displays that gif file along with another information.
Is there a way I can display the BLOB objects on the page without having to use any crystal report tool or anything ?
I build a ATL object that is used in an ASP page.
Can I insert events inside this ATL object?
ATL is builded in C++
I have a website with a large collection of pages. Many of these dynamic pages use multiple objects created via the Server.CreateObject method. There are filesystem objects, recordsets, browsertype objects, you name it. I need a script that will loop through all of the objects and Set them = Nothing to destroy them.
I imagine the script would be somewhat like this.
For Each obj In ServerObjects
If IsObject(obj) Then
Set obj = Nothing
End If
Next
I created a label, a textbox and a button when i build the webform and try to see it with the explorer it only show the label
The other 2 objects (textbox and Button) at the Visual Basic.Net editor at the properties are visible and in the code i have
<asp:TextBox id="TextBox1" runat="server" Width="122px"></asp:TextBox>
What can I do that
I've read that you shouldn't store objects in Session variables.
I've read these reasons:
- The object takes up memory that may not be freed until the session times
out. Better to create the object only when you actually use it.
- Causes poor performance because the thread that created the object has to
service all requests for it.
Assuming I can live with the memory and performance implications (a big if,
but let's assume it for a minute), what other reasons are there?
1) can any one tell me what are built in objects in ASP 3.
in asp 2 it was
request
response
session
application
server
object context object
2)what are asp variables ?
I have a problem with including an object in my asp page. I�ve translated an algoritm I found that was written in javascript and it needs a method, floor(), from System.Math to work.
in javascript you can just write Math.floor(x+1) but it seems asp doesn�t automatically include that Math object. It�s a little weird since the method Round() can be used withour any includes of any kind and thats a part of the Math object!
So... How do I do to access this floor() method?
I tried to write:
<%Imports System.Math %>
but it doesn�t seem to do the trick.
Can i get any asp sample codes to retreive photo's from access database
For instances:To get codes on your pages Response.write......
similiar for images.
Set obj = Server.CreateObject("")
can the above statement be used to create any objects other than a recordset?
I have scripts on a server that awhile back had new option/server packs installed (to accomodate security and net framework issues) and my classic asp date references
"Date()" and "Now" will sometimes flip flop the formatting of the date from 10/3/2003 to 3/10/2003 (european mode).
What would be a good way to use an include file to perhaps an asp.net date object, or where would I find a good reference to using an aspx file to calculate and display the date properly so that I can avoid this flip flop snafu of the date formatting.