943,749 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1159
  • ASP.NET RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Feb 7th, 2008
0

Re: including class???

thats what I keep telling u4umang2001. Here look at this good tutorial u4umang2001.

http://www.codersource.net/csharp_tu...amespaces.html
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Feb 7th, 2008
0

Re: including class???

i have done that also...



but now how to call the function?
Reputation Points: 10
Solved Threads: 0
Light Poster
u4umang2001 is offline Offline
28 posts
since Nov 2007
Feb 7th, 2008
0

Re: including class???

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.
Reputation Points: 43
Solved Threads: 68
Veteran Poster
SheSaidImaPregy is offline Offline
1,080 posts
since Sep 2007
Feb 7th, 2008
0

Re: including class???

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???
Reputation Points: 10
Solved Threads: 0
Light Poster
u4umang2001 is offline Offline
28 posts
since Nov 2007
Feb 7th, 2008
0

Re: including class???

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
Reputation Points: 10
Solved Threads: 0
Light Poster
u4umang2001 is offline Offline
28 posts
since Nov 2007
Feb 7th, 2008
0

Re: including class???

use "new c1f1()"
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Feb 7th, 2008
0

Re: including class???

if i ll use "new c1f1()"

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

it could be done without defining a namespace...
Reputation Points: 10
Solved Threads: 0
Light Poster
u4umang2001 is offline Offline
28 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Help:Does not support loopback URL problem
Next Thread in ASP.NET Forum Timeline: problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC