Jump to content
Xtreme .Net Talk

aahmed

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by aahmed

  1. Greetings All, I have the following ASP code generated by MS Access, the code displays a table that can be viewed via a web browser. Currently the code displays the first record first and the last record last, is there a way to switch it so that it displays the last record first and the first record last? Here's the code: <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> <TITLE>PHSWEB</TITLE> </HEAD> <BODY> <% If IsObject(Session("PHSWEB_conn")) Then Set conn = Session("PHSWEB_conn") Else Set conn = Server.CreateObject("ADODB.Connection") conn.open "PHSWEB","","" Set Session("PHSWEB_conn") = conn End If %> <% If IsObject(Session("Messages_rs")) Then Set rs = Session("Messages_rs") Else sql = "SELECT * FROM [Messages]" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, conn, 3, 3 If rs.eof Then rs.AddNew End If Set Session("Messages_rs") = rs End If %> <% On Error Resume Next rs.Movefirst do while Not rs.eof %> <TABLE WIDTH=400 BORDER=1 BORDERCOLOR=BLACK CELLPADDING=3 CELLSPACING=0> <TD BGCOLOR=#CCCCCC><FONT FACE=ARIAL SIZE=1>Posted by <%=Server.HTMLEncode(rs.Fields("Posted By").Value)%> at <%=Server.HTMLEncode(rs.Fields("Time of Post").Value)%></TD> <TR> <TD><FONT FACE=ARIAL SIZE=2><%=Server.HTMLEncode(rs.Fields("Message").Value)%><BR></FONT></TD> </TABLE> <BR> <% rs.Movenext loop%> </BODY> </HTML> <HTML>
  2. Thanks Mutant, that did it, I really appreciate it.
  3. Greetings, I have used the following code to get a remote machine's IP Address: dim pc as string dim hostaddress as ipaddress pc = pcname.text hostaddress = Dns.Resolve(pc).AddressList(0) Now I want to convert this IP Address to String, how could I do that? I'm relatively new to this so any help would be appreciated. Thanks.
×
×
  • Create New...