hai ,
I have a javascript function named as sss() . I want to call it from the code behind.
function sss() {
$("#div-TableContent").show("slow");
alert("its Works");
};
I used this code
Private Sub dataGridView_RowEditing(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles dataGridView.RowEditing
If (Not ClientScript.IsStartupScriptRegistered("sss")) Then
Page.ClientScript.RegisterStartupScript(Me.GetType(), "alert", "sss();", True)
End If
End Sub
but it is not firing when the grid is in the ajax update panel. Why?
If you’re using the Ajax component, you should write something like:
The
Page.ClientScripthas been obsoleted. Also note that the third parameter is a key, and you were checking the wrong one.