Stripping Results

i have a record that is returned by the database as domain/username. i want to be able to strip off "domain/" and just display "username". is this possible? if so, how would i go about doing this?

View Replies


ADVERTISEMENT

Stripping Down Database Results

i have a record that is returned by the database as domain/username. i want to be able to strip off "domain/" and just display "username". is this possible? if so, how would i go about doing this?

View Replies View Related

Problem Stripping Down Db Results For Cdonts Mail

i have a password reminder page that works, but i'm trying to strip down the username. it's in the database as domain/username, but i don't want the user to see the domain in the email they receive.

when i run the page i get a type mismatch error pointing to the line where i'm outputting the username in the email. i can get this to work when i'm outputting the data to a web page. is it because of cdonts? how would i strip off the data? Code:

View Replies View Related

Stripping Out Quotes

My ASP page allows user to enter comments into a form. To avoid
errors I'm having to strip out double quotes before saving to the
database. Is there anyway to encode these so that I can store them
instead, in the way was an URLEncode works?

View Replies View Related

Stripping Out "'s

I'm trying to replace all the " in my variable with ', but I can't seem to get it right.

editizecontent = Replace(Request("EDITIZE"), """, "'")

Would this work?

View Replies View Related

Stripping The Date

in my front end uses will type in a date in a text box. in the code it want to call each individual i.e the month the day and the year i am not sure of how to do this.

View Replies View Related

Stripping Part Of The Text

I want to strip email from the text. Some of my users may send me a string:

str = "This is email 1: Join Bytes! and here is email 2: <a
href="mailto:me@me.com">me@me.com</a>"

How do I parse the string to get email address only? mI know I may use instr() to determine if email address exists, but please, give me a hint on how to handle it next.

View Replies View Related

Stripping New Line Characters

a small code snippet that will strip the /n from a string?

View Replies View Related

Stripping Out Characters From A String

I know there is a way of stripping out special characters from a string however I need a way of stripping out "" marks from a string or what i really want is to replace all double ("") marks in a string with single ('') marks before inserting the string into a database. Is there a way of doing this in ASP?

View Replies View Related

Stripping Text In Variables

how do I strip this to obtain certain text:

varaible to strip:

connString="driver={SQL
Server};server=SERVER_NAME;uid=USER_ID;pwd=PASSWOR D;database=DB_NAME"

text required:

Server_name, User_Id, Password, DB_Name

View Replies View Related

Stripping HTML Tags

I'm querying a text field with an 8000 character limit. The text also
contains HTML tags like <p> <br> and more. Is there a way to strip all HTML
tags in the resulting recordset, or do I have to replace each tag
individually?

View Replies View Related

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:

View Replies View Related

Problem Stripping Paragraph Tags

I have an asp page that reads the contents of a database and creates an xml news feed. I have code that strips out the <BR> and <P></P> tags, but it looks one of the databases I'm trying to read from uses only <P> without the closing tag.

So the make a long story short, I can't figure out what to add to my code to strip out these tags (or if that isn't the problem at all!) Code:

View Replies View Related

Converting/stripping Non-ASCII Characters

I'm trying to catch some characters in a string before they are entered into a database that are not ASCII and convert them to ASCII characters. The characters in question are the angular double quotes but this could be associated with similar occurences. I want to check for left angular double quotes [&ldquo;] or right angular double quotes [&ldquo;] and replace them with straight double quotes [&quot;].

(I'm not actually storing the HTML equivalents - they are simply there to give you an idea of which characters I'm on about.)a way of catching these buggers? I've tried using chr(8220) (the numeric code for one of the illegal characters apparently) but ASP has a problem working with numbers outside the character map.

View Replies View Related

Stripping Quotes From All Members Of An Array.

I need to make a function that takes Request.QueryString elements and strips all single quotes from the input.

function StripQuotes(array)
dim StripQuotes
for each old in array
new = replace quotes (old)
Add new to StripQuotes
next
return StripQuotes
end function

View Replies View Related

Stripping File Path Name Before Insert Into DB

Does anyone know of a function that will take the file pathname and just keep the file name before doing an insert into a database? Code:

View Replies View Related

Stripping Text Between Two Strings With Regular Expressions

I need to strip some text from between two strings, my code looks like this:

SECTION = "My page name"
I need to build a regular expression that will return:

My page name Anyone know how to do this?

View Replies View Related

SQL 10 Last Results Only

Anybody know how to get only the 10 latest results of an SQL query ?(in SQL)

View Replies View Related

Trimming Db Results

i don't know what to do here exactly.
i have seen the TRIM function, but i'm not sure if it's the right way to do it.
i have a recordset called RSUSEREDIT.
in the recordset there is a column called "EMail".
i can print out the results using Code:

<%=RSUSEREDIT("Email")%>

the email column always uses the same domain name... - username@domain.com
is it possible to remove the part after and including the "@"?

View Replies View Related

Results Of URL To File

I have a URL... everything returned by the url, I need to write to a file. lets say its 40 lines of text... how can I write it to a text file and save it??

ADODB stream?
FSO?
DomObject?

View Replies View Related

Seperating Results

I'm creating a site that pulls details from a database & display it on screen. Problem is that there's sometimes loads of data which makes the page huge. What I want it to do is display ten and a next page link to display the next ten. Like the way Google displays results. Problem is I don't know how to generate pages on the fly. So the question is can it be done and does ne1 know how to do it?

View Replies View Related

Filtering Results

First, thanks to all who have helped me over the last few weeks !!
I have a form that allows the user to select multiple options.
These are user names:

Fred S
Bob D
Paul G
Dave O

When the form is submitted, I'm getting the details using

user = request.form("user")

this is returning the mutliple options.
What I would like to do is pass all the options to 'user' but at one
point on the results page only show the first user selected, not the
multiple selection

View Replies View Related

Ordering Results

what is an easy way to go about sorting my search results through links, you know, like clicking the link at the top of a column. i know how to pass the order by in a querystring:

http://www.example.com?lastname=smith&firstname=john&state=GA&orderlast=desc

where orderlast is the order querystring.

but what about all the other links? what do I do with the previous querystring entries like lastname, firstname, and state? i find if i add orderlast to my lastname column and i click on it, i will have 2 orderlast querystrings

View Replies View Related

Recordcount Results

I'm using multiple recordsets on a page, and they are all returning correct results and enough of them. My problem is when I try to access the recordcount property rs.recordcount, they all return a result of -1. This would usually mean that no records are returned. So why is showing my recordsets that are displaying records with recordcounts of -1. I can't seem to figure out.

View Replies View Related

Display Results

what I need is to dysplay only the first say 10 results and then have a link 'next' and dysplay 10 more in a new page

result
result
result
result
...
next

I can create a var and add 1 more for each result, till 10� end then create the link, but i don't now how to start the new page from the 11� result.

View Replies View Related

Using Bbc Code With Results

I know how to display results that contain html code on a page. (ie. <br>
<b>...)

what i would like to know, is if a result contains bbc code (ie.. [code]
[url]..) how would i display that to be readable?

This is not for a forum, but would be the same as if i was writting a forum.
I think there is a script that the page has to contain to be able to read it
correctly, but I can't find it.

View Replies View Related

ASP Different Results In Firefox And IE !

I have following code, picking an ID and saving it to Cookies.

<%
ItemID = Request("prod")
Response.Cookies("THREES")(ItemID) = Request("prod")
Set rdset=objConn.Execute("SELECT ID, Name, Large, Description
FROM shop_products WHERE ID=" & ItemID)
%>

In IE it works fine as it should, adding item id to Cookies

In Firefox it gives me the following error:

Cookies object, ASP 0102 (0x80004005)
The function expects a string as input.
/shop/addcart.asp, line 27

Any information on that. Any idea what is going wrong.

View Replies View Related

Return Results

My SQL statement won't return results where any field in a record is blank. What can I do to fix this?

strSQL = "SELECT * FROM newarchive WHERE Program_Title LIKE '%" & program & "%' AND Year_Aired LIKE '%" & yearA & "%' AND Sponsor LIKE '%" & sponsor & "%' AND Month_Aired LIKE '%" & monthA & "%' ORDER BY ID"

It gets its values from a form where some fields can be left blank. If the record itself does not have a blank field, the search will pick it up. But if the record contains a blank field, then it won't be selected unless it matches the Program_Title data.

View Replies View Related

Getting The Results From Executing An Exe

Is there any sample about getting the results from executing an exe using
asp?

View Replies View Related

Searching Results

I know how to use the LIKE command in a query but how do I do it in the
results of a recordset results="<b>Hello</b> World"

I want to search the above result and if it has a <B> in it, I want set
hasabold="Y"

I need to be able to search through a large amount of text so the BOLD marks
will not always be at the front of the results. They maybe be on line 50
character 59,

View Replies View Related

Fetch The Results

query = "SELECT table. * FROM table where table.lastname=" & lname

How can I fetch all the rows with the lastname field equals to lname variable?

View Replies View Related

Form Results

I have programmed several online forms(typically using cgi).A client of mine does not like how the results are formated (the long column of text)Is there anything I can do to program the results of this online form to get put into another format that would be e-mailed to the receipient?

View Replies View Related

Dump Results

i have a results page on a webpage and i was wondering if it was possible to dump these results (they are stored in a database)into a excel spread sheet?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved