TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramya S
NA
79
8k
gridview textbox validation
Jun 25 2016 1:51 AM
function in javascript:
function updatealert()
{
var f = document.getElementById('<%=(gvStock.FooterRow.FindControl("txtQnty")).ClientID%>');
if(f.value =='' ")
{
alert("Enter Quantity");
return false;
}
}
gridview template:
<asp:Button runat="server" ID="btnUpdate" Text="Update" onkeypress="return validate(event)" OnClick="btnUpdate_Click" OnClientClick="return updatealert()" ForeColor="#003c71"></asp:Button>
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
Reply
Answers (
2
)
How to Declare Null value in Datetime
How can i make mvc admin panel