Solved

call a javascript function in the masterpage from the content page

Posted on 2010-09-02
1
320 Views
Last Modified: 2013-11-19
I have a javascipt function inside the master page.
1)  I  need to be able to call this function from the content page on a button click.
2) pass parameters to the function

How can i do the above 2. please help thanks
the javascript function is:
 function AddLink() {

         }    

I need to be able to call the above method from the button click in the content page:
<asp:Button ID="btnProduct" runat="server"  Text="Add Product()"
        style="margin-bottom: 0px"  />
0
Comment
Question by:TrialUser
1 Comment
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 33589819
include this javascript inside your master page, by using <script> tag, and then you can call its function. Did i missed anything?
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question