I have a textbox that onKeyUp it does a postback... but then I need it to reset the focus to that textbox.
This is what i've tried:
The textbox is txtAssignee and it is within an updatepanel.
This is how I can the function:
Any ideas?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008
This is what i've tried:
Code:
<script type="text/javascript">
function updatePanelPostback() {
__doPostBack("<%=upHiddenPostback.ClientID%>", "");
$get("txtAssignee").focus();
}
</script>
The textbox is txtAssignee and it is within an updatepanel.
This is how I can the function:
Code:
<asp:TextBox ID="txtAssignee" runat="server" OnKeyUp="javascript:updatePanelPostback();"></asp:TextBox>
Any ideas?
- Matt
"If I must boast, I will boast of the things that show my weakness"
- Windows 2003 Server, 98 SE, XP
- VB.NET, VSTS 2010, ASP.NET, EXCEL VBA, ACCESS, SQL 2008