i have taken a TextBox in GridView ,Now i want to focus the cursor to the new rows TextBox
whenever i move the Tab Key.,How i acn i do it.
guptaalok12
0
Light Poster
Recommended Answers
Jump to PostYou can use the below javascript to validate numeric number.
function bINT(sText) { if(isNaN(parseInt(sText))) return false; }
Modify your textbox to call the javascript method like below:
<asp:textbox onkeypress="return bINT(String.fromCharCode(event.keyCode));" id="txtINT" runat="server"></asp:TextBox>
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.