SitePoint Sponsor

User Tag List

Results 1 to 12 of 12

Thread: help needed

  1. #1
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help needed

    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

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    Hi flux64, welcome to the forums, posting-wise

    Do you have any experience with Visual Basic, C++, C#, or NET?

    I only have a bit of VB myself, but if you take a look here you'll get a rough idea of what you're up against http://msdn.microsoft.com/en-us/magazine/cc301369.aspx

    And I think you'll have a better chance of finding help in the .NET forum http://www.sitepoint.com/forums/forumdisplay.php?f=141

  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Moved to the .NET board.

  4. #4
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi
    What do you need to change?

  5. #5
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i just need to change some links on the homepage. i have no experiance of visual basic.

    when i click on the homepage to check the source it shows in html but when i look at it via ftp it is a aspx page with maybe 20 lines of code which i dont understand

  6. #6
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you post the code here (all the code in the .aspx file)?

  7. #7
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    here is the code for the homepage

    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

  8. #8
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    Can you find the middle.htm file at whatever the "Server.MapPath" is?
    If so, is that the one with the links you want to change in it?

  9. #9
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it is the description you need to change then yes have a look in middle.htm. Else we still need to see the code from your .aspx-file (you posted the code-behind code).

  10. #10
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i've just checked the middle.htm code and it is just css styling code, any other idea's guys

    also this is the code for the aspx file

    <&#37;@ 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>

  11. #11
    SitePoint Guru
    Join Date
    Nov 2005
    Location
    Norway
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, check MasterPage.master and uc_right.ascx (or post the code here).

  12. #12
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the help guys, some really useful tips for the future.

    finally got it sorted last night.

    could not of done it without the help


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •