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
ADVERTISEMENT
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
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
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
I'm using ASP 3.0,IIS and Java script.I have created some text boxes Dynamically using java script.So the text boxes has got the same name. This is the code i'm using for that..
aTable1=document.all('myTableTBody1')
aRow1 = aTable1.insertRow(aTable1.rows.length);
aRow =aRow1
aCell = aRow.insertCell(0);
aCell.align = "Left";
aCell.width = "5%";
aCell.innerHTML = "<input type='text' name='Course' size='20'>";
Problem is that when i'm doing client side validation using javascript its not taking values..Here 2 or 3 or 4 text boxes with the course will be created when i use
this code:
if (document.Qualificationdetails.Course.value == "") {
window.alert ("Enter Course !");
document.Qualificationdetails.Course.focus();
return false;
}
it does not give any validation...
View Replies
View Related
I am trying to create a bookstore WebApplication using c#. I can
display the books (obtained from sql server) on a table in a WebForm.
At the end of each row, I would like to add "add to cart" button.
Therefore, I use
Button bt_add = new Button();
bt_add.Text = "Add to cart";
and put it in a cell which is later placed in each table row. The
Buttons display fine on the WebForm. However, I don't know how to add
the Button_Click function for each of the Button I created since I don't
know the total number of books in advance. Can anyone help me get "add
to cart" button to work?
Note: I try clicking on each Button, the WebForm page loads back to its
original stage (Page_Load function) and my search result is gone.
View Replies
View Related
I need to dynamically create subdomains, or folders, on my site. I am currently developing a portal where when the person registers he/she gets their own sub-domain on my site. Either that or I need to create a subfolder for them on the site. I am developing in ASP and need some advice/help urgently.
View Replies
View Related
i have a page which displays a list of events searched for by a particular date. we usually have a lot of events and i don't want the user to have scroll through all of them, especially if they're interested in a particular type of event.
i have created a dynamic drop down menu which consists of all the event types. how can i got about displaying the events returned by the query to a specific event for that date.
so for example, if some one searches for 03/08/2005, they will initially get a list of all events for that day. if they click on "Closed" from the drop down menu, it will display all the "Closed" events for 03/08/2005.
View Replies
View Related
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
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
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
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
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
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
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
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"), "'", "'")
strContent = Replace(request.Form("txtContent"), "'", "'")
strSQL = "INSERT INTO [webPages] ([created], [section], [title], [content]) Values ('" & now() & "','" & request.Form("section") & "','" & strTitle & "','" & strContent & "')"
rs.Open strSQL, conn, 3
%>
View Replies
View Related
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
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
View Related
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
I have a domain www.company.com and also a sub domain like
forum.company.com I have learned that the sub domain is actually a
folder under my main domain so if I typed www.company.com/forum - it
would go to the same file as if I typed the sub domain, unfortunatly
all the files in the subdomain point to root paths eg:
/Images/logo.gif
This isn't a problem as the subdomain is seperate and I treat it like
its a new website.
I was wondering before I spend more money and activate a 10mb SSL
folder - how would I actually code for this folder?
Is the SSL on a seperate server, or just a folder off the main domain
name?
I want to do a register system "username" etc & some personnal details
through a sercure line.
Can anyone point me to where I can get more info?
View Replies
View Related
I have created a session, where a user logs in using his/her email address and password.
Howver I now want to display the users name once he/she is logged in. It should be easy,
but I cant quite get my head around it.
View Replies
View Related
I have some cookies created with javascript, I need to be able to delete them (by expiring them) or set their contents to nothing ("") using ASP. However, when I try to do this, it doesn't work. If I try to set their values to nothing by doing:
for each x in Request.Cookies
response.cookies(x)=""
next
It just creates a duplicate of each of the cookies with no content.
If I try to expire the cookies by doing the following:
for each x in Request.Cookies
response.cookies(x).Expires=date-1
next
It does nothing. They don't expire.
How can I get ASP to recognise and modify the actual cookies which are there?
View Replies
View Related
I have files in a folder that I am using the FileSystemObject to read. I can read the files and display links to them no problem, what I want to do is to sort them by date created.What is the best way to go about this?
View Replies
View Related
Just installed VS2003 and tried a hello world app. Getting 404 error even
when I explictly specify the start page in the url.
In IIS Mgr (v 5.1), App has .aspx mapped to
C:WINDOWSMicrosoft.NETFrameworkv1.1.4322aspne t_isapi.dll.
The file in question IS in the virtual directory and this is the inetmgr log
file entry that occurs when my browser requests the page: 19:42:27 127.0.0.1
GET /UP1/WebForm1.aspx 404 Code:
View Replies
View Related
My web site is entirely based on XML/XSL. Transformation of XML into HTML is a
server-side process. All my URLs are like this:
http://host/Application/?Document=AnyDoc&Chapter=3. There is only one script,
default.asp, in the root web that processes requests and displays HTML content
based on the query string.I'd like to intercept calls to http://host/Application/Catalog and translate into http://host/Application/?Document=Catalog before it is passed to the custom
error 404 handler. Can it be done - do I need a HTML filter or something?
View Replies
View Related
I am writing an intranet and want to be able to hyperlink to all files
within a specific folder AND it's subfolders. Whilst I can hyperlink to the
files in the specified folder AND I can also iterate through the subfolders
and list them, for some reason I cannot hyperlink to the sub folders. I am
writing this software at home using a computer that has IIS and Windows 98
and am accessing this as my server from another computer on my network.
My Home Page on the Server is http://maxitek (the name of my Windows98
Computer) and when I look at the value of the variable "PathSpec" - it
becomes C:Inetpubwwwroot which when I try to create links to the sub
folder it is probably here where the problem is. The files themselves link,
but not with their full subfolder names, i.e., for a file called
"C:Inetpubwwwrootmytestmytest2mytest.txt" I am getting a link that just
looks like this Code:
View Replies
View Related
I've looked everywhere and can't seem to figure out how to create folders. I've got a tonne of other stuff sussed and am about to attempt creating text files, but folders elude me still.
View Replies
View Related
I have written some ASP code that creates a group of folders using the FileSystemObject. It all works fine when the folders are being created on the same server becuase I have the correct permissions. The problem is that the code is going to be activated when people do something on our intranet. The guy in IT has set up the permissions for the Inetuser account so that in theory it should work.
It isn't working though. The first place it falls over is when I check to see if a folder exists on this other server, it doesn't find it. I am trying to access it using the full path i.e.
If fso.FolderExists(//servername/folder1/folder2)) then...
That doesn't seem to work though because it doesn't find it when it definitely exists. Does anyone know how I should be doing this?
View Replies
View Related
I expect this has been covered before but I can't anything to reflect this. How (with code) can you view folders within a directory from within a drop down menu?
View Replies
View Related
How can I use these search scripts to search in folders ? Now the search is only going through the folder where the script itself is. Code:
View Replies
View Related
How to adjust is so, that when an Word or xls link is clicked, that file will open in the right appl (Word or Excell) Code:
View Replies
View Related
This HTML will give you a browse button that allows you to select a file on your hard drive:
***********************************************
<INPUT TYPE="File" NAME="FileName" >
***********************************************
Is there something similar that will allow you to select a partcular directory? For example, I may want to select a folder called projects rather than a file.
When I click search in Editplus, I get a browse button that allows me to select directories. Under ODBC Data Sources in my control panel, there is a button to select directories. What programming is needed to get this type of browse capability?
View Replies
View Related
If I have 1 Virtual Dirctory with 2 different subfolders are these 2 different folders different virtual folders? Or if I have 2 different Virtual Directories each containing a subfolder are these two subfolders 2 different virtual folders?
I'm asking because Microsoft is using the term "virtual folders" and I am not sure if they mean the former or the later.
View Replies
View Related