Xml Variable FALSE

I'm not too familier with XML, this is probably a simple question but in my script I use this:

...
xml.Open "GET", url, FALSE
xml.Send()
Response.write xml.Responsetext
...

now, this is probably a very simple thing and I'm blind or something but how do I make it do something besides just quitting if it's false???

View Replies


ADVERTISEMENT

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

IsNumeric() = False

I wrote a stored procedure to INSERT a new row in the database. It returns the new ID via @@IDENTITY. This value is read by my ASP and stored in variable intNewID. The value displays fine via <%= intNewID %>. But when I tested it using IsNumeric(intNewID), it returned False.

View Replies View Related

If Exist=false

I need a way to check if a certain folder exists. If it doesn't exist i want to create it. How can i do this?

View Replies View Related

SendEmail Returning False

I have two forms, each with its own processor ASP. Both use the SendEmail.asp mailer program. One form works, the other fails at the SendEmail call, and I cannot figure out why.

The form code of the form returning no mail sent: ....

View Replies View Related

True Or False In A Yes/no Field

in one of my sql queries on an asp page i am trying to select some data from an access table. The problem is the search criteria is based on a yes/no field. I need to find any record where the value is null or true. So far i have this:

if ISNULL(orseof("Returned")) OR orseof("Returned") = True then

the ISNULL section works it is just the = true bit that doesn't.

View Replies View Related

False User/password

I lethe user enter a username and password and through a SQL-statement I
check if there is a corresponding password in the database (Yes I know,
not very good security but for the moment it's enough). Problem is that
when I enter a false user/password, I want the code to redirect to
another .asp-page which states the user is not valid. Problem lies
within the statement "if rsMOS is nothing then response.redirect
"VWGloginAgain.asp" ". Somehow, the code does not return 'nothing' but
something else.
How do I figure out what it returns? Or, how can I make sure it returns
a 'nothing' when no such password is found in the database?
Here's my code snippet ('usr' and 'ww' are defined earlier; furthermore
I've left out the redirects, but I've tested the first
if-then-conditions and they work fine... Just the 'nothing' does not
work):

View Replies View Related

True Or False Quiz

i m trying to create a true and false quiz which accesses the questions from a access database processes the results and then writes back to the database

I dont know how to structure the code for the radio buttons,i also need to give the user immediate feedback, but i cant use pop up boxes

View Replies View Related

False 'ASP 0113' Error Message

Getting a false error message listed below. The error occurs only when using an ALIAS instead of actual computername i.e. the server name is INTRANET01 but the alias is HELPDESK.

error 'ASP 0113'

Script timed out

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.

View Replies View Related

ASP CHECKBOX: How To Send True/false To DB

Been having problems sending a true/false value to my database from a checkbox/radio group. Using checkboxes.... Code:

View Replies View Related

Random True/false Quiz

Here's what I want to do (i'm kind of there in JavaScript, but want to move it to ASP).

I have 17 different html pages. quiz1.html > quiz17.html.

The user says take a quiz and it pops up a window holding quiz1.html.

Within each page is a true/false question. Upon answering the user is told:

1. what they answered.
2. if that is correct or not
3. a corresponding sentence about the question.
4. an image the corresponds to if they were corect or not.

(This is all done in javascript).

----

However, now I want to take these 17 questions and randomize them and choose 6 questions.

For example:

The window pops up and it's question 1 they do that then move to the next one. 1-6 (random out of 17.

I'd like to do this in ASP.

View Replies View Related

Display Ms Access True/false Fields As Check Marks On ASP Page

what is the easiest way to display Yes/No, True/Falst, On/Off MS Access fields as check marks on an ASP page? it would be either checked or unchecked.

View Replies View Related

Document.formulier.submit On Return False "page Cannot Be Displayed"

I'm having in my asp page a java script with function. It checks the form, see the code below:

When I click on my submit button is has onClick="invalid();"
If a field is indeed not filled in, it gives the alert message.

My problem is, when the alert apears and I click on OK it gives an errorpage, I won't that it returns to the form. Code:

View Replies View Related

Calling Com + Object Variable Or With Block Variable Not Set

I'm turning my application into a "DLL". Everything worked fine untill I try to do a "While" in my asp code. Then I recieve an error like this:

"Object variable or With block variable not set"

My vb code look like this.....

View Replies View Related

Passing Data From Javascript Variable To Asp Variable.

is there any way of passing a javascript variable over to a asp variable so
i can write it to my database.

View Replies View Related

Convert ASP Variable To Javascript Variable

How do I convert an ASP variable to a Javascript variable?

View Replies View Related

How Do I Put A Variable And A Non Variable In A From Statement?

sql = "SELECT * FROM & console &'news'"

I got that right now but i want the variable, console to be placed along with news so when it selects from the db it selects from gcnnews or whatever variable it's on. How do I do that?

View Replies View Related

Variable-variable=junk

im trying to subtart one quantity from another then stick the answer in to an update statment, but all i get is an error in syntax message

variable math bit=
qty=request.form("oqty")-Request.form("qty")

sql =
sSQL="Update spares SET spares.location='"&request("location")&_
"',spares.machine='"&request("machine")&_
"',spares.part_desc='"&request("part_desc")&_
"',spares.part_number='"&request("part_number")&_
"',spares.qty='(" & qty & ") "&_
"',spares.min_qty='"&request("min_qty")&_
"',spares.updated_by='"&session("name")&"' WHERE(spares.id)=" & form_id

