I haven't done asp in a while, but if I remember correctly all variables don't exactly need to be defined unless you put Option Explicit in the top of the page. For instance if you reference a variable that doesn't exist it won't error out, it will just not output anything.
<% if myvariable <> "" then response.write(myvariable) & "hello" else mysecondvariable <> "" response.write("not equal to anything") else do something else end if myvariable = myvariable + mysecondvariable response.write myvariable %> Here none of the variables "myvariable" or "mysecondvariable" are defined or scoped or anything, but the last statement will still return a value of 0. ASP does not make you define your variables unless you use the Option Explicit. It's recommeded that you use the option explicit so you won't run into any problems. Again it's been a while since i've coded in ASP, so if anyone needs to correct me, go ahead. On Wed, 05 Jan 2005 10:17:21 -0400, Asim Manzur <[EMAIL PROTECTED]> wrote: > could someone please tell me the following code in ASP??? > > Thanks once again. > > <CFIF IsDefined("pid")> > > do this................ > > <cfelseif IsDefined("jid")> > > do this............ > > <cfif> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189380 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54