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

Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 3, 2012, 12:23 AM EST
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
VulpesRank #55 · 29.2K reputationPosted Mar 3, 2012, 1:37 AM EST