How to check null values in dataset ?

Answers were Sorted based on User's Feedback



How to check null values in dataset ?..

Answer / jon

if(ds.Tables[0].Rows[0].IsNull(columnName)==true)
{
Response.write("Contains null value")
}

Is This Answer Correct ?    11 Yes 1 No

How to check null values in dataset ?..

Answer / divya

if (IsDBNull(ds.Tables(0).rows(0).Item("fldname")) then
Response.write("Contains null value")
end if

Is This Answer Correct ?    4 Yes 3 No

How to check null values in dataset ?..

Answer / sharad praskash singhania

If IsDBNull(ds) Then
Response.write("Null Value")
End If

Is This Answer Correct ?    1 Yes 1 No

How to check null values in dataset ?..

Answer / jha

if(dataSet.Tables[0].Rows[0].IsNull("ColumnName"))
{

<code>

}

Is This Answer Correct ?    0 Yes 0 No

How to check null values in dataset ?..

Answer / guest

Dataset.TableName[RowNumber].IsCOLUMNNAMENull

response.PayAnyonePaymentDetails[0].IsQueueNumberNull()

Is This Answer Correct ?    3 Yes 6 No

How to check null values in dataset ?..

Answer / fusion it

if dataset.tables(0).rows.count = 0

Is This Answer Correct ?    4 Yes 10 No

Post New Answer

More ASP.NET Interview Questions

In asp.net application, if a webpage or total application seems too slow or getting delayed to load completely in the browser. As a developer, what are the checkings or actions you will take in the application or server side to rectify the slowness or delay load or which are the factors related to this issue? How we can trace it?

1 Answers  


What do you mean by serialize?

0 Answers  


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process?

1 Answers   Patni, Perot Systems, Sedna Technology,


How can you implement encapsulation in asp.net?

6 Answers   TCS,


Caching techniques in .NET?

2 Answers   Microsoft,


What are the various authentication mechanisms in ASP.NET ?

1 Answers   Digital GlobalSoft, Satyam,


Hey I am using asp.net mvc architecture. I creating one dropdownlist using <select id="State" name="State"></select> this is dynamic list.Its displaying properly. But in time of Edit.If i load a page dropdownlist is not displaying the item which is stored in table.

1 Answers  


In which situation can you not use a viewstate?

0 Answers  


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

0 Answers  


How to prepare culture-specific formatting in .net.

0 Answers  


Various types of Page Load functions

4 Answers   Net Solution,


Explain the concept of View Model in MVC?

0 Answers   B-Ways TecnoSoft,


Categories