Extract Meta Description
Does anyone know how (using ASP & VBScript) how to extract the description from a webpage. I mean the meta description contained in the HTML (eg <meta name="description" content="description of website">).
View RepliesDoes anyone know how (using ASP & VBScript) how to extract the description from a webpage. I mean the meta description contained in the HTML (eg <meta name="description" content="description of website">).
View RepliesWhere in an asp file do the meta name="description" content="description"
and meta name="keywords" content="key words " go?
Is it similar to where they're located in html? the top of my file looks like this (below), is it correct?
<% Response.Buffer = True %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0.11 Transitional//EN">
<html><head>
<title>testPage</title>
<script src="java.js" type="text/javascript"></script>
<meta name="description" content="description" >
<meta name="keywords" content="key words " >
<link rel="STYLESHEET" type="text/css" href="styles.css">
<style type="text/css">
Is it possible to extract meta data (resolution, copyright, aspect ratio etc)from an mp4 file onto a web page? If so, how?
View Replies View RelatedI have an Access database with a number of tables (who doesn't?)
I am planning to use the "Description" of a table for keeping track of some information at the Table level.
Would anyone know of some code to retrieve that information programmatically in ASP?
in case of error i wrote:
Response.Redirect("/error.asp?error_id=" & err.number)
how can i get the error description, source etc
in error.asp , just by knowing the error number?
I set an Description to an Table in MsAccess Database, I Open the recordset of the table in the database in my asp file, now, how do I retrive the Description I set to that Table from asp?
View Replies View RelatedIf you were to Google "Sears," (or other big names), Sears' website pulls up first. Beneath the link is a description that Sears includes in the "description" META tag. That I understand and know how to do.
However, after the description are four other links: Baby, Clothing, For the Home, and Computers & Electronics. How would I modify HTML/ASP so that sub-descriptions to pull up in a search engine for my sites?
I have a table whose field names are very wierd and difficult to udnerstand. And when users see those field names and text boxes to enter value... they become 8(
as my input form is displaying like this
for all fields in the table
RS.Fields(index).Name : <Input type=text>
next
I added description to each column in database(SQL Server) so that i can understand... is there any way so that i can show that description of column to the users. Code:
How to keep the spaces before the description line in the following code? Right now, it displays like "Net Income", but I like to have spaces before the words like " Net Income". The database value is " Net Income".
<td align="right"><Font class=content4><%=ars.Fields("LINES")%></td> ...
I saw most of the image upload posted here but can't find one that can upload an image to a folder and make a link in the database and at the same time include description, name, etc. to the database on the same row.
I created this form to include the picture, name, price and description to be upload into a database. I know i need another script to perform the upload, so i name it upload.asp, so what shd i write in the script? Code:
i wanted to store chinese character in my DB. I have set the datatype to nchar.
When i try copy a chinese character and paste it directly into the table. The table will stored the value.
But when i display the value in IE, even with meta set to UTF-8. I can only see "????" but not the chinese character. Can anyone tell me where went wrong?
I also discover that when i try perform INSERT in EM, trying to insert the chinese character into DB instead of pasting it directly to the table... But it failed. Table will only show "????". Any advice?
I'm trying to redirect the page while trying to pass some values to the next
asp page. I'm not getting any values when I do this. Is this possible?
I'm using the code below to redirect
<META HTTP-EQUIV="Refresh" CONTENT="5; URL=supportservicelist.asp">
but when I look at the value of my variable PEN, there is nothing there.
Yet I see on the current page the value is set
response.write "<input type='hidden' name='pen' value ='" & lpen & "'>"
Is there anything to be gained by putting META tags on multiple pages within my site? I've got my META stuff (title, description, keywords) on two pages, index.asp and home.asp. Ideally, I'd like my visitors to start at either of those two pages.
Would my site be more apt to appear in search engine if I repeated the same collection of META information (or a subset thereof, more specific to the page it's on) on
other pages within my site?
When creating ASP Page in VS, I see few lines of meta tags, like Code_Language, vs_defaultClientScript. What do they mean? Where can I get a list of all tags that are relevant for ASP.
View Replies View RelatedCan someone explain to me why the META Refresh doesn't work in an ASP.NET page? It works just fine in my old asp one! Content value has to be in quotes if not otherwise I get a warning. Code:
View Replies View RelatedOther than Meta data and keywords how is it best to get near the top of search engines?
View Replies View RelatedI want to my site be searchable by Internet search engines such as: Google, Altavista, Yahoo, Lycos...
Because that, I've putted four META tags: author, robots, keywords and description into my .asp page...
However, my searching by keywords I've putted in doesn't work... In other words, I've got nothing which in connection with my site... Would you be so kind to advise me how to do that and what's wrong with my approach... My META tags section is Code:
Is there a special way that I can write in keywords from the dynamic query parameters into the Meta Title, Description and content of the page?
View Replies View RelatedI have a page where a user can edit the meta tags for the page which are
then written dynamically at the time of the page being redendered.
I was wondering today whether this actually works or not? ie, if a search
engine (google or whatever) is trawling a site, does it only read html
pages? What happens when it encounters an .asp? Surely it wouldn't execute
it and therefore be able to read the meta data correctly?
Any info on this would be appreciated, if my current way of doing it is not
appropriate I will need to invest some time into changing it.
I would like one of my clients to dynamically insert meta/title tags into their ASP driven site. Caveat, I am no webmaster, but rather a more ecommerce oriented consultant. I know this can be easily accomplished. But, their webmaster claims it isn't possible.
View Replies View Relatedhow to add code Meta Tittle Tags into different pages of the website? I have already inserted code Meta Tittle Tag into my website but it appears in all of my web pages. I want to add more specific information into each of website page tag tittle but i dont know how to do? My website is written on ASP.
View Replies View RelatedI use ASP.net 2.0 C# for my shop-system. I want to programm dynamic meta-tags.
In some books I find as memer of HtmlHead statements like
Page.Header.Metadata.Add("description", "my product");
If I try this, i got the error message: Metadaten not member of HtmlHead
Want do I wrong?
how to get some meta info on a number of files, such as author and owner. it is for a .asp web page wich indexes a list of files and shows info about those files (name, type, date last modified, etc)
so that who accesses the page can sort those files by the detail they wish, and i can't discover how to get the author and owner info about those files.
how I can dynamically change metakeywords based on page content? That is, a page on restaurants should have restaurant related keywords, etc.
View Replies View Relatedthis is an interesting problem i've been trying to solve past week. I have a framed site and one of the frames is refreshing through meta tag refresh every second. The page that is refreshing looks pretty much like this:
Database: Access, IIS6 - Windows 2003 Server
1. Declare connection object
2. Declare recordset object
3. open connection
4. open recordset with sql query
5. Check database for changes (on change, refresh another frame)
6. Close recordset
7. Close connection
8. Destroy Recordset
9. Destroy Connection
That's all. After about 6 hours in operation (constant refreshing) the WWW Service just dies. Restart of the service makes it stuck ever more, the only solution is to completely reboot the server.
Any insight would be greatly appreciated. I'm at a point of sticking the connection and recordset into session so it does not declare and kill it every second..
1. how to determine the 'progid' parameter in the /oject tag for both session and application tags, eg,
<object runat="server" scope="application" id="web1" progid="web1"></object>
2. i want to invoke the meta data for ado in my global.asa, so it will there
for all the sessions:
<!--METADATA TYPE="TypeLib" NAME="Microsoft ActiveX Data Objects 2.1
Library" UUID="{00000201-0000-0010-8000-00AA006D2EA4}" VERSION="2.5"-->
is this then coded within the application 'object' tags, see 1, or is it coded in the application_onstart subroutine?
I have a situation that I am not sure how to solve. I am working on an ASP site that needs to have unique Meta tags for the appropriate page. This would be populated depending on the department selected I need the Meta tags to populate the page. I first thought about creating an application that loads a meta tag file that is called by the department ID or Title.
View Replies View RelatedI am trying to debug a problem with some ASP pages when accessed via IIS on
Windows 2003 Server SP1.
In summary, the pages are structured as follows:
Root page
Page loaded via IMG SRC
Root Page extract Code:
I am adding meta tags to my .aspx in my C# Codebehind.
Questions:
(1) How can I add a carriage-return, line-feed after each control?
(2) How do I verify my .aspx?
The </meta> is added. I am new to .aspx.
So, I added </meta> to one of my .html files and
ran it through validator.w3.org and got this error:
end tag for element "META" which is not open
In my .html, I use the line:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
(2a) Is there a validator for .aspx? Code:
Ok the kid who put together my shopping cart did a pretty good job. Each item is housed in a SQl db table, however I one problem..
The description field can only carry a max of 1024 char and is a NVARCHAR.
Should I...
A. just add three more fields to the db of the same type and add 3 more text boxes to my eidt product page and pull all 3 out when i build the page?
B. Change the current DB type to something other than NVARCHAR?
C. Find some other way to store my descriptions that I have not yet even realized could be done?
anyone have any ideas... Im no guru, but I know enough to get myself in trouble. heehee 1024 is not even close to enough room on some products. Some of them I need about triple that space easy.
how to parse a string for everything between the <p> and </p> tags .
View Replies View RelatedMaybe a simple question but baffling me a bit. What I am doing is spanning a form across several pages, I was going to use session variables to collect the data but there are some 23 questions which can be of various lengths in answer form so I have opted to fill in a database entry. Multiple users may be logging onto the site at any one time.
What I need to do is create just one session variable - the user_ID which is allocated once the first database entries are initially added.
The question:If I am doing an 'INSERT into tablename values 1, 2, 3, 4 (thus creating a new record) how can I automatically get the user_ID (which is an autonumber field in the database) straight back out and allocate it to a session variable?) - we are trying to avoid a 'login' procedure
I MUST EXTRACT SOME ID FROM A SIMPLE TABLE.
I RECEIVE ID REQUEST FROM FIVE CHECKBOXS IN A RECORD SET
LIKE BELOW:
<input type="checkbox" name="id" value="<%=rs_s("id")%>">
HOW CAN I RECEIVE THE EXACTLY ID AND SUM IT BY A SQL QUERY??
I TRYED IN THIS WAY:
<%Server.CreateObject("ADODB.Recordset")
Set Rs_sum = Conn.Execute (" SELECT SUM(quota_sc) as quota FROM supplementi WHERE id IN (" & Request("id") & "); ")
BUT IT DOESN'T WORK.