Click here to Skip to main content
15,915,772 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: truncate strings Pin
Harini N K2-Mar-07 13:51
Harini N K2-Mar-07 13:51 
GeneralRe: truncate strings Pin
nikneem20052-Mar-07 13:57
nikneem20052-Mar-07 13:57 
GeneralRe: truncate strings Pin
Harini N K2-Mar-07 14:05
Harini N K2-Mar-07 14:05 
QuestionControling Child Window Pin
Jonathan Gibbs2-Mar-07 13:06
Jonathan Gibbs2-Mar-07 13:06 
AnswerRe: Controling Child Window Pin
nikneem20052-Mar-07 13:34
nikneem20052-Mar-07 13:34 
AnswerRe: Controling Child Window Pin
Haissam3-Mar-07 14:42
Haissam3-Mar-07 14:42 
QuestionMissing partial modifier on declaration of type 'DataSet1' Pin
duaatul2-Mar-07 12:30
duaatul2-Mar-07 12:30 
AnswerRe: Missing partial modifier on declaration of type 'DataSet1' Pin
nikneem20052-Mar-07 13:40
nikneem20052-Mar-07 13:40 
Partial classes allow you do devide classes into multiple files... for example

file1.cs contains
<br />
namespace one.two.three<br />
{<br />
 partial class four() // note the partial modifier<br />
 {<br />
  public const string a = "a";<br />
 }<br />
}<br />


and file2.cs contains
<br />
namespace one.two.three<br />
{<br />
 partial class four() // note the partial modifier<br />
 {<br />
  public const string b = "b";<br />
 }<br />
}<br />


The compiler would think the same of those two files, as if it was a single code file containing
<br />
namespace one.two.three<br />
{<br />
 class four() // partial modifier is missing in this line<br />
 {<br />
  public const string a = "a";<br />
  public const string b = "b";<br />
 }<br />
}<br />

(not the partial modifier is missing in the class declaration)

Now when you use this feature (which is very usefull and handy by the way) you MUST use the 'partial' modifier in each code file containing the same class... In other words, if either the class declaration in my example above (code file file1.cs and file2.cs) misses the partial modifier, your compiler doesn't understand what you want and gives that message.


I love it when a plan comes together
http://www.zonderpunt.nl[^]

QuestionSample Asp.net application Pin
umashankergr82-Mar-07 7:55
umashankergr82-Mar-07 7:55 
AnswerRe: Sample Asp.net application Pin
Rakheesh Chalil2-Mar-07 8:38
Rakheesh Chalil2-Mar-07 8:38 
AnswerRe: Sample Asp.net application Pin
umashankergr86-Mar-07 19:09
umashankergr86-Mar-07 19:09 
Questionimage views Pin
vamsivs2-Mar-07 5:02
vamsivs2-Mar-07 5:02 
AnswerRe: image views Pin
Frank Kerrigan2-Mar-07 5:57
Frank Kerrigan2-Mar-07 5:57 
QuestionRedirecting parent page Pin
Khan.Bangash2-Mar-07 4:57
Khan.Bangash2-Mar-07 4:57 
AnswerRe: Redirecting parent page Pin
Guffa2-Mar-07 8:26
Guffa2-Mar-07 8:26 
AnswerRe: Redirecting parent page Pin
Haissam3-Mar-07 14:08
Haissam3-Mar-07 14:08 
QuestionRole Management Pin
Sarfaraj Ahmed2-Mar-07 4:30
Sarfaraj Ahmed2-Mar-07 4:30 
QuestionRadioButtonList&Datagrid Pin
nclauder2-Mar-07 4:21
nclauder2-Mar-07 4:21 
QuestionCall javascript class methods from aspx page Pin
breen252-Mar-07 3:26
breen252-Mar-07 3:26 
AnswerRe: Call javascript class methods from aspx page Pin
badgrs2-Mar-07 4:30
badgrs2-Mar-07 4:30 
AnswerRe: Call javascript class methods from aspx page Pin
Guffa2-Mar-07 5:48
Guffa2-Mar-07 5:48 
GeneralRe: Call javascript class methods from aspx page Pin
breen255-Mar-07 1:25
breen255-Mar-07 1:25 
AnswerRe: Call javascript class methods from aspx page Pin
Guffa5-Mar-07 4:08
Guffa5-Mar-07 4:08 
GeneralRe: Call javascript class methods from aspx page Pin
breen255-Mar-07 5:54
breen255-Mar-07 5:54 
AnswerRe: Call javascript class methods from aspx page Pin
Guffa5-Mar-07 8:10
Guffa5-Mar-07 8:10 

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.