really need some help with my website

Associate
Joined
12 Aug 2007
Posts
100
i have a website which connected to a rma, accounts and po system. the coder who made the site has left the company and we cant get in touch with him.

what i need help with is i want to change a few things on the sites homepage but all the files are .aspx pages which i dont have a clue how to change or where to start.

i know a little about html coding but this i have no clue. can someone please give me some help.

thanks in advance
 
In that case you should just be able to open up the aspx pages in a text editor and change them. If you want to make more major changes you will need to get hold of the Visual Studio project for the website though. Are there aspx.cs or aspx.vb files alongside the aspx pages at all?.
 
yeah, just yank open the aspx files in a text editor - have you got ftp access?

Post code snippets here if you're struggling (thought scan them to ensure there's nothing sensitive!)
 
here is the code for the home page, what do i change for links

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;

public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Request.QueryString["restart"] != null)
{
ApplicationStuff.Application_End(Application);
ApplicationStuff.Application_Start(Application);
}

if (Request.QueryString["rabbit"] != null)
{
Session["rabbit"] = true;
}

Session["showMe"] = true;

try
{
StreamReader sr = new StreamReader(Server.MapPath(".") + "/middle.htm");
String description = sr.ReadToEnd();
litContent.Text = description;
sr.Close();
sr.Dispose();
sr = null;
}
catch
{
}
}

} // End of class
 
Looks like its using aspx as a framework and the actual HTML is somewhere else. Thats just code. There are files somewhere in your file structure that have those links. You could get notepad++ and use the search function in that to search your web directory for the link you want to change. It should find a direct match for the url you want to change.
 
The code you posted is from either an aspx.cs or aspx.vb page. The HTML is contained within the aspx files (no extension).

You _should_ be able to modify the aspx pages without having to recompile thte whole project.
 
here is the code from the aspx file

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" Title="Untitled Page" %>
<%@ Register Src="uc_right.ascx" TagName="uc_right" TagPrefix="uc1" %>
<asp:Content ID="mainContent" ContentPlaceHolderID="container" Runat="Server">

<asp:Literal ID="litContent" runat="server"></asp:Literal>

</asp:Content>
 
What about listing the files that are in the directory?

I'd have thought there'd be something obvious like "Left.aspx", "Menu.aspx", "Navi.aspx". Anything really.
 
Yep, a file list would be useful. If there's lots of files try this:

1. Open up a command prompt (start > run > cmd.exe)
2. CD to the directory where your web files are (i.e. cd c:\inetpub\wwwroot)
2. Enter:
dir /B/S > %USERPROFILE%\Desktop\files.txt

It should create a file called files.txt on your desktop with a list of all files and folders within that directory.
 
Yep, a file list would be useful. If there's lots of files try this:

1. Open up a command prompt (start > run > cmd.exe)
2. CD to the directory where your web files are (i.e. cd c:\inetpub\wwwroot)
2. Enter:
dir /B/S > %USERPROFILE%\Desktop\files.txt

It should create a file called files.txt on your desktop with a list of all files and folders within that directory.

Interesting top tip!
 
Yep, a file list would be useful. If there's lots of files try this:

1. Open up a command prompt (start > run > cmd.exe)
2. CD to the directory where your web files are (i.e. cd c:\inetpub\wwwroot)
2. Enter:
dir /B/S > %USERPROFILE%\Desktop\files.txt

It should create a file called files.txt on your desktop with a list of all files and folders within that directory.

Interesting top tip!

Indeed! Did not know you could do that so simply :)
 
Back
Top Bottom