How to Check EMPTY(or) NULL Sting
Below code i have used i m getting ERROR
Dim strr As String
If (strr.ToString() = "") Then
Response.Write("HAI")
End If
i m getting the following Error
Object reference not set to an instance of an object.
Thanks in Advence
VulpesPosted Mar 3, 2012, 6:37 AM
Satyapriya NayakPosted Mar 3, 2012, 5:23 AM
Partial Public Class _Default
Inherits System.Web.UI.Page
Dim strr As String = ""
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
If (strr.ToString() = "") Then
Response.Write("HAI")
End If
End Sub
End Class
Thanks