Hi , I am using a webmethod for ajax call and on the webmethod depending upon condition need to change Textbox , but I am unable to access the textbox control on webmethod it says object reference not set .
$.ajax({
type: "POST",
url: "ExtractData.aspx/LoadFieldMassRevision",
data: '{job:"' + job + '",correlation:"' + correlation + '"}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnComplete,
error: function (jqXHR, textStatus, errorThrown) {
}
});
Public Function LoadMassiveRevision(ByVal job As String, ByVal correlation As String)
Try
If parentArr.Count > 1 Then
Dim lastArr As Integer = parentArr.Count - 1
parentName = parentArr(lastArr).Trim()
End If
txtNewParentRevisionNew.Text = parentName.Substring(0, 7)
Catch ex As Exception
End Try
End Function