<!-- #include File="connection.aspx" -->is there any method to do that

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    <!-- #include File="connection.aspx" -->is there any method to do that

    i am from asp background
    i am very new to asp.net environment
    i want to know that is there any include in asp.net as in asp so that i can include connection file which is asp.net and asp files in all forms
    in aspx

    Code:
    <!-- #include file="top.asp" -->
    // to include top of web site
    <!-- #include File="connection.aspx" -->
    // to include connection with database of web site
    how can i do that
    is there any method
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    There you go .

    Comment

    • 200dogz
      New Member
      • Oct 2008
      • 52

      #3
      Are you trying to include a class?

      If yes then just create a .cs file in App_Code and your aspx files will automatically recognise it.



      Edit: nvm I see what you mean now...

      Comment

      Working...