Text Lookup
Is there a way that we can search a remote web page for a specific line of text?We can check if a specific URL exist using the "MSXML2.ServerXMLHTTP" object witch works just fine, but is there anyway we can search the page for text using this same object.
View Replies
ADVERTISEMENT
I have a web page that queries a database returning a recordset containing a whole series of URLs (host headers).
I want to display these in a table with one of the columns holding the current I.P. address for each URL. I know how to get a list of these IP addresses from the cmd prompt using "nslookup" but I'm absolutely clueless how to get hold of these values in my ASP page. I'm limited to the fact that this must be only ASP (VBScript, not .NET),
i.e. I can't call install any components.
View Replies
View Related
Looking for a source for data and/or algorithm that would allow me to enter
a zipcode and find - in our case - every car dealership that sells, say,
Chevy's in that zipcode - if not there, then what about adjacent
zipcodes..? - in an ever expanding circle outward, and return a list of
those zipcodes.
In my database, I've already got the car dealers and available makes. What
I need is the zipcode "map" reference.
View Replies
View Related
I need help with a simple (well not so simple for me) password lookup script that will email a user their pw when they put their email in an input box. I have the db set up and the connection enabled but need some help w/ figuring out how to set it up to mail these out.
View Replies
View Related
On the top of my page i want to check what page the user has come from, as if they havent come from two pages i wanted them to, i need to redirect them. Alot of people are bookmarking my site with a page that causes errors. Any ideas?
View Replies
View Related
DNS Lookup Error.This error resulted in the web browser that my user was using and this is details:"The URL you requested could not be retrieved because the named server is not registered in the domain name services. Please check the URL and try again."
I've checked with the user and find no fault with the URL address. What could possibly be wrong?
View Replies
View Related
Does anyone know of a pure ASP way of doing this?I am displaying the results of a large recordset and at the moment it looks like the page is not doing anything.I have a solution using an image and some javascript, f there was a way of doing it in ASP, perhaps using the response buffer?
View Replies
View Related
I have a form on a webpage that someone enters a number (SponsorID).
After then enter that SponsorID into the form, I need to somehow query
my SQL database and find the record that has the same ID as the
SponsorID entered into the form and return the SponsorName (and write
it out on the page using a <div> tag or something of the like) WITHOUT
reloading the entire page (because I will loose the other information
already input on this page).
Now, I don't necessarly have to query the database, I *could* create
an Array when the page loads, using ASP, that will contain the
SponsorIDs and the SponsorNames and then compare the SponsorIDs within
that array with the number that was entered on the form.
View Replies
View Related
I just received a database schema from our dba and was given the task of doing a look up of several fields & then doing several specific tasks, depending on the information. I know how to do a lookup and an if statement for 1 table, but how do I handle a lookup in multiple tables and also do an if statement based on multiple tables?
For example, there would be a customerid, which is in the customer table; support is in the support table; and customertype in the type table.
View Replies
View Related
I need to look up what user name was used to login to a protected directory using ASP.
I don't want to create a login page, etc. It shouldn't be necessary. Only employees who already have user accounts need to log in to the webapp and the protected directory login box is all the security I need. I just need to be able to access the username that they used in my application. Code:
View Replies
View Related
I'm trying to get a users free/busy status from exchange from within a website and using the code below, but when I run this a login page from MS Outlook Web Access is retrieved from the server rather than a XML file containing the users free/busy status for the specified time period.
I've spent all day looking for solutions to this but I'm stumped. I have been looking for an Exchange newsgroup but there doesn't seam to be one, does anyone know if i can post this some where else to get a response from an Exchange expert.
The Server is 2003, with Exchange 2003. Code:
View Replies
View Related
I have a sql server 2000 table with a comma delimited list of ids. there is a seperate lookup table with a desc for each id.
I need for this data to be retuned in the same order in which the data was entered into the database. right now it is returning ordered by the id from the lutable.
View Replies
View Related
Is it possible to do a database lookup in a javascript function *before* displaying the error alert?
We want to do a database table lookup first and get a BETTER error message based on the text field throwing the error.
View Replies
View Related
I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.
View Replies
View Related
When using ASP's FileSystemObject to create text files, I am unable to get user submitted text (in Hebrew) to save as anything other than "?????". The text file is being saved in Unicode and setting the CodePage in ASP proved unsuccessful. Strangely, hard coded Hebrew text in an ASP variable does add to the text file correctly.
Any ideas of why this happens and how to get it to work correctly?
View Replies
View Related
I have a text area which I want to limit the number of words or number of text entered into it. Is this possible?
<textarea name="textarea" cols="35" rows="5"></textarea>
In the text area above, can I say limit the person filling in the text area to say 100 characters?
View Replies
View Related
I have a form on asp page that pulls info from a DB when the page loads.
It them puts the info into text boxes on the page that are editable by the
user.
The only problem I have is say in the description text box it should
read "HP Laserjet 5Si" , it always cuts the text off where it just says "HP"
.. It does this on all the text boxes? I can't seem to figure out why it
is doing it. Here is the sample code:
With quotes around <%= vdesc%>
<td><input name="desc" type="text" id="desc" size="45" value="<%=
vdesc%>"></td>
And I tried it without.
View Replies
View Related
I have text in a field coming from a database. The text has various
forms such as:
text1
text1 or text2
text1 or text2 or text3
text1; or text2
text1; or text2; or text3
etc...
how can I parse this with a reg ex? I tried this:
(.+);? or
but it only captures 1 submatch (text1) and only if theres an "or"
after it
I'd like to get 1 submatch for each piece of text separated by the
"or", just the text itself if there is no or.
Anyone know how to do it?
View Replies
View Related
I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.
View Replies
View Related
I have text - ARI Promise, when I hover over the text I would like a box to appear with the Promise information. It would be several paragraphs that need to be formatted with paragraph and bullets. Is this possible to do? If so how would I go about it?
View Replies
View Related
I have a search page, after search returns value I want to display fields in text box instead of table.
View Replies
View Related
I am getting the above error in an asp page. Not sure why? The error details is given below. Code:
View Replies
View Related
I'm trying to make a text box for comments. I know how to put one value into a text box like name, but i'm not sure how to pull multi-values. I want to be able to display the time,user and comment in a text box. I don't know how to go about this. The comments are stored in a different table and there can be many comments for one policy.
What i did was i have asp code the displays all the comments and puts it into a table, but i want to put this into a text box not sure how to go about it. Here is the code i'm using. the reason why i need it to be in a text box is so the user can update it, does anybody have any ideas. Code:
View Replies
View Related
I have a drop down as below.
<select id="drp1">
<option value="1">One</option>
<option value="2">Two</option>
</select>
I need the text value of the drop down box.
Request.form("drp1").value is giving 1 , but I need the value "One". How can
I do this.
View Replies
View Related
1) How do I check for a text box with a null value?
2) How do I check for a text box that doesn't have a valid number/ integer inside it?
View Replies
View Related
I am trying to create a text box in ASP which automatically populates itself with the person's name who is currently viewing the page.I want it to retrieve the name from Active Directory.The text box populates itself when the page is loaded.
The Active Directory code for name is 'cn'.So when logged on users name = 'cn' display the name in the textbox.
View Replies
View Related
I'm putting a standard mail page together, that will allow my users to
sent templete emails out to people.
The files are stored in textfiles.I have come up with a script to produce the names into a Select list, but know i'm wanting them to be read into a textarea box,to allow me to submit them into from the form into the sendmail.asp page! but the only way i can pass them out, is into a iframe, whichd oesn't seem to allow me to then pass them into the sendmail.asp page.
View Replies
View Related
I have an ASP page to be used as a Softball Roster. The user will enter their roster information and the information will then go into a SQL database. My problem is this... I keep getting this error "String or Binary Data would be truncated". I figured out what this message meant and I have printed my variable to the screen to see what I get.
As an example what I get for my variable PlayerFirstName is Joe, John, Henry, Alex. I only want one name at a time so that I can import them into SQL. How do I parse my line apart so that I can loop through it and pull off only one item at a time and put it into SQL?
View Replies
View Related
how can i write a line to a text file? also, how can i put every line of a text file into an array - and see whether a value mathes any of the lines in the array?
View Replies
View Related
I'm writing an intranet and I need to put something like a non-editable
scrolling text box on the home page where daily announcements can be placed.
I've tried adding a scrolling text box, but I am not sure how to make it
non-editable.
Is there any way I can fill the textbox using something like
textstream? I would imagine one person in the organisation would be in
charge of adding this text somehow. I'm a bit lost in trying to find the
best method.
View Replies
View Related
Do you guys know how to parse an input(text) to verify if it contains special characters. The input should accept numbers or letters only.
View Replies
View Related
I know that trim removes white space and the LTrim and R trim removes space from the left or right but how would i trim a string after 20 characters so that i could add ... to the end of the new trimmed string???
View Replies
View Related
I have a form with multiple records.
My intention is to have the user click a checkbox for each product he wants.
Then submit the form placing multiple items in his cart.
If I use a text box like the following and enter a 1 for each product,
submit, no problem.
The user gets the products he wants.
<input name="qty" type="text" value="0">
However, if I use the following checkbox code, and assuming the user checks
4 products half way down the page, he will get the first 4 products in the
recordset. If he clicks 1 checkbox, he will always get the first product,
not the product he chose. <input name="qty" type="checkbox" value="1">
What I have found is when I submit the form to a blank test page using
checkoxes or text boxes, there's a considerable difference. The text boxes
deliver a comma delimination for each occurance. The checkboxes only offer
comma delimination for each checkbox that is selected. At this point, I'm
assuming that's the difference between the two and it cannot be changed
through HTML.
View Replies
View Related