Linking To A Created File

I'm using PerlScript in my ASP page and I have the following problem: Each time the page is refreshed a CSV file is created. I want this file to be available for download. The problem is I can't create the file in the "wwwrootsite" dir, so I can't link to it. I can however create anywhere else on the server.

View Replies


ADVERTISEMENT

Cookie And Session Are Not Created When Using A Host File Instead Of DNS

When I use a host file entry to point to the host header of the site
that I have created on a Win2k server running IIS5, a cookie is not
created to hold the session id. The result is that Session_OnStart is
run every time a page is requested.

If I set up a DNS entry on the DNS server it all works fine.

I never noticed this problem before we put in Active Directory so it
may have something to do with that.

I have set "allow per session cookies" to promt(under Custom Secrity
settings in IE) to see if this is being attempted and it is not. So
the browser is not even trying to create the session cookie when using
the host file.

View Replies View Related

File System Object - Sort By Date Created

I've gotten a subroutine to almost work as I want it to, but it's refusing to show the newest file. It seems to choke on files created near midnight, just never showing them at all, and the date compare is showing an equal number for two different dates, though it surely shouldn't.

The code is running here: http://www.devedia.com/wiki/

The object is to show most recent file first, oldest file last. I have some leftover code in here to organize files by month created, but I removed the folders for debugging. The program moves any files created the previous month into a folder on the first of the month.

The folder name passed in is an X for recent files, a folder name (like 2005_04) when the files were sorted by folders.

What I'm hoping for from the intelligent people in the forum is either an eyeball on the subroutine to help me find where it's losing the midnight/most recent files, or a better idea on sorting by created date using the file system object and asp only. (NO recordset objects.)

And here is the subroutine. (sorry about the indenting... copy and paste it to read it better?)

Code: ...

View Replies View Related

How Can I Have My Page Email A Csv File Created From An Online Form?

My company needs an online form that user's can enter information into and once submitted, will dump the user-supplied info into a csv file and email it to the person who heads up the project. Initially, I thought they wanted the form to save the data to a database, and after playing all weekend, I was able to do that. Today I learned that they prefer the emailing a csv file method instead. Any links to tutorials on this subject or sample code with explanation would be greatly appreciated!

View Replies View Related

Linking An Access Database File To HTML Page On IIS6.0

My client has various Access databases that they want to be able to access (using MS Access, not through ASP pages). I thought I'd be able to create the link from an HTML page but when I do that and click the link, the file is downloaded to the local temp folder. I want the database to open directly from the web server, and then changes must be saved.

View Replies View Related

Get The ID Of Rs I Just Created

Using the below tage, i successfully add a new Record to my Videos table but the varibale i declare with the newly created rs ID is always blank? Code:

View Replies View Related

Odd Linking

I have a project where all the links go to an intermediary page
before being redirected to the destination page. For example,
there is a link, say to final.asp. But final.asp only redirects the user
to final_last.asp which is the actual destination.

Is there any reason for this indirection? It would seem one could save
space and make things more efficient by going directly to the actual
destination page. Did the author have a reason for doing things this
way?

View Replies View Related

Linking 2 Sep Db's

I want to display the results from 2 seprate mdb's in this manner on an asp page.

If fieldName from dbtable in A.mdb is the same as fieldName in dbtable B.mdb then display all fields. I assum this is sql, so any help woud be great..

View Replies View Related

Linking

i made a little page called billing.asp. I seen on some websites where they can do somin like ie: billing.asp?id=34 and it brings up a record. How can I do that id=34 part?

View Replies View Related

Linking

is there any way i can get a link to access a database cause am trying to make a profile page but with just 1 page for the profile to be on.

< a href="link-to-page=id-of-member"></a>

View Replies View Related

Created New Session

I am facing a strange problem in my application. Its a ASP application. I have a drop down one page. When I select a value from the drop down, its an ASP call, after processing ,new session starts. This doesent happen for the first 3 or 4 times when i select the value from the drop down.

Also I noticed that when the new session is created , the old session is still alive.
Can You suggest me as to Y the Web Server tries to create the new session, when the existing session is still alive.

View Replies View Related

Created An Image With VBS

It is possible to create an image of the format gif, jpg or png with VBScript? If yes can somebody tell me where I can find such references?

View Replies View Related

App-Domain Could Not Be Created

After restart some time is everithing ok. After some hours - some days, problem start. Only in pool, where dll VB6 is used, aspx pages (asp ok) does not work.

Event:
Failed to execute request because the App-Domain could not be created.
Error: 0x8007000e Not enough storage is available to complete this operation.

