XML Document Must Have A Top Level Element.
I am creating a simple XML file via asp and want the XML to appear in the browser. Here is what I have tried: Code:
View RepliesI am creating a simple XML file via asp and want the XML to appear in the browser. Here is what I have tried: Code:
View RepliesI am getting this error message with the following piece of code.
sqlSelect = "Select * from UserPermissions where UserID = " & UserID &
";"
set tbl = GetRecordset(sqlSelect, false)
while not tbl.eof
response.write ("<br>key: " & tbl("SectionID"))
Permissions.add tbl("SectionID"), 1
tbl.movenext
wend
The screen displays
key: 1
key: 2
I've been staring at this problem for two hours now.
It has been said that When attempting to load an XML file saved as UTF-7 (a transfer encoding format for Unicode), the XML parser in Internet Explorer generates the following error message: Invalid at the top level of the document. The same error also occurs when using the MSXML parser from server-side or client-side script.
I am getting this error when I use MSXML 3.0 as reference in a VB DLL function called by a ASP file.
I have a website that is running perfectly on windows 2000 server and IIS 5. However we are now moving it to server 2003 and IIS6. No problem there however after setting everything up a problem has occurred. My directory structure is websites then webroot within that which contains the site files. Within webroot is also a directory called connections, which contains the database connection asp file.
It is a mysql database. Ok the problem is that I am calling the connection in my asp pages as follows (<!--#include file="../Connections/connLUKTrading.asp" -->). but the server will not navigate up a directory level as the ../ indicates. The site works fine if I place the directory connections in at the same level the site works but then I will have to do this at each of wwwroot's sub directories I should not have to. I believe it is a permissions problem to do with IIS6 but not sure. I have spent hours trying to find it.
I'm trying to write a piece of ASP that will allow me to display only one
element of a XML file. I am new to XML and wanted to find out what I am
doing wrong. I think it may be to do with the nodes ? When this is currently
run it comes up with the error "Overflow" ('800a0006').
Any pointers or solutions ? Code:
I am trying to split my search results into manageable pages, with 10 or 15 results per page. My question is- where do I place the pagesize element in this code? and what would it look like? Code:
View Replies View RelatedI have a form that has dynamically assigned element names. How would I do the following:
(original code)
sub OnControlLoad
set Control = Document.getElementById("MsRdpClient")
if Not Control is Nothing then
if Control.readyState = 4 then
Document.all.connectbutton.disabled = FALSE
end if
end if
end sub
I want to get this line
Document.all.connectbutton.disabled = FALSE
to loop and look like
Document.all.connectbutton1.disabled = FALSE
Document.all.connectbutton2.disabled = FALSE
Document.all.connectbutton3.disabled = FALSE
etc....up to a predefined value
I use an array of elements and I want to know the position of a given element in my array
I know the filter function that allows to determine if the element i look for is in the array but this function doesn't allow me to know its position.
How can i find an asp file's TAG like input, button from another asp file...
For example i call a.asp from internet explorer and i want to list b.asp 's
elements.(input, button, etc...)
for i=1 to request.form.count
response.write request.form(i).name & " - " & request.form(i) & "<br>"
next
this throws Object doesn't support this property or method: 'name' is there anyway i can display the post data with its field name?
In our application, we have noticed on two rare occasion where the
data stored in application level arrays has disappeared. We have 3
application level arrays, and many other data types stored at
application scope as well. The other data types appear to have been
unharmed.
All session level data remained unharmed as well. The data
in the arrays seemed to have disappeared all of the sudden. No IIS
restarts, for example, were performed. Is there any known issues with
arrays being stored at application level.
On our IIS 5 windows 2000 web server we have many .asp's.most of which (When right clicked / security tab / edit authentication) are
using Integrated Windows Authentication.
Is there an easy way to check ALL of them? Some of the pages require a
higher level of security (Our password reset page for example) and I am just
auditing everything and want to make sure that only the few pages that
require it are using the elevated security level. (By the way this is
accomplished by using anonymous access with a domain account that is
'elevated'...
I hate right clicking on 1000 different .asps to see the file / directory
level authentication methods... is there an easy way to do this? Maybe
through resource kit command line tools or some meta edit type tool
I have to create a web base application program, I think to use ASP but I would like to see If it supports comparison Graph. Does it support different levels of access because I have different kind of users or i have to do it manual?
View Replies View RelatedI have made sufficent pages for our site and same have been in use in our LAN since long.
Now my company has asked me to put the same on web and we are buying a domain for the same.
However I am worried for a file level security. When the output comes in asp from cod below: Code:
Response.Write("<td><a href=Documents" & adorst("ProjectNo") & "/" & adorst("Client Drg No") & ".pdf target=NEW>" & adorst("Client Drg No") & "</a></td>")
We can simply open a file from our server's folder. Even if someone knows the full path, he can simply open file. Even someone expert can delete pdf file also.
I am using Request.ServerVariables("SCRIPT_NAME") to get the extention from the url and need to know if I am in the root or down a directory. i have two folders, one called 'local' and one called 'group'
View Replies View Relatedhow I can make a dhtml menu into a dynamic menu that pulls its links from an access database instead of the hardcoded html.
I would like to know because I'm working on a site that needs such a menu and most of my administrators using my site don't understand html and won't be able to update the menu unless I can give them a simple form that allows them to add links.
How do I create an array inside an array? This certainly doesnt work...
Dim TmpArray(0 to 10)(0 to 50)
I want to open the MS Access file with user-level Security. I know that if I do NOT setup user-level Security in the MS Access file, and create the table for login in the MS Access file (Put the MS Access file in the server), then it works.
I did that. But, I want to know whether or not we can use ASP code to open the MS Access (MS Access user-level Security setting). This way I can put the MS Access file in the public place.
Can we do it in ASP?
The following code cannot do that:
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/try.mdb"
%>
give me a session level timer code? I'm trying to time a quiz.
View Replies View RelatedI'm creating an array from the querystring, then I want to find if something is in that array..
url = quiz.asp?done=6|3|4
done = Request.QueryString("done")
myArray = Split(done,"|")
For Each i In myArray
If myArray(i) = x Then
do something
End If
Next
I keep getting a "subscript out of range error"
is there a function i can use of some sort to remove a specific element in an array by its index number?
View Replies View RelatedI have a dynamic form sending information via name=value pairs.I know I can read the value of each element in the sending form by using the following....
for i = 1 to request.form.count
response.write "<p>" & request.form(i)
next
but since it's a dynamic entry page (it's built based on number of fields in a database), I need to know the name of each element also.not just the value.Is there a good way to get the "name" portion of the element on the form without having to parse through the request.form string?
I am creating a recordset paging script, however I am having a few issues. I need to remove a certain part of the querystring for it to work properly. i.e i need to remove
mydomain.asp?oParameter=124&oParameter2=87
I can't just do a Replace, because the value of the parameter will change for each page. Is ther an easy way to remove this from the full querystring?
I have noticed on some forms that when a user submits the form and there is a textarea element that a lot of extra whitespace is getting submitted at the end of the elements content. What's going on.
View Replies View RelatedAre there any div attributes that could force a div element to stay in the
background? I have a .vbs calendar class that opens a small calendar.
Unfortunately, sometimes it opens above a form element like a combo box and
the combo box shows on top of my calendar.
The combo in question happens to be within div tags because it hides/appears
depending on another form choice.
Any got any good links on forcing div elements to the background?
I need to know how to disable a button based on the username that logs onto the web application.
View Replies View RelatedI tried to make our menu differend for Users for example :
If user level = 2 than
show Menu (Add Contact)
I used this code:
How to disable a select element via vbscript from another element in the same form. I want to disable a text area element named xptoTextArea if and only if a certain option value is selected.
If this option is selected then disable this text area element.
how I write this in VBScript (it doesn't like the 'key' object) Code:
<%
For i = 0 To Request.Form.Count - 1
Response.Write(Request.Form.Keys(i) & "=" & Request.Form.Item(i) & "</br>")
Next
%>
i need to find some scrit to uploadimages but with multi elements form i mean i need to put some textboxes and compo boxes with the uploading form to process the data entered in the text boxes and copbo boxes something = the posting new thread u can write ur thread and choose file to attach hope it's clear.
View Replies View RelatedI want to display a different message deppending on the amount of stock left. For example if there is no stock i would like to display "out of stock", if the item is in stock display "in stock". Code:
View Replies View Relatedi'm going to ask the way to use database to check user permission level in asp..
View Replies View Relatedhow can i retrict user to only access the web page iif and only if they have the username and password, they neeed to login before can access the certain pages. How is the coding for that web pages?
View Replies View Related