<script type="text/javascript">
$(function () {
$("[id*=Button1]").live("click", function () {
debugger;
var row = $(this).closest('tr');
var id = row.find("td:first").text();
$("#<%=TextBox3.ClientID%>").val(id);
var branch = row.find("td:nth-child(2)").text();
$("#<%=TextBox4.ClientID%>").val(branch);
}
</script>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server">
<input type="button" id="Button1" value="EDIT" name="Button1" causesvalidation="false" CommandName=""/>
<asp:textbox id="TextBox3" runat="server" style="margin-left: 130px"></asp:textbox>
<asp:textbox id="TextBox4" runat="server" style="margin-left: 97px"></asp:textbox>
</asp:content>