I am getting 2 red underlines in this portion of code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim robots As String
robots = Request.Form("robots")
If robots <> "" Then
Response.Write("No spambots here!")
Else
'Process the form...
End If
LblDate.Text = ReturnDate()
user_name.Focus()
Dim robots As String
I have a label called
Expand|Select|Wrap|Line Numbers
- <asp:Label ID = "LblDate" runat="server" CssClass="dateStyle" Text="Label"></asp:Label>
user_name (the name of my TextBox) is not declared. What would I declare user_name as, please, because Focus() is not a member of String?
Thank you