Click here to Skip to main content
15,888,521 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow can i get .net job in UK Pin
anoop_m8328-Aug-10 12:29
anoop_m8328-Aug-10 12:29 
AnswerRe: How can i get .net job in UK Pin
Not Active28-Aug-10 14:03
mentorNot Active28-Aug-10 14:03 
AnswerRe: How can i get .net job in UK Pin
Sandeep Mewara28-Aug-10 21:28
mveSandeep Mewara28-Aug-10 21:28 
QuestionPaypal Integration Pin
gautamamit828-Aug-10 2:16
gautamamit828-Aug-10 2:16 
AnswerRe: Paypal Integration Pin
dan!sh 28-Aug-10 4:02
professional dan!sh 28-Aug-10 4:02 
AnswerRe: Paypal Integration Pin
raju melveetilpurayil28-Aug-10 12:25
professionalraju melveetilpurayil28-Aug-10 12:25 
QuestionClass definition [modified] Pin
future383928-Aug-10 1:42
future383928-Aug-10 1:42 
AnswerRe: Class definition [modified] Pin
dan!sh 28-Aug-10 4:00
professional dan!sh 28-Aug-10 4:00 
future3839 wrote:
Could you please tell me did I write correct code?


Correct in what sense? If it compiles, it is syntactically correct. You can check that yourself. If it does what you want it to do, it is logically correct, may not be the best/optimum logic though.

I think you should describe what do you mean by correct.

Anyways, here are a few things that you may consider:

1. If you are using .Net 3.0 or above, make use of automatic properties.
2. You can make use of XML comments and regions in stead of commenting using "//".
3. You can make your fields private and have them only when it is really needed.
4. No need of having "this" keyword unless really needed.
5. Make use of Generic lists or Collection since they are strongly typed.

modified on Saturday, August 28, 2010 11:14 AM

AnswerRe: Class definition Pin
Yusuf28-Aug-10 4:54
Yusuf28-Aug-10 4:54 
AnswerRe: Class definition Pin
Not Active28-Aug-10 11:31
mentorNot Active28-Aug-10 11:31 
QuestionJQuery not working in user control [modified] Pin
afsal qureshi27-Aug-10 23:52
afsal qureshi27-Aug-10 23:52 
AnswerRe: JQuery not working in user control Pin
Abhijit Jana28-Aug-10 0:01
professionalAbhijit Jana28-Aug-10 0:01 
GeneralRe: JQuery not working in user control [modified] Pin
afsal qureshi28-Aug-10 0:16
afsal qureshi28-Aug-10 0:16 
AnswerRe: JQuery not working in user control Pin
Not Active28-Aug-10 11:38
mentorNot Active28-Aug-10 11:38 
Questiondisable or remove minimize and maximize buttons in a startupwindow Pin
vishnukamath27-Aug-10 21:30
vishnukamath27-Aug-10 21:30 
AnswerRe: disable or remove minimize and maximize buttons in a startupwindow Pin
Abhijit Jana27-Aug-10 23:59
professionalAbhijit Jana27-Aug-10 23:59 
GeneralRe: disable or remove minimize and maximize buttons in a startupwindow Pin
vishnukamath30-Aug-10 3:57
vishnukamath30-Aug-10 3:57 
AnswerRe: disable or remove minimize and maximize buttons in a startupwindow Pin
cramteke30-Aug-10 0:11
cramteke30-Aug-10 0:11 
GeneralRe: disable or remove minimize and maximize buttons in a startupwindow Pin
vishnukamath30-Aug-10 4:11
vishnukamath30-Aug-10 4:11 
GeneralRe: disable or remove minimize and maximize buttons in a startupwindow Pin
cramteke30-Aug-10 21:58
cramteke30-Aug-10 21:58 
QuestionGet File Name from fileupload templatefeild control in gridview Pin
vishnukamath27-Aug-10 2:43
vishnukamath27-Aug-10 2:43 
AnswerRe: Get File Name from fileupload templatefeild control in gridview Pin
Ankur\m/27-Aug-10 3:24
professionalAnkur\m/27-Aug-10 3:24 
AnswerRe: Get File Name from fileupload templatefeild control in gridview Pin
Abhijit Jana27-Aug-10 17:34
professionalAbhijit Jana27-Aug-10 17:34 
GeneralRe: Get File Name from fileupload templatefeild control in gridview Pin
vishnukamath30-Aug-10 3:44
vishnukamath30-Aug-10 3:44 
Questionconverting byte array to string format Pin
Amit Patel198526-Aug-10 21:27
Amit Patel198526-Aug-10 21:27 

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.