Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating ReUsable VBScript Server Behavior

Status
Not open for further replies.

BrendaD

Programmer
Jan 26, 2001
25
CA
I need to Hide the default dates SQL Server shows on the Confirm page.

If a Date Time is not entered, SQL Server automatically fills in the space with the default date of 1900.01.01 00:00 (I have converted the date/time to a quasi military).

I do not want this date to show when the recordset is used.

I have tried the Tutorial in Macromedia:

but it is in JavaScript and I can't get it to work.

I have tried this script and it works:

<%
If rsNull.Fields.Item(&quot;DiaryDate&quot;).Value <> &quot;1900.01.01&quot; Then
Response.Write(rsNull.Fields.Item(&quot;DiaryDate&quot;).Value)
Else
Response.write(&quot;&quot;)
End If
%>



but I would like to make a Reusable Server Behavior from this as there are multiple instances of this over multiple pages!!!!

Is it possible and if so, can I use it more than once on a page?

Thanks,

Brenda
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top