SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    Russia
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to check for NULL value in ASP.NET?

    Im using "IsNull()" function to check for NULL value,
    but I get the following error
    Code:
    Compiler Error Message: BC30451: The name 'IsNull' is not declared.
    
    Source Error:
    
     
    
    Line 124:	w = 800
    Line 125:	h = 400
    Line 126:	if IsNull(ctL) then
    Line 127:		If not IsNull(rs("wS")) then w = rs("wS")
    Line 128:		If not IsNull(rs("hS")) then h = rs("hS")
     
    
    Source File: C:\WebServers\Gazeta\default.aspx    Line: 126
    Which function should I use?
    Regards,
    Alexander Saprykin
    http://www16.brinkster.com/saprykin

  2. #2
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:
    Code:
    w = 800
    h = 400
    if NOT ctL then
       If rs("wS") then w = rs("wS")
          If rs("hS") then h = rs("hS")


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •