How To Filter Out Unwanted Selection In Rs Paging Link
Since The recordset paging didn't work as I had posted in my previous thread, I decided to look for a new sample code on paging. Thank God it worked. But I'm trying to figure out what to write in the page links: Code:
View Replies
ADVERTISEMENT
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?
View Replies
View Related
I have searched through a lot of paging articles. But I have not found any specific recommendations for my issue. I have a large record set that I need to page through (1000 records). But on each page (100 records) I must be able to select some rows, add
some comment for each and sumarize them on-the fly.
if I page forward and backward, I still need to see before selected rows with comments and I can even deselect or edit some of them. Should I store all this information (selection, comment, price) in session variables or is there a better way?
View Replies
View Related
I have a page that update an Access db. When I operate on this page, randomly the screen is refreshed and I loss the data that I have eventually digited and not saved.
View Replies
View Related
I am trying to prepare a report to export data to a csv file and, in addtion to the charaters present in the DB the csv file also contains some charaters which i do not understand (some square type characters), i tried to copy them here but they seem to changing to spaces when copied here.
View Replies
View Related
My website has been targetted by a web scam. They have sent out an email, which looks as if it's come from me (the email tells them that they must update their information). There is a link in the email which, when clicked, opens up 2 windows: my site in the background and a small window on top with form. This forms asks the customer to submit sensitive information. Is there any script I can use to close down other windows when my site is opened? I can't think of any other quick solution at the moment.
View Replies
View Related
I'm testing the output of variables passed from my 1st ASP to my 2nd ASP. Code:
View Replies
View Related
This may not be possible on the server side, so apologies if this is the
wrong group for this post.My form consists of an unknown number of pairs of text boxes. They are named textbox_a and textbox_b. I then split the comma separated list
that gets posted:
textbox_a = split(Request.Form("textbox_a"),",")
for i = ubound(textbox_a)
...insert into db
then do the same for textbox_b
If anyone puts a comma into one of the text boxes, this will result in
unmatched pairs. How can I deal with the comma, or prevent it?
View Replies
View Related
I have a simple form connecting to an Access database where users log in,
fill out the form, and submit. Everything works fine.
However, sometimes it takes a user 20 minutes or more to fill out the form.
When the user then hits "submit" he is given the login page instead of the
response page I have built in. If the user fills the form out in less than
20 minutes or so, it works fine.
I have Session.Timeout=720 (2 hours) but this hasn't changed anything.
Does anyone know what I'm missing? I'm pretty new at asp so forgive me if
it's something simple.
View Replies
View Related
I'm trying to strip out none alphanumeric characters (and a couple of punctuation marks) from a string before inserting into a database.
I've put in my code below, basically I thought I'd loop through each character in turn and pass it through a regular expression to check its validity. If it passes I'll add it to a global variable ('validString') if it fails I'll remove it.
But I can't get my Mid() function to accept 'i' as a value so it won't loop. Code:
View Replies
View Related
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:
View Replies
View Related
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:
View Replies
View Related
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?
View Replies
View Related
I had an sql statement like 'WHERE MID(id,4,1) = 3' but when I try to use the filter method it returns the error:
'Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.'
rs.filter = "MID(id,4,1) = 3"
Thats what its supposed to look like right
View Replies
View Related
I've used Rs.Filter several time sin my code and they all work fine. However when I use
Code:
Rs.Requery adAsyncExecute
Rs.Filter = DateDiff("n",lastedit,NOW) < 15
I get
Quote:
ADODB.Recordset error '800a0bb9'
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?
View Replies
View Related
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));
but this doesn't work, can anyone assist?
View Replies
View Related
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.
View Replies
View Related
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.
View Replies
View Related
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
View Replies
View Related
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
View Replies
View Related
I want to dynamicaly filter the members in my pivottable.
Here you see how it's done the static way:
pview.RowAxis.InsertFieldSet pview.FieldSets("manager)
Set fld = pview.FieldSets("manager").Fields(0)
fld.FilterFunction = c.plFilterFunctionInclude
fld.FilterMembers = Array("ZWAENEPOEL Geert","VAN COILLIE Caroline")
but I receive the selected members from another page, they are all in
the field 'selectedmembers', so I tried this:
fld.FilterMembers = Array(selectedmembers.value)
View Replies
View Related
i have recordset rs on that i am applying filter as:
rs.Filter = " PRCD = '"&product&" ' and HQ_NAME='"&hqs"' "
here,PRCD is Column of datatype varchar(20)
HQ_NAME is Column of datatype varchar(20)
the problem is with PRCD,if substitue value directly as :
PRCD='SLO1NMK' filter is working but PRCD = '"&product&" '
not working.where as HQ_NAME='"&hqs&"' is working individually fine
View Replies
View Related
Does anyone know where to find a good working MS Word-tag filter, or how to build this.
View Replies
View Related
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?
View Replies
View Related
How can I filter by folder with ASP & Site Server 3.
I have no control over the catalog.
View Replies
View Related
is there any option for using the functionality,given by filters?Does filter take lot of time?
View Replies
View Related
I have an access table which I filtered with the code below.
'''''''''## FILTER AND SORT MAIN TO SOFTWARE ##''''''''''
rsMain.Filter = "asset = ' " & rsSoft("assetnumber") & " '"
'''''''''## END FILTER AND SORT MAIN TO SOFTWARE ##''''''''''
My question is is there a command that will return the amount of records in rsMain without using loops (while Do ect)?
View Replies
View Related
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:
View Replies
View Related
With the following code snippet:
<%="complexid =" & rsComplex("ComplexID")%>
<% rsPhoto.filter = "complexID =" & rsComplex("ComplexID") %>
<%response.Write("<br>ID: " & rsPhoto("complexID"))%>
I get an 80020009 error on the last line.
The first line appears in the HTML output as complex=589, so I know
that there is a valid value available for the filter.
This worked once and hasn't worked since.
The rsPhoto recordset is viewable in a seperate page. The complexID in
the associated table has a value of 561 in the complexID column.
View Replies
View Related
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.
How would I do it? O, here's the way it is now:
<%= Decode(ChkBadWrds("Comment")))%>
How would I do something similar using regexp?
View Replies
View Related
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.
View Replies
View Related
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.
View Replies
View Related
I need to know if there is a standard aproach in ASP ( or any other ) to filter HTML tags. I mean, filter any cross-site scripting code.
View Replies
View Related