I am trying to dynamically generate links on a webpage base on a list of file using their title property as the link text. My problem is I don't know how to get the title property of the file. Is there a object or dll i can use?
Using ASP, Is there a way to read the File property of an Image. Like Comments, Subject etc. (Information seen when you right click on an Image) I have tried using the FileSystemObject. But this is limited to very few properties like AccessDate Modified Date etc.
I also tried reading the Exif information in the JPEG. The EXIF Comments are not the Same as Comment section available from the Properties of the File.
Finally I resolved upload issue. Now I want to add the validation before the upload. So I can make sure it is a JPG file, not any malicious files such as asp. exe. bat, etc..
Set Upload = Server.CreateObject("Persits.Upload") If Upload.File.ContentType="asp" Then Response.write "Invalid file" End if
Upload.Save "k:Inetpubwwwrootpic"
It's not working
Error: Object doesn't support this property or method: 'File'
I have an asp page written entirely in jscript with a vbscript used as an include file which one variable on the page must access.
When the page runs, I run into jscript complilation errors when it tries to access the include file (since it is written in vbscript), and I can't figure out how to get the two to work together. How do you get both scripting languages to work on the same page?
Is there a function in VBScript that will return the name of the file that is currently being executed? Basically, I'm looking for a function that I can use in code similar to this...
<% response.write "The name of this file is - " thisFile.fileName %>
which will result in
The name of this file is - home.asp
being displayed on the page with home.asp executes.
I'm writing an intranet-only browser based application. I need to launch either a SETUP.EXE that is on a network drive or a shortcut on a local drive that points to the exe on the network drive I already know how to launch a local exe, for example: Set objApp = CreateObject("WScript.Shell") objApp.Run "cmd /C CD C: & Program Files & SomeFolder & SETUP"
I have a batch file that needs to execute every day and I need to run it in a silent/invisible mode. I looked up on the Internet and found this command: shell("batchfilename.bat").
Upon failure, learned that it is a Visual Basic command and not VBScript command. I wonder if anyone knows how to run a batch file using vbscript that runs in invisible mode?
What options/methos/properties/functions/objects do I have in order to create a Function in ASP/VBScript that process/create binary data as an image file type?
The Function is supoosed to get 2 parameters: 1. The file image content type defined as "image/bmp" , strContentType 2. the file binary data, binDataImageBytes (which is stored in session vars)
The Function should return/create an Image File , for instance ~tmpImg.BMP
My Question is How to create a binary Image file type from the session var binary data ?
I know this is a little off topic, but this is the best resource I know of for anything coding related.
I'm needing to read through a text file that will have the following format:
c:ools c:docs c:htdocs
And have the the results put in an array for later processing. What I'm trying to build is a small vbscript that will automatically backup each path that may be in a given txt file.
This doesn't work. There is nothing wrong with Session variables that I know of, both values are present when i write them to the page. Is it not possible to use vbscript within an include statement?
i had a vbscript that will read the text file from the bottom to the top, and after reading the file, it will be displayed in the screen, and the code look like this: PHP Code: Code:
I have a page that creates a .CSV file that has been migrated over to Windows Server 2003 from Windows 2000 Server. It worked fine before I moved it, but now when it creates the .CSV file, and you open it, the first row opens in cell A1 and the second row opens in cell A2. Code:
if it's possible to use sql or asp when calling a page the header title changes for the same page? Have anyone ever done this or know if it's possible.
I am writing a little ASP script that reads the URL and generates a navigable breadcrumb trail from it. It is highly dependant on the filename and folders being named appropriately and consistently. However, what would be prefereable is for the file that you are currently reading to be generated in the breadcrumb base on the document <title> instead of the actual file name. Is it possible in ASP to read a <title> attribute? Naturally, the ASP script would be in the <body> of the document and as such the <title> would already have been written to the client.
I am working on an asp page, where I need to set the title to a variable. I have tried Code: <% document.title = variableName %> I even tried
Code: <% response.write "<title> " & variableName & " </title>" %> That doesn't work either. I need to set the title to a variable on a dymanic ASP page
My concern is that I want to add the logo of the company in the title bar. For more clearification one can have the example of an explorer. that we see the explorer icon in the most left side then the title is displayed and after that "-Microsoft Internet Explorer" is written. so does any body knows the code in ASP that how can i replace the explorer icon with my company logo.
I have been experimenting with viewing excel spreadsheets through the browser using
Response.ContentType = "application/vnd.ms-excel
But I observed that in place of the title is the url to the page. Is there a way to get around that when using
Response.ContentType = "application/vnd.ms-excel"
I have already tried setting a var to my desired title before calling Response.ContentType = "application/vnd.ms- excel" and then in the title tags <title><%=var%></title> Still, I just get the url in place of the title.
i dont know that is this right to put the question in this forum or in html forum. anyways, the question is how can we read/find the value of title tag of html page using asp or any scripting langauge.if any one has idea, please do share
I run a site using a blog script (dblog) where if you want to open an article from the homepage, it links to a page called article.asp. For example if I want to open article 101 the link goes to article.asp?article=101 but the title (the metatag) is always the same.
What I want to do is having the title change from article to article, retrieving it from the database. So if I open article.asp?article=101 the <title> displays the title of the article 101.
there is a property in asp.net called autopostback, what i want is to set this property on plain asp to give a combo the ability to postback the selected option.
Is this possible???? i need to set something like that to a dinamic combo, any ideas????
If it can be done in java or vbscript just please tell me, cause i don�t have a clue if is possible or not.
I need some asp which I can use to put between some words within the body of a page which takes these words and places them inbetween the title tags.The idea is when an editor changes these tagged words (with Contribute2), it will also change in the title tags of a page.
Does anyone know how to display the Document Title of a .pdf file onto a webpage and make it as a link using vb.net? I don't want the filename, but the Title of the Document that you can set when you open up the pdf file, then "File/Document Properties/Summary".
I have ASP page. I dont want to show the address of this page. so I have opened the ASP page in a window which dont have the address bar. so the problem is apparently solved.
but when I press F5 for refreshing the page the address of the page appears on the title bar for sometimes.
I am trying to display the current page that is being view with asp.The line i am tryng to add is "You are editing: CurrentPageName".I can't find any code examples to help with this.
I'm setting the title attribute of an input box to assign a tooltip. If I assign title the value "Agent does not exist", when hovering over the textbox the tooltip will only display "Agent" it's the same with all my tooltips (only the first word is displayed).
I am paging through recodset but the data isn't align with my title. How can I correct that problem? How can I make the tickect number display into link?