How to include a asp file


















Here the menu. Say your host has given you a set of login id , password and database detail known as connecting string. We will be using database in many files so using the connecting string to connect to database. So rather than keeping this connecting string in each and every file we will keep in one connection. Now this will help us a great when we shift our site to a new host. As the new host give a new connection string we need to change this connection.

Another way it helps we are maintaining a copy of the site in our local computer with its own connecting string. Including Virtual We can include a file located from the root of the virtual directory. Say our connection string is kept at root of our virtual directory. Now from any level the same file can be included like this.

New Post. Follow Post Reply. Ray Costanzo. Convert the old include file into a. You can't just grab an old ASP file and include it in a. This discussion thread is closed Start new discussion. Include files. Conditioning include files? Web Setup Package : How to include aspx in msi? NET User Controls. Creating Custom ASP. NET Controls Roadmap. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Note The Src attribute value can be either a relative or an absolute path to the user control source file from your application's root directory.

In this article.



0コメント

  • 1000 / 1000