Source: ASP.NET 2.0.50727.0
Event ID: 1088

OS: Windows 2003 Server SP1

HW: dual Xeon, 4GB RAM, Server is not Domain server. dll VB6 is used in pool where aspx pages does not work, in other pools aspx pages work.

View Replies View Related

Newly Created Row

I have this form that creates a row in my access database. I then put in the action of the form another asp page with a questionmark and some stuff.

What stuff do I put there to help the other page recognize which row I'm talking about and be able to pull the correct information?

View Replies View Related

Dynamically Created Gif

Using preferably Asp or an Asp component, but maybe .NET, here is what I need to do:

A user enters a hex value (Or rgb if need be), which then colors a pixel high, n pixels wide gif and saves it to a folder in the sites directory.

View Replies View Related

Database Linking??

I have created a form using HTML and Javascript. When I click on the submit button I need the Selected Answers to be sent to an Excel or MS-access or any database. I need to know whether this is possible using CGI/ASP. I guess ASP would be better. If not which one do you think is the best way to carry out.

View Replies View Related

Linking Page

My background is Crystal Reporting. In one of my Reports i had to create a Hyperlink which opens up a .asp FORM in which the user types in data and clicks SUBMIT, as soon as he does that it should get updated in the Oracle 9 database, i have the code for the .asp form and also for the .asp page which inserts data into the Oracle Database, My question is how to link these two .asp pages.

View Replies View Related

Linking Many Files

I am in the process of making an online examination system. The exam will have a total of 100 questions and each question has a time limit. I have done with coding of a question and setting time limit. Each question will get its question from a database table and also the 4 options.

Now my problem is that how i create 100 asp files for 100 questions??.. how can i link them so that when a user clicks submit button, he is taken to next asp file(question).. files are numbered as 1.asp,2.asp...etc. Is there any way i can create a template or something and files and links be automatically generated.

View Replies View Related

Linking ASP Pages

Now when somebody goes to the site www.mysite/allphotos.asp , it ask for the id/password and if the password is correct (as checked by another file ' password.asp' ) the user is redirected to a new page www.mysite/viewall.asp else it is redirected back to www.mysite/allphotos.asp with an error message. Now till this point all is working fine. But if somebody types in www.mysite/viewall.asp directly to their browser they would bypass the password page i have created and hence the security fails.

how can I redirect back to www.mysite/allphotos.asp if a user types in www.mysite/viewall.asp in the browser.I have tried assigning a variable (say goAhead = 0) in the password.asp file when the login is true. In the head of www.mysite/viewall.asp it checks if goAhead is not 0 it redirect back to www.mysite/viewall.asp . Now what is happening is that I can't open www.mysite/viewall.asp rightaway but even when password is correct it stll won't open and is redirecting back to allphotos.asp

View Replies View Related

Linking To An Image

Is there a way to make an image link to a field I already have in a database? Can I just simply put an html command to a link in a database in Access to an image? Or do I have to do an OLE object? I have no idea how to make an OLE object link to something.

View Replies View Related

Linking A Dll To An Asp Page

