Click here to Skip to main content
15,887,294 members
Home / Discussions / C#
   

C#

 
QuestionCounter? Please? Pin
MasterSharp24-Sep-07 10:56
MasterSharp24-Sep-07 10:56 
AnswerRe: Counter? Pin
I Believe In GOD24-Sep-07 11:30
I Believe In GOD24-Sep-07 11:30 
GeneralRe: Counter? Pin
MasterSharp24-Sep-07 11:58
MasterSharp24-Sep-07 11:58 
GeneralRe: Counter? Pin
MasterSharp24-Sep-07 12:05
MasterSharp24-Sep-07 12:05 
QuestionUsing C# like remote desktop? Pin
InvalidTypecast24-Sep-07 10:41
InvalidTypecast24-Sep-07 10:41 
AnswerRe: Using C# like remote desktop? Pin
TJoe25-Sep-07 6:05
TJoe25-Sep-07 6:05 
GeneralRe: Using C# like remote desktop? Pin
InvalidTypecast25-Sep-07 8:49
InvalidTypecast25-Sep-07 8:49 
QuestionC# relating to SET and GET Pin
Daniel Hood24-Sep-07 9:25
Daniel Hood24-Sep-07 9:25 
Hi there, I'm a new bie to C# still learning about it. Everything that i've read about the SET and GET method, I don't seem to understand and understand the purpose of its use and when to use it in an application. I was wondering if some one could help me. Any sample code that I've downloaded using this method so I can debug through it to hopefully understand dosen't work. I'm using .net framework 2.0. I've got some of the following code below that i've adapted to test it. I have a web form with a button and label on it when you click on the button :

DEFAULT.ASPX
protected void Button1_Click(object sender, EventArgs e)
{
int i;

prop iage = new prop();
iage.age = 5;
Label1.Text = iage.age;
}

PROP.CS
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

///
/// Summary description for properties
///

public class prop
{
public prop()
{
//
// TODO: Add constructor logic here
//

}


private int age = 0
public int age
{

get
{
return age;
}
set
{
age = value;
}

}

Thankyou
AnswerRe: C# relating to SET and GET Pin
pmarfleet24-Sep-07 9:36
pmarfleet24-Sep-07 9:36 
GeneralRe: C# relating to SET and GET Pin
Colin Angus Mackay24-Sep-07 10:40
Colin Angus Mackay24-Sep-07 10:40 
GeneralRe: C# relating to SET and GET Pin
Daniel Hood24-Sep-07 10:48
Daniel Hood24-Sep-07 10:48 
AnswerRe: C# relating to SET and GET Pin
Pete O'Hanlon24-Sep-07 9:36
mvePete O'Hanlon24-Sep-07 9:36 
GeneralRe: C# relating to SET and GET Pin
Daniel Hood24-Sep-07 10:46
Daniel Hood24-Sep-07 10:46 
GeneralRe: C# relating to SET and GET Pin
Pete O'Hanlon24-Sep-07 22:16
mvePete O'Hanlon24-Sep-07 22:16 
QuestionMS Application Block : SQLHelper [modified] Pin
ss.mmm24-Sep-07 9:08
ss.mmm24-Sep-07 9:08 
AnswerRe: MS Application Block : SQLHelper Pin
pmarfleet24-Sep-07 9:22
pmarfleet24-Sep-07 9:22 
QuestionSecuring PDF Files Pin
adnanrafiq24-Sep-07 9:04
adnanrafiq24-Sep-07 9:04 
QuestionCode for Traveling Salesman Problems Pin
laremtj24-Sep-07 8:58
laremtj24-Sep-07 8:58 
AnswerRe: Code for Traveling Salesman Problems Pin
Pete O'Hanlon24-Sep-07 9:06
mvePete O'Hanlon24-Sep-07 9:06 
GeneralRe: Code for Traveling Salesman Problems Pin
Paul Conrad24-Sep-07 13:26
professionalPaul Conrad24-Sep-07 13:26 
AnswerRe: Code for Traveling Salesman Problems Pin
Scott Dorman24-Sep-07 9:11
professionalScott Dorman24-Sep-07 9:11 
AnswerRe: Code for Traveling Salesman Problems Pin
Dan Neely24-Sep-07 9:48
Dan Neely24-Sep-07 9:48 
GeneralRe: Code for Traveling Salesman Problems Pin
Scott Dorman24-Sep-07 9:59
professionalScott Dorman24-Sep-07 9:59 
GeneralRe: Code for Traveling Salesman Problems Pin
Pete O'Hanlon24-Sep-07 10:01
mvePete O'Hanlon24-Sep-07 10:01 
AnswerRe: Code for Traveling Salesman Problems Pin
Paul Conrad24-Sep-07 13:26
professionalPaul Conrad24-Sep-07 13:26 

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.