Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with 'Focus'

Status
Not open for further replies.

Blueie

Technical User
May 12, 2012
72
GB
Hello

I have this in my logon.aspx.vb file:

Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        Dim strEmail As String = ""

        If Not IsPostBack Then

            strEmail = String.Format("{0}", Request.QueryString("strEmail"))

        End If

        LblDate.Text = ReturnDate()

        strEmail.Focus()

    End Sub

where strEmail is the ID of my email textbox.

The error I get is that 'Focus' is not a member of 'String'. What should I be using instead of Focus, please?

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top