Our company has a website in place that allows users to get information. I've been asked to call a custom made dll that returns a registration number to the user. I don't know much about dlls or coding concepts for that matter (I've built pretty basic client/server asp websites only), but I would like to be able to at least ask the right questions so that I can understand just what I need to look into to do this.

Does it depend what "kind" of dll it is and what language it's written in? Do I then just need to know the arguments it takes? How do you register a dll?

View Replies View Related

Javascript Linking

I need to link to a javascript function from a REsponse.write line

I can do this but when I try to use a record (ie. rs("Product Name"))
it doesnt work. I tried something like this:

Response.Write "<a href="""" onClick=""rePopulate(''rs(""Product Name"")'');"">Product</a>"

It's this bit thats the problem I think .. I know its probably to do with quotes r smth but rePopulate(''rs(""Product Name"")'').

View Replies View Related

Linking To A Popup

... linking to a pop-up window but sending an ID to the asp page

<A HREF='javascript popUp("confirm.asp?ID=' & rs("Doc_Num") & '")'>Edit</A>

Something like that but with confirm.asp accepting an ID associated with Doc_Num

This works fine for a fixed ID but not when associated with a recordset.

I'm sure its a quotation mark here or there but im hitting a brick wall!!

View Replies View Related

Linking A Textbox

Would anyone be able to help me with this. I have a number of textboxes and checkboxes.
When a textbox contains text I want the checkbox to be unchecked. When the textbox is empty I want the checkbox to be checked.

Also, is it possible to do the reverse as well i.e. when the checkbox is unchecked the textbox cannot be empty etc.

View Replies View Related

Yes: The SESSION Cookie Is Never Created

The session_onstart event will fire for every pull BECAUSE no SESSIONID cookie is ever created and the server has to assume that every HTTP REQUEST frame is a new session. The response object is actually just setting a header, of course.

Every redirect is sending a header to the browser equivalent to a "meta refresh" and that once again triggers the session_onstart.

View Replies View Related

ASP Won't Set Cookie Created In JavaScript

I am reading and setting a cookie using JavaScript in the BODY onload
and onunload events respectively. This works fine.

However when I use ASP to set the cookie under some condition where I
want to override the last value set in the onunload event, it has no
effect. The next onload still has the old value.

The following code simulates the problem I experience....

View Replies View Related

Duplicate SQL Records Created ?

I am trying to do a simple INSERT into SQL. I've done it tons of times before with the same code, but this time is is placing duplicate entries in the table. Any ideas why this would be happening? Here is my ASP code doing the form processing:

<%
set conn=server.createobject("adodb.connection")
conn.Open "Driver={SQL Server}; Server=SERVERNAME; Database=DATABASENAME; UID=USER; PWD=PASSWORD"
set rs = Server.CreateObject("ADODB.RecordSet")

strTitle = Replace(request.Form("title"), "'", "&#39")
strContent = Replace(request.Form("txtContent"), "'", "&#39")

strSQL = "INSERT INTO [webPages] ([created], [section], [title], [content]) Values ('" & now() & "','" & request.Form("section") & "','" & strTitle & "','" & strContent & "')"
rs.Open strSQL, conn, 3
%>

View Replies View Related

Dynamically Created Query

I'm having a problem dynamically creating an UPDATE query that will write the string value of an existing record set field into a data base.To be more concrete, I can generate a string that looks like this:

UPDATE Person SET Person.name='objRS("oldname")'

but when I try to execute it, the literal objRS("oldname")gets written into the oldname field of the Person table, as opposed to the value 'Betty'. (In a separate write statement, I've already checked that objRS("oldname") prints 'Betty'.)

And if I change it to:

UPDATE Person SET Person.name=objRS("oldname")
I get an error saying there is an undefined function 'objRS' in expression. Can anyone help me? If I can get this to work I'll be done with this task.

View Replies View Related

Data From Php Created Page

I run a website that reads our own databases and makes the data available to our users. However, recently someone has sent me a link to a php page that contains data they want me to display on our site. The php creates a csv formatted text string.

Example : I type in www.somewebsite.php and the page returns game1,gamedate,gametime,hometeam,visitor,,,, with real values of course being in these values. the ,,, are null fields that have no value as they expect our website to fill in this data for them from our users. how do I read this data with asp into a recordset, or a database?

View Replies View Related

Dynamically Created Images

I have an asp.net application that generates dynamic images (charts). When I run the application in debug mode from visual studio, or refer to the url with localhost in the name, everything works fine. When I try to access the site with the full machine name (not using localhost), or from another machine, the dynamic images only appear as red x's.

I've searched the groups, but can't find anything that seams to relate. I am assuming this is some sort of security setting, which I have messed around with in IIS as
well.

View Replies View Related

Dynamically Created Folders

Is it possible to assign permissions on the fly as you are creating a directory structure on the web server?

I want to create a new folder for each new user of this system I built. Each folder will have the same permissions and will be used for uploading images. Should I just have write permissions on the parent folder and have the folder permissions inherited from the parent? Or is there a better way to do it?

View Replies View Related

Newly Created Files

I'm struggling with this problem: in a website I developed, XML files are created by users of the site to describe. The creation is OK, the (new) file is present, but it can not be read by any website visitor.

How can the default permission become at least readable?

It's a ASP script running on W2K, using the FileSystemObject component.

View Replies View Related

Error Linking To UserID

I have got rs6 to display the Usernames but when i try and link the username with the userID it shows this error:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

/viewpub.asp, line 121

set rs6 = objconn.execute ("SELECT * FROM favepub INNER JOIN members ON favepub.UserID = members.UserID WHERE PubID=" & PubID)

Pubbers: <% WHILE NOT rs6.EOF%>
<a href="viewmember.asp?UserID=<%=rs6("UserID")%>"><%=rs6("rsUser")%></a>,&nbsp;

<%rs6.MoveNext
WEND
%>

View Replies View Related







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