IsNull Function not working in VB.NET

feribayek

New Member
Hi,<BR><BR>I have tried to use IsNull Function in my ASP.NET page using VB.NET as my page language..but i am getting the following error:<BR><BR>IsNull not declared..<BR><BR>Can any one help....<BR>Thanx<BR><BR>ksnThere is no IsNull support in VB7. This is cuz isNull is giving error of "not defined". The alternative is "isdbNull" ... check it out .. hope this will solve ur problem :)<BR><BR><BR>A h S a N.Hi,<BR><BR>I have even tried IsDBNull Function but this time i am not getting any errors but i am not getting the exact result.<BR><BR>MyCode:<BR>Dim Pwd1 as string<BR>Pwd1 = "" or Null (i tried both ways)<BR><BR>If IsDBNull(Pwd1) Then<BR> Response.write("Pwd is null=" & Pwd1)<BR>Else<BR> Response.write("strPwd1 is not null and its value is=" & Pwd1)<BR>End If<BR><BR>It is always going to else Statement only...even though the value of Pwd1 is set to null...<BR><BR>Ur Help will be appreciated...<BR><BR>ksn<BR>
 
Top