Dear Makumbi,
Please refer below sample code.
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
string RclassR = null;
string streamr = null;
if (RclassR == null && streamr == null)
{
Response.Write("Both the variable's value is null..");
}
else
{
Response.Write("Variable's value is not null..");
}
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim RclassR As String = Nothing
Dim streamr As String = Nothing
If RclassR Is Nothing AndAlso streamr Is Nothing Then
Response.Write("Both the variable's value is null..")
Else
Response.Write("Variable's value is not null..")
End If
End Sub
Output
Both the variable's value is null..