ஒரு பார்வை

June 28, 2006

ASP [VB] bugs

Filed under: ASP/ ASP.NET,Web Programming — CAPitalZ @ 4:49 pm

If <%inline script%> used[Server.CreateObject], the connection object is created right away, while if <object> tag is inserted

<%…%>
<object ….
<%…%>
works, the object created by the <object> tag doesn’t get created until there is a use

ex.
if the object created using <object is a recordSet, then it is never created until
recordSet.Execute.. or similar happens

=========
if the object is created using Server.CreateObject inside a SUB or FUNCTION, then that object is never created until that SUB or FUNCTION is called.

======

<script language=”VBScript” runat=”server”>
tag wouldn’t execute unless it is explicitely called, as a FUNCTION or SUB

=======

If you Request.QueryString() a non-defined variable VBS automatically creates the variable and hence
IsEmpty() -> TRUE and IsNull() -> FALSE!

=================

If you Trim(Request.QueryString()) a non-defined variable, then VBS automatically creates it. Hence
IsEmpty() -> FALSE and
IsNull() -> FALSE

========

If you Request.Form(“”) a non-defined variable, then VBS outputs
IsEmpty() -> FALSE
IsNull() -> FALSE

If Trim(Request.Form(“”)) a non-defined variable then
IsEmpty() -> FALSE
IsNull() -> FALSE

_____
CAPital

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: