This is a migrated thread and some comments may be shown as answers.

RadPageView with RadWindow

1 Answer 77 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Jody Harbour
Top achievements
Rank 1
Jody Harbour asked on 30 Jan 2013, 03:49 PM
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()
{
    blah;
}

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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 Jan 2013, 07:00 AM
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() {
    alert("Fired");
}

ASPX:
<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.

Thanks,
Princy.
Tags
TabStrip
Asked by
Jody Harbour
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or