function in javascript:
function updatealert()
{
var f = document.getElementById('<%=(gvStock.FooterRow.FindControl("txtQnty")).ClientID%>');
if(f.value =='' ")
{
alert("Enter Quantity");
return false;
}
}
gridview template:
im getting this error:
An exception of type 'System.NullReferenceException' occurred in App_Web_ol5f1rt3.dll but was not handled in user code
Additional information: Object reference not set to an instance of an object

Samir BhogaytaRank #1,266 · 1.4K reputationPosted Jun 25, 2016, 12:28 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Jun 28, 2016, 9:13 AM EDT