473,804 Members | 2,246 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

232 New Member
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

Expand|Select|Wrap|Line Numbers
  1. <!-- #include file="top.asp" -->
  2. // to include top of web site
  3. <!-- #include File="connection.aspx" -->
  4. // to include connection with database of web site
how can i do that
is there any method
Feb 3 '09 #1
2 3158
r035198x
13,262 MVP
There you go .
Feb 3 '09 #2
200dogz
52 New Member
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...
Feb 3 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1760
by: Bil Click | last post by:
I am coding classic ASP pages in Visual Studio .Net 2003. I have a file called counties_option.asp that just has a list of options: <OPTION VALUE="030">ANSON</OPTION> <OPTION VALUE="040">ASHE</OPTION> etc... I then call this as an include file in several places in a file called page1.asp like this:
5
1431
by: Mark | last post by:
Im trying to use the "includes" on an asp file I have one file called services.asp and i've included a footer on this page as PageBot.asp they are both in the root of the site but it doesn't include the contents of PageBot.asp if I view source on services.asp, it has this at the bottom of the page <!--#include virtual="pageBot.asp"-->
1
1639
by: RWC | last post by:
Hey Folks! I'm having trouble with an asp page. First off, I'm new to the html / asp world, but not to software development. I'd like to minimize or "normalize" the site, so I'm trying to use one menu page and include it into any page that needs the menu. The problem is, I include the header.asp page, include the menu.asp page, but when I write the body of the page, it sticks the text underneath the side menu. I'd like the text to...
4
4589
by: mrgr8avill | last post by:
Hello, all. First off, I apologize for my ignorance. I am not used to working with non-variants, and it has been a LONG time since I dealt with OOP. I need to pass a string to a compiled method that requires an array of objects, like: execute(string,object) it was obviously created as an object because it was meant to accept input from the page form, but I want to send it
13
9789
by: jac | last post by:
Hae, I have a windows form with a ComboBox an other things. On that combobox I have an eventhandler on de selectedindexchanged. But somewhere in my code want to do excecute the same code that is writen in the eventhandler. Is it posible to call that eventhandler from the code (not from a real selectedindexchanged on the form). So, I don't have to call that code twice.
7
1236
by: Guillaume BRAUX | last post by:
Hello, I am looking for a way to create a method that will be available to other classes in my project, but without needing to instanciate the class. I don't want this method to be static (il would be too easy ^^) ! Finally, i'd like to call my method by only doing "methodClass.myClass()" without having to instanciate "methodClass" before (like form1.ActiveForm or Form1.DefaultFont that do not need to instanciate form1 to use them ...).
2
1233
by: Jake K | last post by:
I have about 100 methods in an application I'm developing. There will be many, many more methods added as the application grows. I need to include a line of code at the start of every method in the project and every method that will be added in the future. The line of code is simply if (!bSomeVar) return; Basically I have to check this bool var before executing the code in the moethods.
2
6141
by: Bruce Wood | last post by:
SortedList<Tgeneric has most of the methods of the old SortedList class, but it's missing a few, and one in particular that puzzles me. Anyone know why it has no GetByIndex method? It has IndexOfKey(), and IndexOfValue(), so you can ask it for indices into the list. You just can't do anything with them, because it has no method that takes an index and gives you back anything, neither an entry, nor a key, nor a value.
11
5018
by: paul.gibson | last post by:
A simple code example is easier than trying to describe the issue. I have: public class myClassA {
10
2078
by: Andy B | last post by:
Is it safe to make a method that returns a match collection or nothing? or is it better to just return a match collection and have the code outside the method validate that match collection is empty or not?
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10350
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10351
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.