|
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open Application("DSN_TS")
Set RSContact = Conn.Execute("EXEC spGetFirstStateContact " & Request("StateID"))
Call WriteContact()
While RSContact("NextContactID" ) <>0
Set RSContact = Conn.Execute("EXEC spGetStateContact " & Request("StateID"))
Call WriteContact()
WEnd
Sub WriteContact()
Response.Write" |
" & RSContact("GivenName") & " " & RSContact("FamilyName") & "
"
Response.Write"| | Address: | " & RSContact("Address") & " |
"
Response.Write"| | Phone: | " & RSContact("Phone") & RSContact("PhoneExtension") & " |
"
Response.Write"| | E-Mail: | " & RSContact("EMail") & " |
"
End Sub
%>