RadPageView with RadWindow

2 posts, 0 answers
  1. Jody Harbour
    Jody Harbour avatar
    17 posts
    Member since:
    Feb 2009

    Posted 30 Jan 2013 Link to this post

    I have a RadTabStrip + RadMultiPageView + RadPageView on mainpage.aspx

    My RadPageView is utilizing ContentURL="somepage.aspx"

    On mainpage.aspx I have a refresh imagebutton that has an onclientclick="refresh(); return false;"

    inside of the
    function refresh()

    I am wanting to make a call to a JS function on RadPageView somepage.aspx

    How can I do this? I am not seeing any examples where you are going from the parent to the child, its all showing the child to the parent.

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Jan 2013 Link to this post

    Hi Jody Harbour,

    I guess you want to call a Javascript function of a page from another page. One suggestion is to create an external Javascript file and give the required function over there.
    Please take a look into the following code snippet I tried.

    JS File:
    function testFunction() {

    <script src="../script/JS_File.js" type="text/javascript"></script>
    <asp:ImageButton runat="server" ID="imageButton" ImageUrl="~/Images/img.JPG" OnClientClick="testFunction(); return false;" />

    Please remember to include the script tag as shown above in the required ASPX page and call the javascript function.

Back to Top