Click here to Skip to main content
15,924,507 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: dataview.sort property Pin
minhpc_bk21-Jun-06 20:06
minhpc_bk21-Jun-06 20:06 
GeneralRe: dataview.sort property Pin
Dhruvil22-Jun-06 3:09
Dhruvil22-Jun-06 3:09 
GeneralRe: dataview.sort property Pin
minhpc_bk22-Jun-06 16:24
minhpc_bk22-Jun-06 16:24 
GeneralRe: dataview.sort property Pin
Dhruvil26-Jun-06 2:22
Dhruvil26-Jun-06 2:22 
QuestionProblem with populating datagrid Pin
i@@21-Jun-06 16:23
i@@21-Jun-06 16:23 
AnswerRe: Problem with populating datagrid Pin
minhpc_bk21-Jun-06 16:56
minhpc_bk21-Jun-06 16:56 
GeneralRe: Problem with populating datagrid Pin
i@@21-Jun-06 17:31
i@@21-Jun-06 17:31 
QuestionStumped on IsDBNull on SQLDataReader Pin
AaronM_NZ21-Jun-06 14:13
AaronM_NZ21-Jun-06 14:13 
Ok, this has me stumped. I am trying to get a single record from the DB, which may or may not be NULL.

Dim cmdSelect As New SqlCommand("SELECT weblink FROM dbo.environment WHERE id = 7, sqlDB)<br />
sqlDB.Open()<br />
<br />
sqlRead = cmdSelect.ExecuteReader<br />
<br />
If Not sqlRead.IsDBNull(0) Then<br />
    '...Do something with result<br />
Else<br />
    '...Do something with NULL<br />
End If


Yet when I do the test using 'If Not sqlRead.IsDBNull(0) Then', it throws and error: Invalid attempt to read when no data is present.

Yes, I know theres nothing there, thats what I am trying to test.

I cant find anything about how this should work, all examples seem to expect data to be coming back. Help!
AnswerRe: Stumped on IsDBNull on SQLDataReader Pin
Kelly Herald21-Jun-06 14:44
Kelly Herald21-Jun-06 14:44 
GeneralRe: Stumped on IsDBNull on SQLDataReader Pin
AaronM_NZ21-Jun-06 15:12
AaronM_NZ21-Jun-06 15:12 
QuestionTreeView SelectedNodeChanged [modified] Pin
maizhiming21-Jun-06 12:57
maizhiming21-Jun-06 12:57 
AnswerRe: TreeView SelectedNodeChanged Pin
minhpc_bk21-Jun-06 20:42
minhpc_bk21-Jun-06 20:42 
GeneralRe: TreeView SelectedNodeChanged Pin
maizhiming22-Jun-06 6:09
maizhiming22-Jun-06 6:09 
QuestionListener on ENTER button Pin
Chandman21-Jun-06 11:41
Chandman21-Jun-06 11:41 
AnswerRe: Listener on ENTER button Pin
Edbert P21-Jun-06 14:54
Edbert P21-Jun-06 14:54 
QuestionLoadTemplate of EditItemTemplate gives error "object reference not set to an instance ..." Pin
gulllet21-Jun-06 10:28
gulllet21-Jun-06 10:28 
AnswerRe: LoadTemplate of EditItemTemplate gives error "object reference not set to an instance ..." Pin
minhpc_bk21-Jun-06 16:44
minhpc_bk21-Jun-06 16:44 
GeneralRe: LoadTemplate of EditItemTemplate gives error "object reference not set to an instance ..." Pin
gulllet22-Jun-06 1:31
gulllet22-Jun-06 1:31 
QuestionIntegrating ASP site with ASP.net 2.0 pages Pin
Keith Goddard21-Jun-06 10:03
Keith Goddard21-Jun-06 10:03 
AnswerRe: Integrating ASP site with ASP.net 2.0 pages Pin
Edbert P21-Jun-06 15:01
Edbert P21-Jun-06 15:01 
QuestionCan i limit the the files an XML control can open at run time? Pin
Red_Wizard_Shot_The_Food21-Jun-06 9:59
Red_Wizard_Shot_The_Food21-Jun-06 9:59 
QuestionFlash like graphics in Asp .NET Pin
mikeyhardingboyo21-Jun-06 6:45
mikeyhardingboyo21-Jun-06 6:45 
AnswerRe: Flash like graphics in Asp .NET Pin
RichardGrimmer22-Jun-06 5:03
RichardGrimmer22-Jun-06 5:03 
Questionscript for capturing log files Pin
sujaynath21-Jun-06 6:18
sujaynath21-Jun-06 6:18 
AnswerRe: script for capturing log files Pin
RichardGrimmer22-Jun-06 5:05
RichardGrimmer22-Jun-06 5:05 

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.