Click here to Skip to main content
15,912,977 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to use a partial class? Pin
N.Surendra Prasad10-Dec-07 21:49
N.Surendra Prasad10-Dec-07 21:49 
GeneralRe: How to use a partial class? Pin
Christian Graus10-Dec-07 22:09
protectorChristian Graus10-Dec-07 22:09 
GeneralRe: How to use a partial class? Pin
N.Surendra Prasad10-Dec-07 22:24
N.Surendra Prasad10-Dec-07 22:24 
GeneralRe: How to use a partial class? Pin
N a v a n e e t h10-Dec-07 22:31
N a v a n e e t h10-Dec-07 22:31 
GeneralRe: How to use a partial class? Pin
N.Surendra Prasad10-Dec-07 22:41
N.Surendra Prasad10-Dec-07 22:41 
GeneralRe: How to use a partial class? Pin
N a v a n e e t h10-Dec-07 23:11
N a v a n e e t h10-Dec-07 23:11 
GeneralRe: How to use a partial class? Pin
J4amieC10-Dec-07 23:24
J4amieC10-Dec-07 23:24 
GeneralRe: How to use a partial class? Pin
N a v a n e e t h10-Dec-07 22:25
N a v a n e e t h10-Dec-07 22:25 
N.Surendra Prasad wrote:
I have the variables and methods inside one class. I want to break that class into two classes so that the size of the class is reduced.


I presume you need to keep variables in one file and methods in other, right ? So your partial class would be like

file name would be MyClass.Variables
partial class MyClass
{
    public int a;
    private string b;
    //etc
}
file name would be MyClass.Methods
partial class MyClass
{
    //Methods goes here
}
when compiled, this will act as a single class. You can access variables as you do in normal class.


All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

My Website | Ask smart questions


GeneralProblem in displaying a calendar control using JavaScript.. Pin
Balagurunathan S10-Dec-07 20:51
Balagurunathan S10-Dec-07 20:51 
GeneralRe: Problem in displaying a calendar control using JavaScript.. Pin
Christian Graus10-Dec-07 21:27
protectorChristian Graus10-Dec-07 21:27 
GeneralRe: Problem in displaying a calendar control using JavaScript.. Pin
YeHtut11-Dec-07 20:16
YeHtut11-Dec-07 20:16 
QuestionWeb Serviece Problem - 'Server was unable to process request. --> Object reference not set to an instance of an object. Pin
Tarun Dudhatra10-Dec-07 20:36
Tarun Dudhatra10-Dec-07 20:36 
GeneralRe: Web Serviece Problem - 'Server was unable to process request. --> Object reference not set to an instance of an object. Pin
Sam Xavier13-Dec-07 22:56
Sam Xavier13-Dec-07 22:56 
GeneralRe: Web Serviece Problem - 'Server was unable to process request. --> Object reference not set to an instance of an object. Pin
Tarun Dudhatra14-Dec-07 0:23
Tarun Dudhatra14-Dec-07 0:23 
GeneralBurn CD Pin
arslanjatt10-Dec-07 20:06
arslanjatt10-Dec-07 20:06 
GeneralRe: Burn CD Pin
Rocky#10-Dec-07 20:11
Rocky#10-Dec-07 20:11 
GeneralRe: Burn CD Pin
Christian Graus10-Dec-07 21:22
protectorChristian Graus10-Dec-07 21:22 
GeneralRe: Burn CD Pin
RichardGrimmer11-Dec-07 5:22
RichardGrimmer11-Dec-07 5:22 
GeneralEmail Headers Pin
nannapanenikamalnath10-Dec-07 19:30
nannapanenikamalnath10-Dec-07 19:30 
GeneralRe: Email Headers Pin
Unknown Ajanabi10-Dec-07 19:40
Unknown Ajanabi10-Dec-07 19:40 
GeneralHide panel control in javascript. Pin
Nagraj Naik10-Dec-07 19:16
Nagraj Naik10-Dec-07 19:16 
GeneralRe: Hide panel control in javascript. Pin
firozu10-Dec-07 19:25
firozu10-Dec-07 19:25 
GeneralRe: Hide panel control in javascript. Pin
Unknown Ajanabi10-Dec-07 19:26
Unknown Ajanabi10-Dec-07 19:26 
GeneralRe: Hide panel control in javascript. Pin
N.Surendra Prasad10-Dec-07 21:10
N.Surendra Prasad10-Dec-07 21:10 
GeneralRe: Hide panel control in javascript. Pin
Christian Graus10-Dec-07 21:28
protectorChristian Graus10-Dec-07 21:28 

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.