I have created auser control for search and put it on the content page of master page. Now I am trying to add AJAX on the content page. the content page have 2 grids and these grids have templet columns and the these colomn have link button on this. Id iam aading these controls on the update panel control the then it is not working. It is working properly without ajax. I want all controls work as ajax.
Please help me....
User Control:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_SearchEmployee.ascx.cs" Inherits="HRMS.EIS.UI.EIS.UC_SearchEmployee" %>
Search By |
onselectedindexchanged="ddlSearchBy_SelectedIndexChanged"> Employee Code First Name Middle Name Last Name |
|
Width="223px" Enabled="true"> |
|
AutoGenerateColumns="False" DataKeyNames="E_Employee_GUID,Person_Information_GUID,Manager_E_Employee_GUID,S_Orginization_GUID,S_User_Login_GUID,S_Depertment_GUID,S_Designation_GUID,S_Zone_GUID,S_Region_GUID,S_Division_GUID,S_Branch_GUID,S_Country_GUID,S_State_GUID,S_City_GUID" onrowediting="gvSearch_RowEditing"> HeaderText="Person Information GUID" ReadOnly="True" Visible="False" /> ReadOnly="True" /> HeaderText="Employee Name" ReadOnly="True" /> HeaderText="Manager Name" ReadOnly="True" /> HeaderText="User Login Name" ReadOnly="True" Visible="false" /> HeaderText="Department Name" ReadOnly="True" /> HeaderText="Designation Name" ReadOnly="True" /> HeaderText="City" ReadOnly="True" Visible="false" /> HeaderText="Zone Name" ReadOnly="True" Visible="false" /> HeaderText="Region Name" ReadOnly="True" Visible="false" /> HeaderText="Division Name" ReadOnly="True" Visible="false" /> HeaderText="Branch Name" ReadOnly="True" Visible="false" /> HeaderText="Official Email" ReadOnly="True" /> HeaderText="Employee Code" ReadOnly="True" /> HeaderText="Hire Date" ReadOnly="True" /> HeaderText="Orignal Hire Date" ReadOnly="True" /> HeaderText="Terminated Date" ReadOnly="True" /> HeaderText="Employee Status" ReadOnly="True" /> HeaderText="Comments" ReadOnly="True" /> CommandName="Edit" Text="Select"> |
Content Page:
<%@ Page Title="Employee Education" Language="C#" MasterPageFile="~/HRMS.Master" AutoEventWireup="true" CodeBehind="EmployeeEducation.aspx.cs" Inherits="HRMS.EIS.UI.EIS.EmployeeEducation" %>
<%@ Register src="UC_SearchEmployee.ascx" tagname="UC_SearchEmployee" tagprefix="uc1" %>
Employee Name |
ReadOnly="True" Width="223px"> |
ControlToValidate="txtEmployeeName" ErrorMessage="Please enter the Employee Name." ValidationGroup="Education" ForeColor="Red"> |
Education Name |
|
runat="server" ValidationGroup="Education" ErrorMessage="Please Select the Education" ForeColor="Red"> |
Board/University |
Width="223px"> |
ControlToValidate="txtBoardUniversity" ErrorMessage="Please enter the Board or University Name." ValidationGroup="Education" ForeColor="Red">
ControlToValidate="txtBoardUniversity" ErrorMessage="Please enter only alphabet." ValidationExpression="^[a-z A-Z]*$" ValidationGroup="Education" ForeColor="Red"> |
Start Year |
|
runat="server" ValidationGroup="Education" ErrorMessage="Please Select the Start Year" ForeColor="Red"> |
End Year |
|
runat="server" ValidationGroup="Education" ErrorMessage="Please Select the End Year" ForeColor="Red"> |
Marks Percentage |
|
ControlToValidate="txtMarks" ErrorMessage="Please enterMarks Percentage." ValidationGroup="Education" ForeColor="Red">
ControlToValidate="txtMarks" ErrorMessage="Please enter only numbers." ValidationExpression="^[0-9]*" ValidationGroup="Education" ForeColor="Red"> |
Division |
First Second Third |
|
Institute Name |
Width="223px"> |
ControlToValidate="txtInstituteName" ErrorMessage="Please enter Institute Name." ValidationGroup="Education" ForeColor="Red">
ControlToValidate="txtInstituteName" ErrorMessage="Please enter only alphabet." ValidationExpression="^[a-z A-Z]*$" ValidationGroup="Education" ForeColor="Red"> |
Institute Address |
TextMode="MultiLine" Width="223px"> |
ControlToValidate="txtInstituteAddress" ErrorMessage="Please enter Institute Address." ValidationGroup="Education" ForeColor="Red"> |
Comments |
|
Visible="false" Width="223px"> Visible="false" Width="223px"> |
Text="Add to Table" Width="125px" ValidationGroup="Education" /> ClientIDMode="Static" onclick="btnRemove_Click" Text="Remove All" Width="125px" /> CausesValidation="false" onclick="btnClear_Click" Width="125px" /> |
AutoGenerateColumns="False" ClientIDMode="Static" DataKeyNames="E_Employee_Education_GUID,E_Employee_GUID,S_Education_GUID" onrowdeleting="gvEmployeeEducation_RowDeleting" onrowediting="gvEmployeeEducation_RowEditing" ShowHeaderWhenEmpty="true" Width="630px"> HeaderText="Employee Education GUID" ReadOnly="True" Visible="false" /> ReadOnly="True" Visible="false" /> ReadOnly="True" Visible="False" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> HeaderText="Institute Address" ReadOnly="True" /> <%-- CommandName="Update" Text="Update"> CommandName="Cancel" Text="Cancel"> --%> class="cancel" CommandName="Edit" Text="Edit"> class="cancel" CommandName="Delete" Text="Delete"> |
onclick="btnSave_Click" Text="Save All" ValidationGroup="Education" Width="125px" /> |
AutoGenerateColumns="False" DataKeyNames="E_Employee_Education_GUID,E_Employee_GUID,S_Education_GUID" onrowdeleting="gvEmployee_RowDeleting" onrowediting="gvEmployee_RowEditing" Width="630px"> HeaderText="Employee Education GUID" ReadOnly="True" Visible="false" /> ReadOnly="True" Visible="false" /> ReadOnly="True" Visible="False" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> ReadOnly="True" /> HeaderText="Institute Address" ReadOnly="True" /> <%-- CommandName="Update" Text="Update"> CommandName="Cancel" Text="Cancel"> --%> class="cancel" CommandName="Edit" Text="Edit" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'> class="cancel" CommandName="Delete" Text="Delete"> |
|
Replies
Know the answer? Post it — somebody with the same question will find it here.