Listing 23-15
When attempting to implement the code from the subject listing. I get an error as follows: Operator '&' is not defined for types 'String' and 'System.Web.UI.WebControls.TextBox'.
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
Page.ClientScript.RegisterStartupScript(GetType(Pa ge) _
, "controlFocus", "document.getElementByID('" & Me.ClientID & "').focus();", True)
End Sub
Can anyone tell me what's up?
Thanks,
John
|