Copy Entire Contents
I need to do the following in the asp project.
The form contains the file upload component and textarea objects.
After the user uploads the word file (using file upload), the entire contents of the word file should be copied to the textarea and displayed.
View Replies
ADVERTISEMENT
I am developing a site that has a mixture of both Static and databased content for which the client requires a site wide search to pick up on the text in the database and the text in the static html pages.
My original thought went to Index server? Does this still exist for Win 2003 Server? Are there any other similar server products? We can install what we like on the server, and obviously the cheaper/free'r the better! Or are there better solutions with some hosted search that can have a customisable results page?
View Replies
View Related
I have an Access Database; e.g., DB.mdb, which has 10 Tables; e.g., Table1, Table2, ..., Table10; in a directory; e.g., Directory1.
Using ASP copy method:
FileObject.Copy(destination[,overwrite]) I have made a copy of this entire database in another directory; e.g., Directory2.
The Tables from Directory2 has been and will be changed via writing new data into the 10 Tables in Directory2. I need to copy only one of the Tables, e.g., Table5 from the original database in Directory1, to the database in Directory2. Replace Table5 from the DB in directory2 witj Table5 from Directory1 without affecting other 9 Tables. How can I do that?
View Replies
View Related
This thread is not so much a big problem, but more to receive comments on my approach. You may have some other tips or advices of where to go or where absolutely not to go with my attempts. Code:
View Replies
View Related
How do I get the entire URL?
<a href="trackingpage.asp?id=100&r=http://www.somesite.com?sc=news&art=45">Link</a>
On trackingpage.asp
----------------------
vTrackingInfo = request.querystring("id")
vRedirectPage = request.querystring("r")
problem is the &art=45 gets cut off.
View Replies
View Related
I know there's a way to do this - well 99% sure anyway - and seem to remember reading an article or tutorial about how to do it but I'm not having any luck finding it.
What I need to do (using MySQL & ASP3) is to find all rows with "X" as a non-unique ID - there may be 30 or so total - and grab them to be archived in a CSV file before deleting the record from a DB.The reason I want to avoid hardcoding the field names is that they're going to change with moderate frequency.
View Replies
View Related
I have deployed a page with 3 frames of which one of them is a asp page.
Whenever the content of the page increases scroll bars apperar individually for each frame ruining the look of the page. I tried using tables instead of frames by giving "server.execute()" inside <td>.The drawback is that server.execute() doesnt accept absolute urls.Server side includes also cannot be used because the page to be loaded is decided dynamically based on the request.
How do i load absolute urls ...?
View Replies
View Related
I'm trying to write a function that allows a user to upload photos (like a photo album). I currently use AspSmartUpload as my upload component - but I only know how to upload one file at a time. Does anyone know if it's possible to upload an entire folder at once, or will the user only be able to upload one photo at a time?
View Replies
View Related
I have written an asp script to pull data from fields in an access database.However it is only displaying the first word of the string.Below is my code:
Response.Write ("<a href=residentialind.asp?add=")
Response.Write (rs.Fields("address").value)
Response.Write (">More information</a>")
how to capture the entire field.
View Replies
View Related
I'm developing a site under IIS and ASP. I want some help into a free solution to upload the content of an entire folder, even subfolders, to a web server from a client. It can be used ActiveX, COM or other type of components.
View Replies
View Related
I understand that I can use "Exit Sub" to terminate an subroutine. However,this does not prevent everything before the "Exit Sub" from processing and displaying. Now, if I can't determine if a certain condition is met or not met until later in the subroutine, how can I prevent any parts of the code from displaying?
For example:
Code:
Sub XYZ
Response.Write "Table Header"
For 0 to all user's online
If user's page is an product page, then
Response.Write Page_Name
Y = Y + 1
end if
next
If Y <> "" then
Exit Sub
End if
End Sub
View Replies
View Related
I use ASPUpload as a component to allow users to upload images to website. I did not find on ASPUpload.com website clear explanation on how to upload entire folder of images to website.
1) Is it possible to do using ASPUpload?
2) Could you recommend me other sites, articles etc to read about this problem (with code samples)? Or could you provide me an example of code samples.
View Replies
View Related
I'm currently doing a project that allow user to upload file to and download file from a server. my asp page funtion as file uploader can only upload a file at a time, and now the problem is when i try to upload an entire cd volume from a cd to a server, what i can do is just browse to individual file and upload it. i know that there's a virtual drive that does this function. but the project is host in intranet mode, so every user is accessing the server. and the virtual drive for server cost a lot. so can i know outside there's any coding or example or solution can help me with this upload entire cd volume problem?
View Replies
View Related
I have a page that adds data to an Access DB. When an employee adds a record I want to compare the phone number from the data they inputted to all of the phone numbers that are currently in the database for that field.
If the new phone number currently matches any record in the DB I want to have an alert that notifies the employee that a record with that phone number exists with the date that the first record was inputted and ask whether they want to continue and add the the new record or cancel the addition of the new record. Otherwise, I want the data to just be added. At this point I have a Case statement that will add the record after a submit button click.
View Replies
View Related
I am unable to downlaod entire folder at a time from the server using ASP i.e. all the files and sub-directory in that folder at a time, not by downloading individual files one by one .
View Replies
View Related
im using a asp file uploader to upload my file into a dedicated server. my uploader can only upload a file once a time. but my concern is if i want to upload the entire CD volume into server, i still have to locate the file in the cd one by one, is there any way or coding to allow entire cd volume to be upload at once?
View Replies
View Related
I have a vars called param1 to param10. I need to iterate through them in a loop to see if theyre empty and set them to spaces if they are. i.e
for a = 1 to 10
newparam = "param" & a
if newparam = "" then
newparam = " "
end if
next
but I want the contents of newparam i.e param1, param2 etc... to be evaluated and not newparam and then param1, param2 etc.. to be set to " " .
View Replies
View Related
I have a select element in a form on a page with some options. When i submit thet form and the target asp page is executed, i want to find retrieve all the values in that select element on the page...?
thru request.form("sel") i am able to retrieve only the vaue selected by the user.
View Replies
View Related
I have the following code:
for each SesVar in Session.Contents
if( Session.Contents(SesVar) <> "" ) then
The problem is that most of the time this works okay, but sometimes the code
crashes on the compare.
View Replies
View Related
I am wanting to do this but am not able to do it.
I have two fields: first name and last name and then submit button.
When i hit submit button ,according to the name entered in the first field ,some results are displayed from database.
Now when i hit submit ,the contents of my fields are cleared and i dont want that...i want the name to be still displayed in the textboxes...
How do i do this?
I dont want to basically clear the form contents on submit.
View Replies
View Related
I am currently working on ASP. Users will input their contents into a textarea. The problem is that when they input and I retrieve them from the database, they will use the textarea space that was allocated to them and display exactly it is.
For example the text area given is 500px and i only give the display part of 250px. Despite that, it will fill up and scrollbars will appear on my bottom of the webpage and have to scroll to the right.
how i can display all text with the break lines in between yet still confined to the space of 250px.
View Replies
View Related
I want to read a classic HTML Form using the ASP Request object on the server. This is a common approach. But how can I read all the contents of a listbox (the <select> tag)
View Replies
View Related
Does anyone know of any issues interacting with asp pages from within Flash when you use Control>TestMovie ? i.e. When using a send and load, Flash seems to want to open my asp file (and return the contents in Flash) rather than run it and return a name/value pair as I'm expecting.
View Replies
View Related
I have successfully been able to load text from an SQL-DB into a <textarea>.Now I need to save the edited text back to the DB But I can't seem to extract the value from the <textarea> into a vbscript-variable.
When the user clicks the submit button under the textarea I need the text to be saved into a variable, how?
Code:
<FORM METHOD=POST ID="Form1">
<TEXTAREA NAME="text1" ID="text2"><%Response.Write(Recordset("text"))%>
</TEXTAREA><br><br>
<P><INPUT TYPE="submit" VALUE="submit2" ID="submit3" NAME="submit4">
</FORM>
View Replies
View Related
what is the best way to protect a folder of files on an asp site so that only people who have logged into the site are allowed to view the files?
would it be best to put them inside a cgi-bin and then have a page with links to the files, or is there a better option?
View Replies
View Related
I'm trying to figure out if there is an easy way to combine the contents of two arrays into one array. Order does not matter, I just want them all together. I'm sort of new to working with arrays, so I don't know if there is a really basic way to do this.
View Replies
View Related
I am creating a website which has a form for registration. I am not using any database or server side coding. The form details should be sent through an email to me. I tried the action = "emailto:me@myaddress.com" but it only fires my outlook when the submit button is clicked.if it could be done the way I want?
View Replies
View Related
Is there a way to export the DataTable contents to an XML file.
View Replies
View Related
I have worked in PHP / MySQL. But never worked in ASP/MSSQL. At the moment, i ma stuck with a problem. Hope someone here can figure it out.I have a list of countries in a Page. When the user MOUSE Over any Country, through Javascript, a small layer <DIV> appear that shows some data about that country. Up till now that XML File is filed MANUALLY.
Now that Data is changing frequently. What we want is that to do the same thing described above through database. Like when the user mouse over any country, that will load XML and connect the Database, extract info and then show in the same DIV layer. Or alternatively, there might be some sript, that will RUN AUTOMATICALLY daily or weekly and update all the countries data XML files. please guide me how to achieve this in ASP + MSSQL + XML + Javascriptor any combination of these.
View Replies
View Related
I'm trying to access and iterate through POST variables. I'm thinking of something similar to PHP, where on a submit it creates a POST object, which is an associative array of all the variables. Is ASP the same way? Is there any way to see what is in the array and have access to it's contents without knowing the contents beforehand?
The reason I ask is because I have about 100 check boxes, and the user only checks a number of them - each check box is named differently. I want to, on the post page, to find out which ones were checked, short of putting an if else or select to check all 100 of them. Is there an easier way? I tried printing out the post: Response.Write(Request.Form()), and all that gave me was the querystring .
View Replies
View Related
I am developing a website and in particular, a shopping cart for the company I work for and I have everything working fine. This website is written in ASP. When you add a product to the database, it adds it along with a UserID based on a Session variable.
Everything is working fine regarding the user functionality of updating particular product quantity and options. However I am having trouble finding any information on how to send the contents of that recordset via email, when the user decides he is ready to send it. I have no trouble sending forms and such via CDOSYS and ASP but how can I send the contents of an entire recordset?
View Replies
View Related
I'm trying to compare fields in two recordsets. I'm having fun with apparently empty fields. In order to avoid displaying meaningless messages, I need to know what is in these fields - e.g. is it a space, a null, an empty string, or what?
I'm not much of a programmer - how do you display the contents of the field using asp, for example, to return the ascii character code? Or is there a simple way to check for non-printing character codes?
View Replies
View Related
this is an asp/ javascript question.Say I have a variable in asp.
dim myVariable = "hello big boy"
How can I get JavaScript to read the contents of that variable?can I use it straight away?
<script language="javascript">
document.write(myVariable);
</script>
Or is it more complicated than that?
View Replies
View Related