actually i was displaying some payroll details based on this textbox(empid),so i have used ontext_changed event for this.and i put autopost back is true.when i use the update panel it is not working,can you please see this code,,,
source code is...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="paydescription.aspx.cs" Inherits="pay_description.paydescription" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<script type = "text/javascript">
$(function () {
$('#<%= txtEmpid.ClientID %>').keyup(function () {
$('#<%= Label4.ClientID %>').text($('#<%= txtEmpid.ClientID %>').val());
});
});
</script>
<style type="text/css">
.style1
{
color: #FF9900;
font-size: x-large;
}
.style2
{
width: 86%;
height: 175px;
margin-top: 4px;
margin-left: 0px;
}
.style5
{
color: #0000CC;
font-size: large;
}
.style14
{
width: 124px;
}
.style17
{
color: #6600CC;
text-align: center;
}
.style21
{
color: #0000CC;
font-size: large;
width: 204px;
}
.style22
{
width: 200px;
}
.style23
{
color: #FF00FF;
font-size: x-large;
}
.style25
{
width: 344px;
}
.style26
{
font-size: large;
color: #FF9900;
}
.style27
{
font-family: Arial;
}
.style28
{
color: #FF9900;
font-size: x-large;
font-family: Arial;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div>
<span class="style1"><strong> <span
class="style27">
WelCome Your ID</span></strong><span class="style27">: </span></span>
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Label"
style="color: #FF3399; font-size: x-large; font-family: Arial;"></asp:Label>
<span class="style28"><strong>Your Name: </strong></span>
<asp:Label ID="lblName" runat="server" Font-Bold="True" Text="Label"
style="color: #FF3399; font-size: x-large; font-family: Arial;"></asp:Label>
<br />
<br />
<strong><span
class="style26"> </span><span class="style1">From Date</span><span
class="style26"> </span></strong>
<span class="style26"><strong> </strong><asp:TextBox ID="TextBox25"
runat="server"></asp:TextBox>
</span>
<span class="style1"><strong> To Date </strong>
<asp:TextBox ID="TextBox26" runat="server"></asp:TextBox>
</span><br />
<br />
<strong><span class="style26"> </span><span class="style28">Emp ID </span><span class="style26">
</span></strong>
<asp:TextBox ID="txtEmpid" runat="server" AutoPostBack="True"
ontextchanged="txtEmpid_TextChanged"></asp:TextBox>
<strong><span class="style26"> </span><span
class="style1"> </span>
<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>
</strong> <br />
</div><center>
<asp:Panel ID="Panel1" runat="server"
Font-Bold="True" Font-Names="Arial" Font-Size="Large" ForeColor="#0000CC"
Height="353px"
style="margin-left: 0px; margin-top: 0px; text-align: center;" Width="1006px"
BackImageUrl="~/Images/Light_Blue_429604_i0.png">
<br />
<asp:Label
ID="Label3" runat="server" Font-Bold="True" Font-Italic="True"
Font-Names="Arial" Font-Size="XX-Large" Font-Underline="True"
ForeColor="#CC3399" Text="Pay Description" align="center" CssClass="style17"></asp:Label>
<br class="style17" />
<center><ta
manimala
Tejamanimala, if this helps please login to Mark As Answer. | Alert Moderator