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

When working with ASP.Net server controls, it is important to use the right event handlers to capture the event for the application to function properly. What event would you use to capture the selection of a new item in a DropDownList control? a) The Click event. b) The SelectionChanged event. c) The SelectionIndexChanged event. d) The ChangedSelection event.

4 Answers   Syntax Softtech,


What would be the salary of an Asp.net developer with 1 and half year experience in indian rupees..??

5 Answers  


A Web Service Can Only Be Written In .net. Is it True??

0 Answers   Siebel Systems,


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

0 Answers   Excel,


What is the use of HttpHandlers? When to use this?

0 Answers   Wipro,






What is directive in asp net?

0 Answers  


How do you use a custom validator? When might you want to use one?

3 Answers   Infosys,


accessing a textbox that was created dynamically? for (int i = 0; i < t1; i++) { TextBox t2 = new TextBox(); t2.ID = "adf" + i; PlaceHolder1.Controls.Add(t2); } accessing data entered in the above created controls.

1 Answers  


Explain login control and form authentication.

0 Answers  


can we edit records from repeater control

2 Answers  


Explain page output caching?

0 Answers  


Define data caching?

0 Answers  


Categories