I got a type mismatch error on my script when compare the null value collect from the sql server.
From the beginning, I code as below:
Expand|Select|Wrap|Line Numbers
- <% If (rst_rs("Amount"))="" then %>
- Sorry the amount is 0
- <%else%>
- Amount : <%=rst_rs("Amount")%>
- <% end if%>
Expand|Select|Wrap|Line Numbers
- <% If isnull(rst_rs("Amount"))=true then %>
- Sorry the amount is 0
- <%else%>
- Amount : <%=rst_rs("Amount")%>
- <% end if%>