Click here to Skip to main content
16,015,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
page.aspx:-

<asp:hyperlinkfield datanavigateurlfields="Ecode,EmployeeName,Designation,Location" 
                         datanavigateurlformatstring="Delete.aspx?ECODE={0}&
                         ENAME={1}&DESIGNATION={2}&LOCATION={3}" 
                         text="DELETE" xmlns:asp="#unknown" />
<asp:templatefield headertext="ECODE" xmlns:asp="#unknown">
    <itemtemplate>
        <asp:label id="lblcode" runat="server" text="<%# Eval(" ecode=") %>"></asp:label>
    </itemtemplate>          
</asp:templatefield>


code-behind page:-

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MehtaGroup.TelephoneDirectoryApp.Library;


public partial class EmpFetch : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void submit_Click(object sender, EventArgs e)
    {
        Library lib = new Library();
        string sEmp_name = empname.Text;
        DataTable dtEmpDetail = new DataTable();
        dtEmpDetail = lib.GetEmpInfo(sEmp_name);
        if (dtEmpDetail.Rows.Count > 0)
        {
            grdJobHistory.DataSource = dtEmpDetail;
            grdJobHistory.DataBind();
        }


    }
    protected void grdJobHistory_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {


    }

}

if possible send me code also ...
Posted
Updated 13-May-10 1:39am
v3
Comments
Chris Maunder 13-May-10 7:47am    
Send code for what?

1 solution

We can't help you if you don't pose an actual question. If you expect us to write all the code for you, you're only going to end up very disappointed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900