shawleigh17
Member
- Joined
- May 6, 2009
- Messages
- 10
- Programming Experience
- Beginner
Hi, I am VERY new to .NET. I usually program in Java or vba in Excel. Anyways, I have tried to insert a carriage return in my code, but it isn't working. I have used vbCr, Environment.NewLine, and ControlChars.CR, but it isn't working...
Here is the code i have so far:
Here is the code i have so far:
VB.NET:
Partial Class _Default
Inherits System.Web.UI.Page
Sub webServer()
'Dim userID As String
'userID = Request.QueryString.GetValues("id").ToString()
'Response.Write("Received: " & userID & " ")
Response.Write(System.DateTime.Now.ToString("hh:mm:ss") & ControlChars.NewLine)
Response.Write(Request.UserHostAddress.ToString())
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
webServer()
End Sub
End Class