Cursor does not set the focus.
When i click ok the foucus disappears please help
If txtContactName = "" Then
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "showalert", "alert('You Must Indicate Student Name');window.location ='" + Request.Url.AbsoluteUri + "';", True)
TryCast(GridView1.FooterRow.FindControl("FName"), TextBox).Focus()
Exit Sub
I have instead use the refresh page command after command button ok