Click here to Skip to main content
15,899,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to get a set of table values using stored procedure Pin
N a v a n e e t h5-Dec-07 23:16
N a v a n e e t h5-Dec-07 23:16 
GeneralRe: how to get a set of table values using stored procedure Pin
jagan1235-Dec-07 23:20
jagan1235-Dec-07 23:20 
GeneralFreeze columns in asp.net gridview [modified] Pin
Bendy Chan5-Dec-07 21:38
Bendy Chan5-Dec-07 21:38 
GeneralRe: Freeze columns in asp.net gridview Pin
N a v a n e e t h5-Dec-07 22:09
N a v a n e e t h5-Dec-07 22:09 
GeneralRe: Freeze columns in asp.net gridview Pin
Bendy Chan5-Dec-07 22:31
Bendy Chan5-Dec-07 22:31 
GeneralRe: Freeze columns in asp.net gridview Pin
N a v a n e e t h5-Dec-07 22:40
N a v a n e e t h5-Dec-07 22:40 
GeneralRe: Freeze columns in asp.net gridview Pin
Michael Sync6-Dec-07 0:09
Michael Sync6-Dec-07 0:09 
GeneralProperties in C# Pin
.NET- India 5-Dec-07 20:44
.NET- India 5-Dec-07 20:44 
Hello Friends,

I want to use the value of Class A in Class B
as in my program given below

class A
{
private int num = 10;//i want to use this num value in class B

public int Pro
{
get
{
return num;
}
}

}


class B
{

int n = //How to take value of Class A in this variable.

public void put()
{
Console.WriteLine(n);
}
}




static void Main(string[] args)
{
B e = new B();
e.put();

Console.ReadLine();
}


And when i did using the static properties it was rocking using instance properties it is not........................
GeneralRe: Properties in C# Pin
Michael Sync5-Dec-07 20:48
Michael Sync5-Dec-07 20:48 
GeneralRe: Properties in C# Pin
.NET- India 5-Dec-07 21:26
.NET- India 5-Dec-07 21:26 
GeneralRe: Properties in C# Pin
Michael Sync5-Dec-07 22:25
Michael Sync5-Dec-07 22:25 
GeneralRe: Properties in C# Pin
Michael Sync5-Dec-07 22:28
Michael Sync5-Dec-07 22:28 
GeneralRe: Properties in C# Pin
N a v a n e e t h5-Dec-07 22:36
N a v a n e e t h5-Dec-07 22:36 
GeneralRe: Properties in C# Pin
Michael Sync5-Dec-07 22:45
Michael Sync5-Dec-07 22:45 
GeneralRe: Properties in C# Pin
N a v a n e e t h5-Dec-07 23:00
N a v a n e e t h5-Dec-07 23:00 
GeneralRe: Properties in C# Pin
Michael Sync6-Dec-07 0:15
Michael Sync6-Dec-07 0:15 
GeneralRe: Properties in C# Pin
N a v a n e e t h6-Dec-07 0:30
N a v a n e e t h6-Dec-07 0:30 
GeneralRe: Properties in C# Pin
Michael Sync6-Dec-07 18:53
Michael Sync6-Dec-07 18:53 
GeneralRe: Properties in C# Pin
Sathesh Sakthivel5-Dec-07 23:01
Sathesh Sakthivel5-Dec-07 23:01 
GeneralRe: Properties in C# Pin
Michael Sync6-Dec-07 0:16
Michael Sync6-Dec-07 0:16 
GeneralRe: Properties in C# Pin
.NET- India 5-Dec-07 21:55
.NET- India 5-Dec-07 21:55 
GeneralRe: Properties in C# Pin
Michael Sync5-Dec-07 22:43
Michael Sync5-Dec-07 22:43 
GeneralRe: Properties in C# Pin
wasimsharp5-Dec-07 20:50
wasimsharp5-Dec-07 20:50 
GeneralRe: Properties in C# Pin
.NET- India 5-Dec-07 21:27
.NET- India 5-Dec-07 21:27 
GeneralRe: Properties in C# Pin
N a v a n e e t h5-Dec-07 22:00
N a v a n e e t h5-Dec-07 22:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.