Welcome
Welcome to Udai Singh's Internet
office. We provide representation for foreign nationals
and businesses in all matters
involving the U.S. immigration and
naturalization laws before the U.S. Department of Justice,
Department of Labor, and Department of State. We
also specialize in legal issues relating to automobile accident
injury claims, job accident injury claims, consumer law, DUI and
criminal defense.
<%
// attempt to load news and display it to the user
Set bll = Server.CreateObject("SinghSWAT.bllSingh");
bll.connectString(Application("ConStr"));
dataSrc = bll.getLatestNews();
if (dataSrc
=
=
null
&& bll.anyError())
{ % >
News Error
<%= bll.lastMsg()
%>
<%
bll.logError("dataSrc=null", bll.lastMsg(), Request);
}
else
{
rs =
Server.CreateObject("ADODB.Recordset");
rs.DataSource=
dataSrc; if
(rs.RecordCount > 0)
{ % >
News
<%
for (; rs.EOF == false; rs.MoveNext())
{
tdy = new Date();
dte
=
new Date(rs("Posted")); diff =
new
Date(tdy - dte);
s = (dte.getMonth()
+ 1) + "/"; s
+ = dte.getDate() + "/";
s +=
dte.getYear(); %>
-
<%= rs("Headline") %>
(
<%= s
%> )<%
if ((diff.getTime() /
3600000)
< 240) { % >
<%
}
}
%>
Read the news.
<%
}
}
%>