I got 2 radio buttons which has common name of division and value of --> yes and no. How to retrieve information from radio buttons from the form.
like if my radio button --> yes is checked , I want it to show yes on my page when i have submitted my form. what do i have to use ... --> request.????? Do i need to use arrays to retrieve info?
I have my system set-up, where by when a user accesses the cms, a time stamp is added to the database. So we can keep check of when people accessed the system.
The added benefit of my addition, is that a session timeout is usable based on the inputted timestamp the user logged in. I added this functionaility because the system could be idle for some time and if so set the session to equal nothing or similar.
However what would be a nice feature of the cms is the display of the current user.
Below is code I have inputted to give some idea of what I am doing
Session("ADID") = objRS("adminID") objConn.Execute("UPDATE tblAdmin SET adminLastLogged=now() WHERE adminID=" & Session("ADID"))
Session.Timeout = 30 ' 30 = Minutes
SO does anyone know how I can retireve the adminUsername based on the session used when loggin into the system.
I am using a code in ASP that uses a Java class. I am using GetObject("java:MyClass") to get the object of that class. It was working fine, But now we have shifted to Windows 2003 server with IIS 6.0. Here it doesn't works. It gives me an error with code '800401e4'.
I've read somewhere it has been restricted due to some security problems. But I still want to enable this on my server.
I have using java to write a simple class (test.class) and placed in a folder d:/jobs.progess/temp and set the classpath to that folder then, my script here
Im trying to build a little intranet security tester to produce a list of usergroups that the currently logged on user is a member of. Now i did this before a good while back on an NT based system and it worked a treat. Heres the basic code:
I have recently run into a problem using the getobject() function.
I have a fully functional script that is running on a Windows 2003 server. It makes the following call:
set adsUser = getobject("WinNT://" & replace(request.servervariables("remote_user"),"","/"))
We recently had to do some maintanence on the 2003 webserver so we had to temporarily move the script to a Windows 2000 server. To our dismay the script failed on that statement. None of us can figure out why, is there some obscure setting that we missed that enables the "remote_user" in the server variables? Is there a better way to get the remote user?
I have not been working with ASP for too long at this time and am not real familiar with a lot of things about ASP. I have searched for articles on the following question but not come up with any definite answers. Code:
I'm building an ASP app that uses Windows Authentication (IWA).
I have an authentication routine that assesses if & how the user can use the application (see code snippet below). Users of a particular group have full permissions (configured via IIS) and all other users have read/execute permissions.
When I call the authentication page from the server on my own PC, everything seems to work, but I guess this is not a respresentative test. So I installed the page on my development server and called it again from my own PC. This time a got an error: Permission denied: 'GetObject' .
The error occurs on the second GetObject call. It seems to point to a permissions issue, but I'm not sure where to look.
I have a vbs script that retrives some stuff from AD via LDAP. Works great, and does exactly what I want it to go. The 'guts' of the app is Code:
Set objOU = GetObject (strOU)
Where strOU is something like "LDAP://OU=Users,OU=OT...." etc. Like I say this works fine and generates a nice report.
However I have to (I don't know why, but it's an insist) that this script has to be an html page. A stand alone one at that (ie to be run form a users workstation).
I rewrote the code to output to the html page, emebeded it in <script language="VBscript"> etc but the GetObject bit isn't working. I get :
I am currently developing a final year project which is a web based tracking system tracking exam questions. I am using IIS as the server, MS access for the database, and ASP with VBScript for the scripting side of things.
One of the things I want to do would be to e-mail a user/moderator whenever a exam question is edited/completed/updated. does anyone have any previous expierence in this? i don't even know where to start.
What is the asp code variable for System Date and System Time? Are they built-in system variables, or is there some code involved to return the values?
I use the following code to check if a user is an admin in the login page of our intranet.
Set User = GetObject("WinNT://" & UserDomain & "/" & UserName & ",user" For Each Group in User.Group Select Case Group.Nam Case "Domain Admins Session("Admin")=Tru Case "Domain Users Session("User")=Tru End Selec Nex
The code works fine on IIS5 and Windows 2000. I have set up a test server with Windows 2003 and IIS6 and created the same application, however the second line of this code returns an error message
Active Directory Error '80070005 General access denied erro
It's obvioulsy a permission issue but I cannot figure out how to get around it.
I have two tables having similiar columns ( i had to do this to compare the values given to me, because both the table data came from different sources)
The tables named are OFFICERS token full_name division EMPLOYEE token full_name division
Now the table EMPLOYEE contains more than 5000 records and the table OFFICERS contains around 2400 records which are already present in the EMPLOYEE table.
Now I want to build a query that will return me all the records in the EMPLOYEE table that are not present in the OFFICERS table. The criteria for comparing 'full_name'. so the query should return me 2600 records that are not present in the OFFICERS TABLE.
I tried doing this " SELECT DISTINCT EMPLOYEE.full_name,EMPLOYEE.token,FROM EMPLOYEE,OFFICERS WHERE EMPLOYEE.full_name<> OFFICERS.full_name"
But this query returns me records that is not present in the OFFICERS table as well as some more 1000 records which are present in both tables. thanks a lot
I want to have a form where there is a textfield and a Browse... button to the right of it. I want the user to be able to press the Browse... button and select a file and then that filename be returned to the textfield.
I don't want it to upload it or anything like that...I just want to know the filename that the user has selected. Also, when the user presses the Browse... button, I want it to automatically go to a certain place.
I am trying to access the following site with an asp page. I am just starting out with XML URL
This is my stats page for battlefield Vietnam. I have managed to get a local verison to work if I save the source code of the page above as an xml file on my server, and I use the following code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Option Explicit %> <% Dim xmlDoc, root Dim success, player, strData, online ,rank, rp, score, kills, deaths, fttk, kdr Dim dpm, ftpm, mppr, medals, gold, silver, bronze, rounds Set xmlDoc = server.CreateObject("msxml2.DOMDocument") '
What I can't figure out is how to access the data from the external site.
This is my code can you fix it if it have an error
<select> <% set rs = Server.CreateObject("ADODB.Recordset") strSQL = "select cat from events" rs.ActiveConnection = conn rs.open strSQL if not (rs.eof or rs.bof) then for i = 0 to rs.eof response.write("<option>" + rs(i) + "</option>") next end if %> </select>
how can i retrieve information on a form page that once previously submitted by the user so that when the user goes back to that form page it will remember what they inputted instead of having them to retype it again? do i have to use session? can somebody please help me... what would be the easiest and most efficient for a newbie to tackle this problem?
Doesn anyyone know the proper lines of ASP code to sucessfully retrieve a pdf file from SQL server. Everytime I run my code I get gibberish all over the screen. I would like it to prompt me to save the file to disk.
I have a question, is that any other way to retrieve data from another webpage besides using XML object? Because I am using XML object now but give me so much problems.
If I used MSXML2.ServerXMLHTTP object, it gives me time out error: msxml3.dll error '80072ee2' The operation timed out
If I used Microsoft.XMLHTTP object, it will hang IE. In both cases, I have to wait for half an hour or more in order for the XML object to be working again. Actually both webpages that's communicating are hosted at the same machine. The main site (ex. aa.domain.com) points to particular folder under it, while another one (ex. bb.domain.com) points to another folder which is two levels up to the first one.