Jump to content

ASP Site...


Recommended Posts

Howdo guys,

 

I'm more of a PHP developer meself, But my mates asked me to help him with some SEO stuff on an ASP site. Looks like its written in C#. All I'm wanting to do is change the "Title" tag of each page.

 

Now I've tried the standard HTML

<head>
<title>Funky Foto | Event Photography & Portraits | Manchester & Cheshire</title>
</head>

 

But it isnt loading it in at all.

 

How do I change the title tag for each individual page.

 

The default.aspx page code is set as follows...

 

Website address is : http://www.funkyfoto.co.uk/

 

<%@ Page Language="C#" MasterPageFile="~/master/Website.Master" AutoEventWireup="true" CodeBehind="AboutUs.aspx.cs" Inherits="Web.AboutUs" Title="Funky Foto | Event Photography & Portraits | Manchester & Cheshire | About Us" %>
<head>
<title>Funky Foto | Event Photography & Portraits | Manchester & Cheshire | About Us</title>
</head>
<asp:Content ID="Content1" ContentPlaceHolderID="WebsiteContent" runat="server">

<div id="aboutUs">
    <div class="text">
        <p>Welcome to the new and improved Funky Foto website. Funky Foto brings their unique style of imaging to south Manchester and beyond. Funky Foto is the newest Studio in the area. Whether you are looking for funky dynamic portraiture, classy images to show off that special event or are looking to raise money for your school or charity, Funky Foto will provide a photography package tailored to your needs.</p>
        <h1>Who is Funky Foto?</h1>
        <p>Douglas Stenhouse trained at the renowned Blackpool Photographic College and has over 25 years experience in the photographic industry.  Formed in 2004, Funky Foto has since grown into one of the premier event and portrait photographers in the North West, Wales and Scotland.</p>
    </div>
    <a href="http://funkyfoto.orderaprint.com/mp_client/pictures.asp">
         <img  id="imgAboutUsText" alt="About Us" src="images/about_us2.png" style="padding-left:37px;" />
    </a>
        <a href="ContactUs.aspx">
         <img  id="img1" alt="About Us" src="images/about_us2_bottom.png" style="padding-left:37px;" />
    </a>
    
</div>

</asp:Content>

Link to comment
Share on other sites

There is such a lack of information here to give an answer.

However seen as you have posted a tiny part of a template, doesn't the very first line stand out? The bit where it says Title=

 

 

<%@ Page Language="C#" MasterPageFile="~/master/Website.Master" AutoEventWireup="true" CodeBehind="AboutUs.aspx.cs" Inherits="Web.AboutUs" Title="Funky Foto | Event Photography & Portraits | Manchester & Cheshire | About Us" %>

 

Or is that something you have added? You need to figure out the structure of the code and the portion that is generating the page title.

 

Link to comment
Share on other sites

There is such a lack of information here to give an answer.

However seen as you have posted a tiny part of a template, doesn't the very first line stand out? The bit where it says Title=

 

 

<%@ Page Language="C#" MasterPageFile="~/master/Website.Master" AutoEventWireup="true" CodeBehind="AboutUs.aspx.cs" Inherits="Web.AboutUs" Title="Funky Foto | Event Photography & Portraits | Manchester & Cheshire | About Us" %>

 

Hi Neil,

 

Thanks for the response... Not sure what more information I could have provided?

 

I'm looking to change the TITLE tags for each page

 

Looking at your response, The title ="Funky Foto | Event Photography & Portraits | Manchester & Cheshire | About Us" is what I want it to be. But if you look at the website. It hasnt gone through to the page, The page title is simply "Funky Foto" or depending on the seperate page it is "Funky Foto | Page Name" and thats what I'm looking ot modify but having no joy

Link to comment
Share on other sites

Was the original text within that code snippet what is showing on the website right now?

If so have you uploaded the file correctly after making changes?

 

Have you attempted to add some simple text into the page just to see if it appears after you have uploaded the file i.e.

<div id="aboutUs">test 123

This will give you an idea that you are editing the correct document!

 

You need to find the portion of the script that is responsible for displaying the title element. It is not a one size fits all answer for sites written in ASP.NET. That is why I stated a lack of information. Posting a snippet of a document does not provide any clues. However, I am inclined to believe you are either not uploading the file correctly or are editing the wrong file.

Link to comment
Share on other sites

  • 4 weeks later...

Just

<script language="javascript">

function changetitle(title){

document.title=title

}

</script>

<body onLoad="changetitle('Funky Foto | ...')">

 

although may not be good enough for SEO.

 

UNLESS:

~/master/Website.Master overrides the title element

 

I looked into it and it seems that every link appropriately gets the right Funky Foto | Child_name

 

That leads me to believe the title is being pulled from a database or assembled using variables.  You are going to have to look deeper into the code, maybe in AboutUs.aspx.cs  but this may look like Latin if you don't code in C#. 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.