Hi Ankit,
On Gridview rowdatabound event add an attribute onchange as :
protected void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DropDownList ddl = new DropDownList();
ddl=(DropDownList) e.Row.FindControl("ddlID");
ddl.Attributes.Add("onblur", "onchangemethodValidate(this);");
}
}
And Aspx page:
<script>
function onchangemethodValidate(ddl){
alert($("#ddl").val());
}
</script>
Posted On:
13-Dec-2015 03:20