Master Page and Content Page

Discussion in 'ASP .Net Web Controls' started by MarcAlexander, Dec 13, 2009.

  1. I have a master and a content page.
    All tags like html, form, scriptmanager, etc are on the master page.
    In the content page there is only the content and a reference to the master
    page file.

    I have derived some classes like own Buttons and TextBoxes which are part of
    the content.
    In these classes, Events like Click and TextChanged are assigned to Methods.
    But the events do not happen.

    If I put all tags of the master page into the content page and have no
    master page, the events are back.

    So why are there no events if I use a master page and how can I get the
    events back using a master page ?

    I have a Windows 7 Ultimate System.
     
    MarcAlexander, Dec 13, 2009
    #1
    1. Advertisements

  2. I am not yet using Windows 7, but it is usually the browser and browser
    version that is more important for ASP.NET. Anyway, for anybody to really
    help you here, I think you will need to post your code, probably the parts
    where you declare and handle the events would be most helpful.
     
    Nathan Sokalski, Dec 13, 2009
    #2
    1. Advertisements

  3. MarcAlexander

    rob^_^ Guest

    Hi,

    Is there a complete postback <form> block in your master page that contains
    your Content?

    Do not place <form> tags in your content.

    Regards.
     
    rob^_^, Jan 5, 2010
    #3
    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.