Click here to Skip to main content
15,917,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: vmware to host website? Pin
devvvy9-Jun-09 4:20
devvvy9-Jun-09 4:20 
AnswerRe: vmware to host website? Pin
Christian Graus9-Jun-09 10:35
protectorChristian Graus9-Jun-09 10:35 
GeneralRe: vmware to host website? Pin
devvvy9-Jun-09 14:15
devvvy9-Jun-09 14:15 
GeneralRe: vmware to host website? Pin
Christian Graus9-Jun-09 15:07
protectorChristian Graus9-Jun-09 15:07 
QuestionGetting error while running Workflow application. Pin
Bhushan M Jsohi9-Jun-09 3:11
Bhushan M Jsohi9-Jun-09 3:11 
AnswerRe: Getting error while running Workflow application. Pin
Abhijit Jana9-Jun-09 3:42
professionalAbhijit Jana9-Jun-09 3:42 
Questionlogin page Pin
sritha9-Jun-09 3:07
sritha9-Jun-09 3:07 
AnswerRe: login page Pin
Colin Angus Mackay9-Jun-09 3:21
Colin Angus Mackay9-Jun-09 3:21 
sritha wrote:
object reference is not set to an instance of an object


And what line is that error occurring?

sritha wrote:
catch
{

}


This is bad practice - Don't do it.


sritha wrote:
try
{
return ds;
}
catch
{
throw;
}
finally
{
cmd.Dispose();
con.Close();
}


WTF?

Exactly what exception will return ds throw? Surely the try block should go around everything, not just the last line.

You are not doing anything in the catch block other than rethrowing the exception. Remove the catch block it is not required.

Your connection is stored elsewhere. .NET does connection pooling, don't keep connection objects around, create a new one each time.

Man who stand on hill with mouth open wait long time for roast duck to drop in

AnswerRe: login page Pin
saanj9-Jun-09 3:22
saanj9-Jun-09 3:22 
AnswerRe: login page Pin
Abhijit Jana9-Jun-09 3:38
professionalAbhijit Jana9-Jun-09 3:38 
QuestionProblem with linq to sql Pin
ais079-Jun-09 2:14
ais079-Jun-09 2:14 
AnswerRe: Problem with linq to sql Pin
Manas Bhardwaj9-Jun-09 2:29
professionalManas Bhardwaj9-Jun-09 2:29 
QuestionWrite HTML in PDF with iTextSharp Pin
vnsraj9-Jun-09 2:13
vnsraj9-Jun-09 2:13 
QuestionHow to read UNREAD mails from mail server through .netcode??? Pin
nkmkrishna9-Jun-09 2:02
nkmkrishna9-Jun-09 2:02 
AnswerRe: How to read UNREAD mails from mail server through .netcode??? Pin
saanj9-Jun-09 2:08
saanj9-Jun-09 2:08 
GeneralRe: How to read UNREAD mails from mail server through .netcode??? Pin
nkmkrishna9-Jun-09 2:24
nkmkrishna9-Jun-09 2:24 
GeneralRe: How to read UNREAD mails from mail server through .netcode??? Pin
saanj9-Jun-09 2:29
saanj9-Jun-09 2:29 
GeneralRe: How to read UNREAD mails from mail server through .netcode??? Pin
Abhijit Jana9-Jun-09 3:32
professionalAbhijit Jana9-Jun-09 3:32 
QuestionImporting Excel Sheet Which Have Dynamic Column Name And Dynamic Number Of Columns Pin
praveenkumar_mca9-Jun-09 1:24
praveenkumar_mca9-Jun-09 1:24 
Questionautorefresh Pin
naveen attri9-Jun-09 0:50
naveen attri9-Jun-09 0:50 
AnswerRe: autorefresh Pin
saanj9-Jun-09 0:58
saanj9-Jun-09 0:58 
AnswerRe: autorefresh Pin
Viral Upadhyay9-Jun-09 1:00
Viral Upadhyay9-Jun-09 1:00 
GeneralRe: autorefresh Pin
naveen attri12-Jun-09 2:22
naveen attri12-Jun-09 2:22 
GeneralRe: autorefresh Pin
Viral Upadhyay12-Jun-09 9:40
Viral Upadhyay12-Jun-09 9:40 
AnswerRe: autorefresh Pin
Christian Graus9-Jun-09 1:14
protectorChristian Graus9-Jun-09 1:14 

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.