User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 401,631 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,901 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 402 | Replies: 16
Reply
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is online now Online
Veteran Poster

Re: including class???

  #11  
Feb 7th, 2008
thats what I keep telling u4umang2001. Here look at this good tutorial u4umang2001.

http://www.codersource.net/csharp_tu...amespaces.html
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

  #12  
Feb 7th, 2008
i have done that also...



but now how to call the function?
Thanks & Regards
Umang
Reply With Quote  
Join Date: Sep 2007
Posts: 1,057
Reputation: SheSaidImaPregy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 61
SheSaidImaPregy SheSaidImaPregy is offline Offline
Veteran Poster

Re: including class???

  #13  
Feb 7th, 2008
You call it the same way. This just means that those classes are related so you can call them like they are one giant class.
Reply With Quote  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

  #14  
Feb 7th, 2008
see:::::

==class1 code==
namespace ns1
{
public class c1
{
public c1()
{
}

public void c1f1()
{
console.write("namespace example");
}
}

==class 2 code==

using ns1;

public class c2
{
public c2()
{
}

public void c2f1()
{
==here i want to call c1f1==
}
}


???where i m missing/worng???
Thanks & Regards
Umang
Reply With Quote  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

  #15  
Feb 7th, 2008
see:::::

==class1 code==
namespace ns1
{
public class c1
{
public c1()
{
}

public void c1f1()
{
console.write("namespace example");
}
}
}

==class 2 code==

using ns1;

public class c2
{
public c2()
{
}

public void c2f1()
{
==here i want to call c1f1==
}
}



??? how can i call ???
wht statement should i write here
Thanks & Regards
Umang
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is online now Online
Veteran Poster

Re: including class???

  #16  
Feb 7th, 2008
use "new c1f1()"
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: Nov 2007
Posts: 28
Reputation: u4umang2001 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
u4umang2001's Avatar
u4umang2001 u4umang2001 is offline Offline
Light Poster

Re: including class???

  #17  
Feb 7th, 2008
if i ll use "new c1f1()"

then wht is the benefit of defining the namespace???

it could be done without defining a namespace...
Thanks & Regards
Umang
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 6:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC