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.

i have use there textbox in one gridview how to validate in the textbox..
first textbox allow only charachters then another text box allow only numbers pls help me....

Footer & Edit time


by
mahendran
this is my mail id msmahendran@gmail.com

You 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>
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.