Hi Mehram,
Check this example. Now please take its reference and correct your code.
HTML
<script type="text/javascript">
function Focus() {
document.getElementById("lable1").innerHTML = "test";
}
</script>
<input name="TextBox1" type="text" id="TextBox1" class="floattext" style="width: 100%;
text-align: right;" />
<input name="txtRate" type="text" id="txtRate" class="floattext" onfocus="return Focus();"
style="width: 100%; text-align: right;" />
<span id="lable1"></span>
Demo
You can replace HTML controls with ASP controls.
<asp:TextBox ID="TextBox1" runat="server" CssClass="floattext" Style="text-align: right;"
TabIndex="0" Width="100%"></asp:TextBox>
<asp:TextBox ID="txtRate" runat="server" onfocus="return Focus();" CssClass="floattext"
Style="text-align: right;" Width="100%"></asp:TextBox>
<asp:Label ID="lable1" runat="server" />