View Replies View Related

Variable Name, Dependant On The Value Of Another Variable...

I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code:

View Replies View Related

Can't Get The Variable

I have many buttons that mapping many textbox, when I click button, I
want to show a string that contains button number( and the mapping
string ), but it failed.

Here is the code:
/////////////////////////////////////////////////////////////////////
<%response.write"<input type='button' name="'btUS95resone"&" a &"'
value='Save' onclick='resone("&a&")'>"%>


function resone(cnt)
{
alert("document.all.txt_note"+cnt)
}

////////////////////////////////////////////////

It seems that the component I called is not there...

View Replies View Related

If Not Variable

Can anybody tell me what is the asp equivalent of the php-phrase:

if (!$Variable) {}

?

Another question: is there a special syntaxis for asp conditions in condition?
I tried this code it doesn t work:

If Condition Then
If 2nd condition Then
ElseIf Then
End If

End If
And it works only when I remove the 2nd condition's End If and the ElseIf. Seems strange, no?

View Replies View Related

Variable

I have a text file that looks like this:

Artist Name: Kiss
Song Title: Rock and Roll All Night
Running Time: 04:38

And I need to be able to get the artist name and song title in asp and display it on a website. The thing is, the text file changes with the song being played on the radio. How can I do this?

View Replies View Related

VB Variable

I've been given an ASP app written with server side javascript. This app needs to get the username of the person currently logged in to windows (Request.ServerVariables("AUTH_USER") in vbscript). I found a way to get this variable in javascript, but then it wouldn't let me split it (server kept saying method not supported). So I've gave up on getting the username with javascript, and have set variables in VBscript at the top of my page. How do I access those variables within the javascript portion?

View Replies View Related

Variable

i have a textbix name "building" inside my system where the user might input one or several building name in it seperated by a comma. How can i extract each of the value in it? For example, "PG2, PG7, PG6", i want to extract each of them.

View Replies View Related

Variable In A URL

I have this url that loads, but in the url is the date, so I need a variable i can use so as the date changes the url is automatically updated,

View Replies View Related

Variable

using access db and asp

i have a variable from a form
sRound = request.form("round") and for now let us say this value is 3

now i want to include that 3 in sql, but it is part of a field name which
is round3_report

cm.CommandText ="UPDATE rounds SET round" & sRound & "_report = '" & var5 &
"' WHERE Name ='" & sName & "' AND meeting = " & var4 & ""
cm.execute

this isn't working. i keep getting parameter error. i know there is a way to
join a word with a variable in order to make a field name in asp/sql

View Replies View Related

ASP Variable

I am having difficulty in displaying Response.Write rsVacancies("Title") variable more than once. If I remove it from the page title it displays within the description tag but does not display in both. Code:

View Replies View Related

WHERE As A Variable

I am tring to search a database with an SQL statement via a web page. I am using Dreamweaver to build my page. The search works great when I hard code the table field into the Recordset. However, I would like to implement a variable on the field in the table to do the search on.

For Instance, a user can make a selection in a drop down box and then enter the text in a text field. I am having trouble implementing the drop down box variable into the code. I suspect I need the WHERE to be a variable just as the LIKE parameter but I keep getting errors. Code:

View Replies View Related

SRC With Variable Value

I have one condition for getting the image in an included file. If the file which is including the included file is from parent folder if should pull the image directly from Image folder, otherwise it should change the path like Code:

View Replies View Related

Variable From URL

I have created the pages for a website in HTML. I need a script in ASP that displayes the HTML pages when requested (EG: script.asp?page=HTMLpage1).

<html>
<head>
<title>Test site 1</title>
</head>

<body>

<% page = request("page")
select case page
case main: <!--#include file = "index.html"-->
case "services": <!--#include file = "services.html"-->
case "case_studies": <!--#include file = "case_studies.html"-->
end select
%>
</body>

</html>

Any ideas on how to make this work?

View Replies View Related

Using A Variable

for example, if i have Code:

do while not c.eof

if c.fields("id")=request.cookies("id") then
response.write "This is you"
else
response.write "This is " & c.fields("name")
end if

c.movenext
loop

the request.cookies("id") does not work! no variable will work in its position, either. the 'if...then' statement above will only work with c.fields("id")="something", not a variable, like i want. how can i get around this?

View Replies View Related

Get Variable

I have a HTML-only file, and asp file that do a databasequery.How can I do a query in the html file, like this: DBLookup("2").The asp file execute the query and respond with the result. Send it back to the htmlfile and put it were the "DBLookup("2")" is.
I can not have any asp code in the html page.I have a php file that works like this, but how can I do the same with asp?

View Replies View Related

Name A Variable

how can I name a variablewith the value of another variable to make the first more dynamic.Code:

<%
sql = "SELECT * FROM table"
set rs = cnn.execute(sql)

submodule = rs("ID_submodule")

counter_"submodule" = 0
%>

The idea is where it says "submodule" is the value of the submodule, because this part of the code is a loop that checks all the table registries. Then the 0 would be 1, 2, 3.. depending of the quantity of registries associated with the ID_submodule related.

View Replies View Related







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