Can i add asp control in html pages...

Discussion in 'C#' started by rohansyco, Feb 7, 2009.

  1. #1
    Hi,

    I m a begginer of asp.net and i no idea abt how to use the HTML pages in asp.net...

    Can we put asp controls in HTML pages....

    please help me out...


    Rohansyco
    http://www.nasbar.org/
    :mad:
     
    rohansyco, Feb 7, 2009 IP
  2. ASPkit

    ASPkit Peon

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Generally, HTML will work in .net pages but you will not be able to put asp controls in a "plain" HTML page.

    If you can be more specific with your question it would be helpful.

    Regards
     
    ASPkit, Feb 7, 2009 IP
  3. vihutuo

    vihutuo Well-Known Member

    Messages:
    1,511
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    180
    #3
    In order to use asp.net controls , you will need the files to have the extension .aspx
     
    vihutuo, Feb 12, 2009 IP
  4. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #4
    You can add asp.net controls to aspx pages only or you can run asp.net on other extensions, you need to add httphandler in web.config.

    No way to use asp.net controls in .html files.
     
    MayurGondaliya, Feb 12, 2009 IP