Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 2 of 2

Thread: Fired a Javascript on load of a internal page

  1. #1
    Jose Rojas is offline Member
    Join Date
    Jul 2006
    Posts
    45

    Default Fired a Javascript on load of a internal page

    Hi, I have added a internal page, which is inherited from the SkinBase, what I need to do is to fire a javascrip function on load, it works when its a test page with no inheritance, but not when its a inherited page.

    HTML Code:
    CodeFile="Default.aspx.cs" Inherits="_Default"
    
    <body  onload="load()" onunload="GUnload()">
    The above works fine

    HTML Code:
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Locations.aspx.vb" Inherits="AspDotNetStorefront.Locations" %>
    HTML Code:
    <body onload="load()" onunload="GUnload()">
    This does not.

    Any Ideas?
    Thanks

  2. #2
    Jao is offline Senior Member
    Join Date
    Oct 2008
    Posts
    1,132

    Default

    You could fire the javascript on the Page_Load event of its code-behind file.