To pass the hidden field value
HiddenField hdnValue = ((HiddenField)gvr.FindControl("hdnApplicantType"));
string strValue = hdnValue.Value;
To pass the Hidden Field Control, just pass the id of the control
HiddenField hdnValue = ((HiddenField)gvr.FindControl("hdnApplicantType"));
string hdnId = hdnValue.ClientID;
Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "MyFunction('" + applicationID + "','" + applicantName + "','" + hdnId + "')", true);
and select the control in javascript function as
function CallMyFunction (applicationID,applicantName, hdnId )
{
var hiddenControl = document.getElementById(hdnId);
.
.
.
}
Note:You cannot pass the control object directly from c#