Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Am I typo'ing something or can I just not use DateDiff in a filter?
Ive written some ASP code to list information from a table in my database.. what i need is a drop down list to list all the regions (provided by a table called tblRegion), and when the region is selected that re-queries the list.. Code:
I've got a website that I've been making some changes too as of late. It's not my website so I've been learning a lot, especially since I'm fairly new to coding and webdesign. So keep in mind, I'm just a newb. If there's not enough info here to allow anyone to help, just say so and I'll figure it out on my own. Here's my problem...
This site I'm working on has all kinds of directories and allows certain people within a company to upload files to certain directories. I've got a .asp file that shows all of the content providers for all directories in a table.
I want to make it so that in my directorylist.php file there's a button that will allow a user to click on this "View Content Providers for this Directory" button and it will read/filter this asp file, and spit out a list of only the users who have authority to upload files to that particular directory that the user is looking at.
Is there some way to link the two files to do that? Or is it just a change I need to make in the loop in the asp file or perhaps a change in the php file? I'll provide a piece of code from the .asp file. Code:
On my page i run a SQL query that selects certain records from the database, Is there any way to select a specific record from the recordset then another one. e.g. say i run a SQL that picks up all records with ID < 30 and then i want to pick one with an ID of 1 and then one with an ID of 4 without re-running the SQL query?
I am trying to get my SQL Query to to through a list of faults, and pull all the records from the previous month (say now is july(7) it pulls all from june (6)
the current SQL i have is....
SELECT Faults.DateAdded, Faults.[Teacher ID], Faults.[Computer ID], Faults.[Type of Fault], Faults.[Description of Fault], Faults.Fixed FROM Faults WHERE ((Month([DateAdded])=Month([Date])-1));
I'm using APS VBScript web page on an Access2000 database and I am trying to select from a recodset using a date as the criteria. I keep getting ADODB Data Type Mismatch errors no matter what I do to the database field (which hold a date/time) or the URL. My URL looks something like ... result.asp?id='3/20/2005'... The database field is an Access date/time field formatted to mm/dd/yyyy.
Isapi is installed and rules are working. Now I have to change the links of my shopping cart from dynamic to url friendly. How can I change the internal links of my cart in an automatic manner (some script maybe)? I am trying to avoid to go trhought the proces of 'seach and replace'. I know it is possible to do it in PHP with one scripf for each kind of friendly url link. I am wondering if this can be done in ASP, better said, if the scripts are already done ready to adapt as I am not a coder.
I have information in a database with the following structure: 3 Divisions - each division has several districts. Each district has several regions and each region has several areas. I have a recordset of every area with the region, district and division they belong to. I have 4 drop down menus on my page - area region, district and division. How can I filter my recordset before each dropdown, so it only has DISTINCT records
How do I create an asp page that searches two tables in my database. I want to create a page with multiple drop down lists which a visitor selects to filter my database results. For example a visitor can select to search the database for products with COLOR red and SIZE large - or COLOR black and SIZE small - How do I do this? Is it complicated because I am new to this ASP lark
I've got a Access database of business information.I've made an ASP page with 26 hyperlinks, relating to each letter of the alphabet.I want each hyperlink to fire up a page which only shows the business names starting with that letter of the alphabet. How can I write the href?I've got:
<a href=cat.asp?business=<% = rsProds("biz") %>>A</a> that wouldn't work since we only want businesses starting with A to be shown. How do I make the value for bizname pass an sql LIKE 'A%' statement to cat.asp? Is there a way to minimize the code for each hyperlink or does each letter have to be written out?What will the SQL statement in the resultant page the variable's sent to (cat.asp) look like?
does anyone know where i can get a good free javascript that sorts, filters and pages my ASP page? if it will work with my ASP page and if this is the best way?
I'm having a weird problem when I use a filter on a recordset. Basically, when the filter is applied, no records show up. However, if I assign a value from any field of the recordset to a variable (which i don't have to use anywhere), and then apply the filter afterwards, it works properly. Code:
is it possible (i heard u can replace) to filter out bad words using regexp? I'm using Replace() but it sucks without ALOT of extra code... but using regexp it seems better, with ignorecase, etc.
I am fairly new to ASP and have a lot of fun trying to solve problems, which so far I have been able to do. This one has me stumped however. I have an access database that feeds my asp pages, and I have one table in there that users can submit their names/address etc. for our services. What I would like to do is have them be able to submit the states they provide services in (we're a trucking company) and I think the best way MIGHT be checkboxes (please correct me if I am wrong. What my big problem is though, is how do I create a search page for our users that allow them to sort through these records by 1 or 2 states, and type of service? I basically would like a page where our users can specify say Florida and Alabama and flatbed truck, and it would query through the pages and show all those records. I have done simple searches, but the sheer number of states has me a little confused on both how to structure my database as well as how to search it.
I have a database for projects. Some managers are responsible for multiple projects. I want to dynamically populate a list of project managers, choose a manager, and display a complete list of his/her projects. I have a few problems 1) I cannot figure out how to list a project manager's name only once in and 2) I don't have a clue how to compile all the projects for each manager so that when his/her name is chosen it will display all the records.
i have many records that are duplicates....i would like to remove the duplicates......can asp help me with that?For example,
i have four fields, A-D I would like to compare all the for fields with the rest of the records.....to make sure if there are any records that are the same, if yes, delete them
I have constructed a simple guestbook application using ASP and a SQL server backend. My problem is that when a person post a message and it displays on the site, if they paste HTML code or any other scripting languages in there, it will post and execute on the site which is what I don't want to happen.
Is there a way or a script out there using ASP that when the user post the message it will scan for key scripting tags and filter them out?
Let's say initially I have 1000 records in the recordset object, I display 100 records at a time. Therfore there are 10 pages of 100 records each. But then I filter the recordset now it contains 500.
Therfore I should display 5 pages of 100 records each. But the problem is that I'm unable to page through the filtered recordset. What I mean is that the filtering works and it displays the right number of pages but when I "flip" the page it changes back to the original (1000 records).
I have a login script workiong fine now thanks to some help getting the include working. Now the problem is as follows.In my include file is the following line:
You logged in as: <B><%=Session("userlogin")%></B>
Now what i would like to do, is have it so when the records within the Access database are displayed, it filters them to show only records where the value within one of the fields id the same as the user name (userlogin)
We have a website developed, however after testing I have identified all the pages which have forms allow the input of special characters in the fields. This can allow a user to put in html code and run it. Is there a way to stop this? Code:
I have coded 2 drop down lists. For ur info, currently my 2nd drop down list's content is being retrieved from one single table in database only. What if I would like to make the content of my 2nd drop down list to be populated with data from 2 different tables?
What i mean here is that, the selected value in 1st drop down list will determine data from which table to be loaded into the 2nd drop down list. Earlier I'ved coded my SQL statement as:
SQL = "SELECT x.language_ID, x.language_name, y.msg_category " &_ "FROM Language x INNER JOIN outMessageENContent y " &_ "ON x.language_ID = y.language_ID"
where data for 1st drop down list is loaded from table x and data for 2nd drop down list is loaded from table y.
My 1st drop down list only has 2 values., which are 'English' and 'Chinese'.Now I would like to make it as, if user select 'English', then my 2nd drop down list will refer to that particular 'English' table, while selecting 'Chinese' will allow 'Chinese' table's data to be loaded into my 2nd drop down list.
So what shall I change in order to filter the 2nd drop down list's content according to the selection from 1st drop down list? Shall I modify my SQL statements?
I'm having bit of a problem with a search engine. I got an intranet running in a company with IIS, Indexing Server and ASP. I've realized a search engine which also returns abstracts from the documents.
Most pages in the website are ASP pages. That doesn't mean that it draws all its contents from databases. I'm using ASP for other stuff as well. So they're basically documents, but with extras and hence ASP.
I excluded all sorts of things, e.g. "_" directories, like _vti and _private. Also directories like "include" are left out as people don't need to search for javascript code or css style sheets. Those are not relevant to the users. And finally I also give people the opportunity to make files non-searchable with a quick tag.
So what's the problem? When I perform a search e.g. for "body" (without the "" quotes) it would in this example return some results and one of those results got an abstract with evident pieces of ASP code. Code: