ASP.NET and onClick event

Discussion in 'ASP .Net' started by Guest, Jul 14, 2005.

  1. Guest

    Guest Guest

    Is there a way to fire an onClick JavaScript event on the next page to be
    loaded in ASP.NET???

    I have 2 asp.net pages...

    page 1. With just a standard link to the next page.

    page 2. Has a expand contact JavaScript toggle system! I want a certain
    section/ onClick event to expand the correct part of the toggle menu...

    How do I do this???

    The event to expand the toggle menu is:
    onclick="collapseSection(this,'div_4');"

    Thanks for any advice!
     
    Guest, Jul 14, 2005
    #1
    1. Advertisements

  2. Guest

    Guest Guest

    Hi Tim,

    You can use
    control.Attributes.Add("Onclick", JavasCript_Code);

    HTH

    Elton_Wang
     
    Guest, Jul 14, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.