column2:
I like apples.
I like bananas.
I like grapes.
I'm trying to have it where the choices from column1 are provided on the form, and based on the what was chosen on the form the corresponding choices from column2 are display on the page.
I have an 2000 Access database that stores job listings from potential employers for a school. I would like to be able to display the date on a webpage the last time the database was updated (inputed through asp natch').
The database is not updated everyday so that won't work but something like the database was updated on Monday 11/24/2003, I would want it to say "New job listings as of Monday, 11/24/2003" if it were checked on Tuesday or whenever. Code:
i want to display my record on asp page as follows:
custid ordernum 1 101 1 102 3 104 3 105
that is with only the ones with more than 1 order. how can i manipulate the display...and i cant(i mean i have no permissions) change my query to do this.
im wanting to display a full recordset from an access database and sort it by the "map" field seen below which works but i get this error between my second last and last records when theyre displayed:
ADODB.Recordset error '800a0e78' Operation is not allowed when the object is closed.
I have this code that displays record sets at random, but some of time the results are less than the minimum set, which is 5 records. It is less, or none at all. What I need is for the asp to display records randomly on each submit.
Currently, the asp runs so that the whole recordset is different, i.e. Random. I am a little concerned about the load on the server by running such a script....perhaps someone can clarify.
'Set the number of records to display on each page by the constant set at the top of the script Code:
I'm trying to create a page that uses a recordset to display user information such as: username, email address, first and last name. As soon as the page loads I would like the user information to be displayed. I have a user database, I just need to know how to get the recordset to display the information specific to the user that is logged in.
I have a simple recordset which selects various fields from an SQL table on my ASP page and displays them accordingly. However, ones of the fields is set to DATETIME(starttime). How do I get that field to display the time rather than both the time and the appended date?
I found one website say that it will auto alternate the position of advertisements for every 5 minute. My question is how can they do that.If we want to change database like this we have to use internet explorer to call asp script in client side.
Does the webmaster of this website always open that asp page and make it runs all the time?Or can we always 24 Hrs. run the asp script on the Server not Client?
I do not control the script above, it is on an e-commerce site that is very generic, meant for many users - and is generated by their server code. I want to capture the URL and with an if/then redirect if the last place visited was the checkout site.
I need an alternate method of URL capture, rather than HTTP_REFERER.
Attached is my code. Its working fine and produces great results but all the rows are in the same color background (unless mouse-overed).
What would be interesting to see if I can get alternative colors working here... Can anyone dig in the code (maybe re-juggle) and help me with alternate row colors?
First Row to be #FFFFCC Second Row to be #CCCC99 when not mouseovered
I am putting the results from a database in a table using ASP. How can I get alternate colors in each row. (i.e. first row white, second grey, third white, forth grey, etc.)
I am in need of something like mod_rewrite or an alternate solution.
I have a client, who's website is all HTML files (200+ files) and was previously password protected by javascript only. Anyway, what I need to do is password protect the site using a better solution, which would be a server side scripting obviously.
I am familiar with apache's mod_rewrite and PHP, which would make this problem easy to solve by simply passing the HTML file to a php file, then after neccessary security checks, pass the requested html back to the browser..
The only problem is that its on an ASP server and I have no knowledge of ASP. I am not even 100% positive what kind of server it is, I just know that .asp files work in it and .php does not.
Anyone know of something like mod_rewrite for ASP or an alternate solution that would work in my situation?
In my application I need to read the lines from the text file. I use the following script to do that.It doesn't seem to work because of the Norton Anti virus script blocking. I cannot do anything to Norton so I want to find the alternative way to read the lines from the text file. Quote:
Dim objFSO, objTextFile Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile(Server.MapPath("ProgrammeDetails"),1,false) Do While Not objTextFile.AtEndOfStream Response.Write objTextFile.ReadLine & "<BR>" & vbCrLf Loop objTextFile.Close Set objTextFile = Nothing Set objFSO = Nothing
So I have a layer with a repeating table displaying the results of a recordset that are associated with the record being displayed behind the layer in a table. The problem is when there is no record to display it looks weird there. I'm trying to get it so that when that recordset is empty it puts an alternate text in that spot saying no records were found. I tried to get it done by throwing a layer on top of the existing layer whenever the recordset is null. The problem is the code I'm doing it with won't let me have quote marks, which are required for anything more complicated than basic text. Anyone have suggestions? Here is the code I'm using: ...
I have a fullscreen page which needs to incorporate a forward, back, and close button. I have this working fine but after a review, people suggested that the foward and back buttons not be active if they do nothing.
In other words they want them to function exactly like a standard browser's forward and back button. When you open a page in a new window, the back button is grayed out until you move to another page. The forward button is grayed out until you move back a page.
Can this be done?I need to place a grayed out image if there is no back history or forward history. Otherwise, I need an active image with the back and foward action.
I am going to need to offer alternate index pages for each user that visits the site. So, I would have index1.asp and index2.asp. User 1 gets index1, user2 gets index2, user 3 gets index1, user 4 gets index2 and so on. how to do this?
I have a set of web pages on an AD-authenticated web site that are supposed to allow users to modify their own AD account attributes, limited of course to things like their email address, URL, etc. I was hoping to connect to LDAP using secure authentication as described on a few tech web pages, and the connection works fine but when it's time to commit the changes with .SetInfo, the script fails with: Code:
I have a page that uploads an xml file and reads it into a SQL database. The page is transactional and aborts if there are any anomalies in the xml.
My problem is that the if I repeat an identical import the transaction succeeds the first time and then fails the next time. This pattern continues with subsequent repeats. I have removed all of the ObjectContext.setAbort() calls but still the onTransactionAbort() sub is called.
I am creating a dynamic ASP VBScript page, which gets data from an Access database.
In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.
I think what I am trying to get to is the following:
If file exists (using URL from database to get location of image file) then display image using the url from the database as the image source else display default image - hardcoded in program endif
I have had a go and come up with the attached but I get an error with my if statement...
Last week, my shopping cart was still working well until I began getting the following errors 2days ago..
Error Type:
ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. ../order/saveorder.asp, line 157
Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Page: GET /main/saveorder.asp
Could you check my code below and let me know what possibly the error is?
I have it at the moment that on the main default.asp there is a recordset that will display all records within that table, these are a list of forums that will be available.
I have a table that will show the forum name, and the description. This table is then looped using Do while not, now what i need to do is show how many records in the Treads table are related to each forum using asp. Code:
I basically created 5 different recordset with names of ObjRS2 ---> ObjRS6 The code is pretty easy to understand, but I'm missing something
<% for (i=2;i<=6;i++) { %> all of my HTML code calling the Recordsets....example <tr> <td> <%= objRSi("something")%> <----- the "i" is where i want the counter obviously </td> </tr> }
I have a database set up for a survey where in the Answers table I have columns QuestionID, SurveyID, and Answer. Because my survey has about 300 possible questions it's impossible to make a column for each answer. So if I need to select the answers from a specific survey for a specific question and I have about 50 entered in the database my loop will have go keep going for about 15000 times. What I'm trying to find out is if there is a way to create a record set by selecting a survey by it's ID and then when I only have about 300 rows in the record set select answer from the record set using the questionID. This is to update the answers for the survey. Also, another possibility would be update the recordset and then update the database. Is it possible to do that? Any directions to some code?
Doing a "modify a registry" html, I need to use the content of a recordset as an initial value for a text input , but it does not function the way I need to; this code gives me an error, look:
the error shown is "Error de Microsoft VBScript en tiempo de ejecución error '800a01c2' Número de argumentos erróneo o asignación de propiedad no válida: 'ob_rs' "
i ahve a recordset which takes data from a database using the shape command in a SQL statement. now i want it to show the data in a tabular fom such that the parent field has to it's right the child fields with out repeating the parent field again and again. And this done, the child field in the table should have the grandchild fields to is right and as before without repetition of the child field. and all of this in a tabular form!!! i use a similar sql statement as below: SQLTRY = "SHAPE {SELECT * FROM A} APPEND ( ( SHAPE {SELECT * FROM B} APPEND ({SELECT * FROM C} RELATE MachineNum TO MachineNum) AS rsparts) RELATECategoryNum TO CategoryNum)"
I have the following code: Code: Set RS = Server.CreateObject("ADODB.RecordSet" ) RS.CursorLocation = 3 RS.Open ("SELECT * FROM " & the_table_name & " WHERE " & job_id_field & "=" & request.querystring("job") &""), cn, adOpenDynamic Both have connections via the following string:
Code: set cn = server.createobject("adodb.connection") cn.Open ("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(database_map_path)) & ";" Only difference is that the newer version has the connection string included in another file, and the "RS.OPEN ..." line on the recordset code gives an error: "Too few parameters". Expected 1.
can anyone explain to me what the code is trying to do?
if rsHistory(2) = "i" then v_HistOperation="Clock - In" v_HistTime=rsHistory(0) else if rsHistory(2) = "o" then v_HistOperation="Clock - Out" v_HistTime=rsHistory(1) end if