Allowing Write Access Without Using IUSR
Is there any other way to write files to a directory than allowing the
IUSR write access. We have a website that will be writing XML files and
Label files to a directory outside of our website directory but I am
hesitant to give the generic IUSR account write access to anything and
wondered if we could asign a different account or if there was some
sort of ASP script we could use. These files will be created based on a
received XML string (used for label generation) then saved to the
server for archiving and/or recreation of the labels.
View Replies
ADVERTISEMENT
I want my clients to be able to print straight to some of our printers over
the internet. The reason: 1) So I don't have to purchase all the
applications they have, simply to print their data. & 2) So they can have
access the printer drivers options.
Sharing a printer on the internet isn't wise, which is why I thought of
doing it via a website. And a few factors came into mind:
1) will the data be secure? maybe encrypted even?
2) who will be able to print to it?
3) can a client only print, once his deposit payment has gone through the
payment system?
Has anyone been able to make such a project work? I tried Google, and most
of the stuff refers to the HP internet-print print server, which won't work
in our scenario, since we have printers that work on LPR, their controllers
are OS/2, and the supplier won't change it just for one company.
View Replies
View Related
One of my client is requiring that a section of his website to be restraint. It is currently in ASP. The visitor will be attributed an access code. This access code will be alpha numeric and contain 6 digits.
When my user will be entering this digit he will be allowed one hour access to the website. I guess the best way to do this is thru cookies. Any experience on this ?
View Replies
View Related
I'm writing a script to do a simple directory listing and parse, and that is all working fine. However I run into a problem when I try to create a text file to write it into.
Specifically:
Microsoft VBScript runtime error '800a0046'
Permission denied
(PATH)/indexer.asp, line 15
Where line 15 is the line where I'm trying to create the text file.
This is probably because the IUSR_ account permissions aren't set to allow writing. I'm also running this on a server where I do not have the rights needed to change the However, I do have an account with full permissions that I use for accessing the website from Frontpage.Is there a way I can use my other account to run the script, or at least that part of it?
View Replies
View Related
I have copied a web based application to a new laptop having windows xp professional. Now in one of the folders where the database is physically located, I want to give IUSR_Computermachine rights so that the applcation allows to update and insert records.
However, when I am right clicking to find the security tab, it is missing. OTher tabl like general, sharing, web sharing and customize are all there.
View Replies
View Related
Im writing a web interface for a CRM product which has the ability to store files within a database... Now, the problem is, these files are binary files, and VBScript doesn't have support for binary files (as far as i know...)...
To overcome this i wrote a component (ActiveX DLL) in VB6. This component works fine, but as soon as i use it in ASP, my computer beeps and then sits there looking like it's doing something forever...
View Replies
View Related
Is it possible to write from FLASH SFW file to ACCESS via ASP as they write to MySQL via PHP ?
View Replies
View Related
I have created a form in which people insert there fax number, at the moment it returns an error if a space is inserted in the fax number ie: 0234 76893.
How do I correct this?
View Replies
View Related
I generate my codes using a generator. My problem is that I can not write into my Access database. I had gone to tools to allow access permission . still nothing.
View Replies
View Related
I want to track the steps the user has gone through to get to this page and then display links so they can click on them to go back to that page. I would do this as hard code but the problem is most of the pages can be accessed from several different pages.
ex.
a product page a home page and a specials page
the path to the product can be home -->product or
home-->specials --> product
exactly like the viewing link at the top of this page but in asp.net instead of php.
View Replies
View Related
I would like to be able to allow the viewer of a website to download a file when they request it. Like seen at tucows or download.com
Can someone give me some rough pointers on where to get started?
View Replies
View Related
Isn't there some line of code that I can write to tell ASP to treat everything between BLAH and /BLAH as text (including the apostrophe). So that users can type a name of "O'Malley" in a form and I can retrieve it and store it in my database.
View Replies
View Related
For my CMS, currently I am using a function for stripping HTML tags.
It's
Function SQLMemo(strSQLMemo)
strSQLMemo = Replace(strSQLMemo, "'", "''")
strSQLMemo = Replace(strSQLMemo, Chr(13), "")
strSQLMemo = Replace(strSQLMemo, Chr(10) & Chr(10), "</p><p>")
strSQLMemo = Replace(strSQLMemo, Chr(10), "<br />")
strSQLMemo = "<p>" & strSQLMemo & "</p>"
SQLMemo = strSQLMemo
End Function
Now, I actually want to allow only the following tags for the messages.
<p>, <b>, <i>, <a>, <em>, <br>, <br />, <strong>, <img>, <center>, <blockquote>, <tt>, <li>, <ol>, <ul>, <div>.
are there any easy way of doing this?
View Replies
View Related
I have 2 MS Access databases DB1.mdb and DB2.mdb.
In DB1.mdb there is a table named table1 and in DB2.mdb there is a table named table2.
How do I write query in ASP to write the records from table1 in DB1.mdb to table2 in DB2.mdb.
View Replies
View Related
i am having a problem with ASP not doing the requestion action of Response.Write based on conditions of a code entered on a first page. The codes are below. I made the second page from template of another that yall helped me with and it aint working.. Code:
View Replies
View Related
Was curious if someone could help me out. I'm setting up a website and using Server side includes to make it easier for maintaining. I've got a contact form that will be included on several pages and I need to know from what page the forms is getting posted from. If I can figure out how to pass one value to a hidden field I can use the form as an include instead of hard coding the whole form into each page.
Ideally the value to be passed could be coded into each page then asp could pick it up and insert it into the hidden field. Any one point me in the right direction for accomplishing this. I don't have a clue about asp other than the basic include statement.
View Replies
View Related
I have a Development server that is running Win2k, IIS 5.0, and ASP enabled. I am trying to gain access to an Access 2000 DB located on a file server within my domain. I'm pretty sure I have all the correct permissions set, but I am having problems when trying to access the DB.
The error is similar to:
The Microsoft Jet Database engine cannot open the file '******'. It is already opened exclusively by another user, or you need permission to view its data.
I'm looking for ways to fix this... Microsoft suggests turning off the ability for IIS to sync passwords. Unfortunately, this is not a viable solution for me.
Is it possible to create a new virtual server that is a share to my file server? Put my ASP and MDB file in there and have it work? Anyone have any other ideas?
View Replies
View Related
I select 'name' from the customer table.
Is it possible to write it into a cookie?
<%
Response.Cookies("customer")("firstname") = '" & objRecordset(NAME) & "'
%>
when I try to write the above using
<%
Response.Write (Request.Cookies("customer")("firstname"))
%>
i get the following ....
View Replies
View Related
May i know isit can use asp to send an automail when customer fill up the registration form. i need to send a automail to his email verify the customer details. is it any free source code to write?
View Replies
View Related
I writing code that will create asp pages using the file system object.
<%
..
..
'other code here
Response.Write "<%sName=" & Var & "%>"
%>
How can I do this?
View Replies
View Related
If my recordset is empty I want to write "Not Complete" and if there is
a value, I want to write the value. Can someone tell me what I am
doing wrong?
<%
If IsEmpty(rsa.Fields.Item("reclaima")) Then
Response.Write("Not Complete")
Else
Response.Write(rsa.Fields.Item("reclaima"))
End If
%>
Also tried....
<%
If rsa.Fields.Item("reclaima") = "" Then
Response.Write("Not Complete")
Else
Response.Write(rsa.Fields.Item("reclaima"))
End If
%>
View Replies
View Related
Since ASP server scripts use VBScript by default, does it mean it is
redundant to put the following in ASP page? Then when do we need to use
this? In client-side VBScript?
View Replies
View Related
I have a script in ASP:
If strReport = "OrderDetail" then
strReport1 = strReport & ".rpt"
End If
If strReport1 <> "" Then
strReport1 = strReport & Year(strPeriod) & ".rpt"
End If
Now based on the kind of value in strReport1, I would like to do 2 different set of work.... Like for instance,
If strReport = "OrderDetail" then
call SubReportDB
End If
If strReport1 <> "" Then
Call SubOrderDetail
End If
Is that the right syntax?
View Replies
View Related
While doing a response.Write,
I would like to display the text as array item wrapped in quotes. How can I do that?
I write the code as:
'Now get all the sub-reports names to pass the log-on information
For i = 0 to UBound(aSubRpt,2)
Response.Write "webSource0.AddParameter " & u0 & " & " & aSubRpt(c_SRName,i) & ", " & dbd & "<br>"
Response.Write "webSource0.AddParameter " & p0 & " & " & aSubRpt(c_SRName,i) & ", " & dbc & "<br>"
'Response.Write aSubRpt(c_SRName,i) & "<br>"
Next
While seeing the results in the browser, I would like to see
"aSubRpt(c_SRName,i)"
which is primarily
"reportname"
How can I wrap the text in double quotes within a response.Write?
View Replies
View Related
I want to be able to write a gif in my ASP app. Not even sure if it is possible with response.write. I want to replace the 'Member Log In' text with XXX.gif, and still have it linked to login.asp....
View Replies
View Related
I am trying to retrieve info from database and display it in the form. The problem I having is when I try to change the info in the form, it is not changing and I don't know why.
table.fieldname = payroll
Code:
payroll = rs("payroll")
If payroll = "something" Then
payroll = "Some Payroll"
End If
In the form table:
<input type="text" name="payroll" value=<%response.write(payroll)%>>
I want "Some Payroll" to be displayed in the form instead of "Something".
View Replies
View Related
I need to put this whole line into a response.write statement:
field delimiter = """
View Replies
View Related
Code:
<%
username = Session("username")
if ("" = username) Then
Response.redirect "login.asp"
response.Write("Sorry, you are not logged in.")
response.End
End if
%>
How do i write that Sorry, you are not logged in ... to the login.asp?
View Replies
View Related
I've tried using a FSO to write to it directly. I've even managed to write a script for windows scripting host and invoke it from ASP, using standard output redirection (">") to redirect output to a file with no problems.
However, I can't seem to send writes to LPT2: from ASP, even through the other script.
It works perfectly fine if I invoke the WSH script at a command prompt using precisely the same command line, but when I do it from inside an ASP page, I get nothing.
Are there some permissions for the port I have to set or some such? I honestly have no idea how to get it to work.
If it is relevant, LPT2: is a mapped port for a network printer.
Yes, this is related to my previous thread, but I'm down to a much, much more specific problem.
View Replies
View Related
Why do I get an error on executong the following code:
<body>
<%
Response.Write" <script language = ""vbscript""> "
Response.Write" res = MsgBox (""Do you want to edit appliance?"",4,""Edit Appliance"") "
Response.Write" if res=7 then"
Response.Write" window.location.href= ""Appliance.asp"" "
Response.Write" else"
Response.Write" window.location.href = ""Scenario.asp"" "
Response.Write" end if"
Response.Write" </script>"
%>
View Replies
View Related
What is the right syntax, to make that a hyperlink?
Response.Write("<TD>"<a href=""rst("Kotisivu") & ">" & "</a"> & "</TD>")
View Replies
View Related
I am trying to check for the final sql statement before passing it to a
database. I want to build the statement using user input in three text boxes.
However, the sql statement does not give me the right statement. Instead it
gives the following message:
Error Type:
Request object, ASP 0102 (0x80004005)
The function expects a string as input.
/sailors/loginverification1.asp, line 14
CODE:
<%
strSQL = "select PeopleNameFirst, PeopleNameLast, PeopleClubCode from People
where " & _
"PeopleNameFirst ='" & Request.Form(txtFirstName) & "' AND " & _
"PeopleNameLat ='" & Request.Form(txtLastName) & "' AND " & _
"PeopleClubCode ='" & Request.Form(txtPassword) & "'"
Response.Write strSQL
%>
View Replies
View Related
Does any one know how I can position the output at certain point? Such as If I want to print "hello" starting at position 50 from the left in the file.
View Replies
View Related