Jump to content

Bahman

Members
  • Posts

    5
  • Joined

  • Last visited

Bahman's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. How do capture error related to write permission?I try to delete a folder that does not have write permission, theregfore I get error and error messages. I would like to avoid receiving error message on screen and continue deleting other folders. I have been told I need to capture the error and do some checking there. How do capture error related to write permission?
  2. -------------------------------------------------------------------------------I would like to determine whether or not a given folder in my server has write permission or not. I used fso object option and used Attributes object bur always I get number 16, regardless if it has write permission, read permission or nothing at all. What is the correct object that gives me that information. Currently, I have the following code to display information on the folder:Set fso = CreateObject("Scripting.FileSystemObject") Set a = fso.GetFolder(Server.MapPath("\") & folder_directory)Response.Write ("Attributes: " & a.Attributes & "<BR>")
  3. ----------------------------With CSS I need to create a CSS file and then go to every single page and include this file between the <head></head> and so on. Even if I don't need or use html tag in my page. let's say I have a single simple asp page as follow:======================<%@ LANGUAGE="VBSCRIPT" %>a= 2b= 3c = a*bResponse.Write c======================The result of c which is 6 is currently output with Times New Roman size 3 (12pt). How can I configure (what?) to show the result in different formatting style. If you notice, I have only 2 lines of programming and I don't think it justifies using css method.The better way to ask my question is: Q1: is there anyway to change the style systemwide automatically for all pages? how?Q2: how to change the Browser default formatting?
  4. Currently, all my outputs via Response.Write asp command are in Times New Roman size 3. How can I changes the systemwide default with something else such as Arial with font size 2?I know CSS Tworks for the html part. But not for the output displayed by Response.Write command or <%=xyx%>. For example, let sayvalue1 = "Test font"Both <%="value1"%> andResponse.Write value1 output: Test font with Times New size 3. I could make it to work by adding (e.g. example):<font style="arial" size="2"><%="value1"%></font>before every single output command, but it is too much and not acceptable. How can I output via lets say <%="value1"%> that the result shows with different style such as Arial and font size=2 systemwide.
  5. I have an Access Database (e.g., DB.mdb) consisting of 10 Tables (Table1, ..., table10). I need to add a new column to an existing table (e.g., table1) without affecting the existing data in other columns in that Table.How can I add a new column to an existing Table via ASP programming?
×
×
  • Create New...