Remove Last 4 String Characters
how to take a string and output it such that the last 4 characters are removed (.txt, .pdf, .doc, etc.)
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Remove Non-ascii Characters
I use ASP, but i dont think it matters. I am parsing large text files. some of them have non standard characters. I just want to parse a file and replace anything that is not found on a keyboard in usa. I just want to keep: A-Z, a-z, 0-9, .,?'"!@#$%^&*()-_=+";:<>/|}{[]`~ everything else i want to remove (asian letters, wacky characters, etc)
Remove Commas From End Of String
Using ASP/VB I need to remove unwanted commas from the end of a field that will be use in an array. There are items in the field that are comma separated, so I don't want to remove them, just the end ones, could be anywhere up to 5 unwanted commas. Any ideas?
Reg Exp To Remove Part Of String
how do I get a reg exp to remove part of a string? - I have: '/page/txtonly/index.asp' and I want to remove the '/txtonly' to end up with: '/bobby/index.asp'.
Remove Part Of String
Following java script code to get subscriber ID, its value is like 975683678-28_luxap01s.southernlinc.net, I want to leave number there and cut starting _ part, does anybody know how to remove the character starting underscore "_"? the final value is 975683678-28. <% subsciberID = Request.ServerVariables("HTTP_X_UP_SUBNO") ; %>
Remove Decimal From String
I currently have a variable that is pulled from a database for currency amount. Ex: 25.99 . I need to remove the decimal place so that the variable is like 2599 instead. How can I use ASP to remove this decimal place?
How To Get The First Two Characters Out Of A Variable String?
How would you get the first two characters out of a string variable to make an asp:label respond a certain way. For example: The string is "F112345678995" I would like to pull the "F1" out so that an asp label will respond "No match". Is this as clear as mud?? If you need further clarification let me know. Also can you use a trim statement like in VB?
Counting Characters In A String
I have several isbn's that are eather 10 or 12 charcters long. I need to insert a dot . after the fifth character if it is 10 long, and after the 6th character if it is 12 long. How do I count through the string and find out if it is 10 or 12 charaters long, then insert the dot . after the first 5 if it's 10, or after the first 6 if it's 12?
Stripping Out Unwanted Characters From A String
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:
Splitting String Containing Non Ascii Characters
I have these strings which are pulled from a database which contains both english and chinese characters(big5). e.g. Fragrant Rice 10kg Green Dragon? Broken Rice 10kg G.Elephant? I want to split the string at the first occurance of the non ascii character so that i can get the english and chinese parts separated.
Search A String To Obtain Substring, Then Remove That Substring?
what I would like to do is remove a substring from a full string and display the modified string my basic code should be some like this: strSearchString = FullString strSearchFor = "SubString" If InStr(1, strSearchString, strSearchFor) > 0 then Response.write (FullString - Substring) does anyone have any idea how I would go about doing this?
Need To Remove DAY Name
I found a simple date script, which is this: <% var_date=date() 'get the current date var_date=FormatDateTime(var_date,1) Response.Write(var_date) Wednesday, September 29, 2004 How can I get this to not display the day of the week, I only want - September 29, 2004
Remove DAY Name
I found a simple date script, which is this: <% var_date=date() 'get the current date var_date=FormatDateTime(var_date,1) Response.Write(var_date) %> Wednesday, September 29, 2004 How can I get this to not display the day of the week, I only want - September 29, 2004.
How To Remove Cookie?
How can I remove a cookie from the client in ASP? I'm not talking about setting the value to a blank string and I've tried this: [vbs] Response.Cookies("mycookie").Expires = Now() [/vbs] and [vbs] Response.Cookies("mycookie").Expires = Date() - 100 [/vbs] Neither of which work. Is there any way to completley remove the cookie?
Remove Header
can anyone temme the script or style sheet to remove the hearder and footer url address of the web page when printing the pag
How To Remove Duplicates
How to write asp code to remove duplicates in an array. For Eg: A()=(1,5,10,15,10,20,5) After removal of duplicates it should be A()=(1,5,10,15,20).
Add Remove Button
The main idea goes like this: I have a textarea, on the right I have a listbox whose elements are loaded from an Oracle Database, I want to have an "Add" Button which when pushed will insert in the textarea the value selected on the listbox between "{ }" (ej, The {white} cat), you can add as many values as you wish and also manually edit the text, and a Submit button which open another ASP page that will check the sintax of the textarea and insert it on the Database. So far I already have the part which checks the sintax and inserts it on the db, and the listbox with the elements you can insert on the textarea, but my boss really wants the "Add-Remove" feature and I need to finish this for Tuesday
Remove Underline
I have image icons that are clickable. I want to remove the hyperlink from around the image. I tried the STYLE="TEXT-DECORATION: NONE" tag but thats not working. How should I remove the underline from the hypelink. Code: strImage = "<A target=""_blank"" href=""document.asp?job=" strImage = strImage & jobid & "&doc=" & filename & """ STYLE="TEXT-DECORATION:NONE">" strImage = strImage & "<IMG SRC='" & GenerateIcon(rs("filename")) & "'/></A>"
Remove Left Of ,
Would search for this but forgot what its called? I wanna remove everything from the left of the camma in a variable: 43,7-3-05 to 7-3-05
Remove IMG Tag Toggle
I am wanting to create a large dynamic web site with an accessible Text Only version.Instead of creating additional pages for the text only version, is it possible to implement some regular expressions, which remove all the IMG tags from page. I have found a useful tool at http://tantek.com/favelets/ which removes the CSS from the page but I also need to remove the images.Are regular expressions the best means of doing this?
Remove Items
Response.Write "<TD>" & "<a href= objRS.Delete>Remove</a>" & "</TD></TR>" I have a basket which people add stuff to that they want to buy. i want a code that allows them to delete the item too. how the basket works is. thy choose a item from stock page and then it adds to a basket table.
Remove Duplicates
I have declared a multidimensional array as follows. dim parray(100,5). Now this array contains some duplicate values. So how to remove duplicate values in this multidimensional array.
Remove Item From Cookies..
Is there a way to remove item from cookie collection that has a key to it... -- Response.cookies("items")("item1") = "111111" Response.cookies("items")("item2") = "222222" Response.cookies("items")("item3") = "333333" Is there a way I can remove items- item2 and rearrange above cookie into Response.cookies("items")("item1") = "111111" Response.cookies("items")("item2") = "222222"
Remove The Page.asp After The Link
How can I remove the page.asp link from the address bar? For example I have a link called www.mysite.com/page.asp?f=1, after the user clicks on the menu navigation. How can I get rid of page.asp?f=1 so that only www.mysite.com appears? Another thing, will request.querystring still work then?
Import From Csv - Remove Commas
I'm importing data from a csv file but have the following problem. It see any comma in a specific column as the end of the current column and move the rest of the values into the next column I.E Data from column 4 display as data from column 5. I do know that it's comma delimited but would like to know if there's no way that I can distinguish between the commas in a column and the commas that indicate a new column. Col1 Col2 Col3 Col4 Col5 Value Value Value Val,ue Value How do they do it in excel?
Remove Stylesheet Effects
How can i remove the efects off a stylesheet ? I want to export to excel and dont want that the effects off style sheet come with.
Session.Contents.Remove
for each item in Session.Contents if NOT( Instr( item, "customer_" ) = 1 OR Instr( item, "user_" ) = 1 ) Then Session.Contents( item ) = "" Session.Contents.Remove( item ) end if next 'item response.redirect( "menu.asp" ) the code essentially - is supposed to - go through the session variables and remove every one that doesn't being with "user_" or "customer_". So when i try this out, it goes through and removes some, but not all of the session variables in question. run the script 3 more times and then they are all gone. So i inserted a bunch of response.write statements and found that not ALL of the session variables were even being tested. Can anyone offer explanations as to why?
Remove A Specific Item
I have a script which creates an array by doing this:Code: strInputValue = "this will be split into an array" arrMyArray = split(strInputValue) This produces an array of 6 (UBound(arrMyArray) = 6). Is it possible to remove part of the array, so that "into" for example will be removed, such that UBound(arrMyArray) = 5?
Remove Element From Array
is there a function i can use of some sort to remove a specific element in an array by its index number?
Remove The Content In Between Tags
How can I remove the content in between tags? I have a page that has several custom tags: <!--tag:1--> Content 1 <!--/tag:1--> <br> <!--tag:2--> Content 2 <!--/tag:2--> <br> <!--tag:3--> Content 3 <!--/tag:3--> If I only wanted to see the contents of tag 2 for example, how could I strip out 1 and 3?
Auto-remove Feature
I have an email program, that I wrote for my newsletter. When I send my emails, I am getting more and more bad emails. Is there a way to have an auto remore feature that will remore the email from my database?
Remove The Query Statement
I have this on top of my ASP response page: Code: SELECT * FROM bible WHERE text_data LIKE '%%' AND text_data LIKE '%%' AND text_data LIKE '%%' AND ( recordType = 'ju') How can I remove it?
Remove Duplicates From Array
I have an array like this:Code: arrColour = split("blue,blue,green,red,purple,blue,green,yellow",",") What I need to be able to do is to remove all items of the value "blue" from the array. I can just run a dictionary function to delete all duplicate values, because some of them need to be retained. I just need to delete all of them of a particular value. how this can be done?
Remove Text Box Lines
Is there a way to remove text box lines so that a user doesn't realize that information is sitting in a text box?
Remove Preceding Zeroes
how would i transform this number: 00000102 into 102 . basically, i just want to remove all preceding zeroes, but not replace all zeroes.
ASP Query To Access DB & Remove Dups
I have a field called store, I have more than 1 row with the same store name in the store field. I need to coolect all the stores from the store field, remove any duplicates, like I might have buy.com twice and only need it to show once in the drop down. And sort ascending (by store name). Summary. Database is called: tracker The table (and the only table) is called merchants I only want to pull data from the field store, remove duplicate store names, sort ascending. I can figure out how to plug the required htm around the asp code, to auto populate the drop down.
Remove Connection From Applicaiton Object
The connection object is stored in a application object in a database.asp file which is included on all the pages. This is something that I didn't code but I am incharge of fixing it because we are having alot of problems with the IIS. How do I remove the connection object from the application object? I am a bit confused, what if i just use a variable to set the connection and then still include the file on all the pages. Would that work? Code:
Automatically Remove Symbols Using JavaScript
i have created an *.asp page where I alert the user if they attempt to submit the form using with commas, single or double quotes (, ' ") I have written the following function but for some reason it is not working as I thought it would Code:
How To Remove Blanks From A List Menu??
One of my tables is used for two purposes so there are blanks in the column I'm filtering. I tried using an IF statement but it still put the blanks in the list menu. Any idea how to remove the blank items? Code:
Remove Duplicates From List Or Array
I am returning a list form a db: this could be 1,2,3,4,12,67,1,2,34 so basically I am looking at how to remove the duplicates before doing another select. I saw a thread here with a funciton to do this bu it does not seem to work.
2 List-boxes With Add & Remove Button
I would like to create a page with VBscript and ASP which will contain two list-boxes one in the left side and the other in the right side with two buttons namely "Add>>" and "<<Remove" so that if the user selects a value listed in the left side list-box and presses "Add>>" then that selected value should go inside the right side list-box. Similarly if the user selects a value listed in the right side list-box and after clicking "<<Remove" then that selected value should go back to the left side list-box. Can anyone provide me the code?
Remove/Delete Keys From Cookie
I'm using cookies to maintain a shopping cart. I can find plenty of tutorials and articles on deleting a cookie, but only deleteing a single key within a cookie is harder to find... Surely there is a more efficient way to remove a cart item from my cookie than setting it equal to "", isn't there? I mean, technically the cookie will still hold the text cartitem1 = "", right? Which takes up unnecessary space...
Remove Title And Location From Print Out
if there is a way to remove from a page printed of the net the title, page x of x, and the location from the page. If it can be done in ASP that's awesome 'cause that's what I'm semi-used to, but any language would do fine.
Remove Quotes From Field Data
I'm trying to pass a hidden parameter from a form and when the data contains a (') or ("), it bombs. How can I remove the quotes if they exist in the data before passing the parameter?
Web Forms / HTTP File Upload / String.Split A StreamReader.ReadLine() String
I'm developing an Asp.NET system to take a CSV file uploaded via the web, parse it, and insert the values into an SQL database. My sticking point comes when I try to split() the string returned by readline() on the file. The following code snippet works for me: tokens = "one,two,three,four".Split(",") for each token in tokens response.write("<td>"+token+"</td>") next However, if I take the next line in the CSV, read using StreamReader.ReadLine on the PostedFile.InputStream, I receive "Object reference not set to an instance of an object." which I have narrowed down to be my string holding the line. Further investigation reveals that no other string member functions work on my line (.ToCharArray, .ToString, etc). I suspect that StreamReader.ReadLine is not correctly returning a string, even though Response.Write(line) displays what I would expect .....
Remove Connection Information From The Global.asa File
I have actually an asp web site which use the global.asa file to connect to the database but for security reason, I want to put username and password information (or the complete connection string) in a seperate file so only a special user could read these informations.
|