Hi,
I have a column in my database table named EMP_ID which is of uniqueidentifier datatype & generated automatic values by (newid()).
And i have records of employees in same table for e.g. full name, birthdate, photourl, etc. EMP_ID is primary key.
i have 2 .aspx pages.
Home page shows only list of names of employees , SO i have taken a Gridview & there is a LABEL & LINK BUTTON in GridView. LABEL shows the NAME of EMPLOYEE & On clicking on LINK BUTTON , i am running a method which redirects user to 2nd page i.e. EmplyeeDetails.aspx page as follows:-
public void View_Details(object Src, CommandEventArgs Args)
{
Response.Redirect("EmployeeDetail.aspx?emp_id=" + Args.CommandName);
}
In the 2nd page i again have a GridView which shows details of the Employee selected on 1st page based on querystring. But the records are not shown. I get an empty GridView. I can see the EMP_ID in the URL as follows:-
http://localhost:1457/EmployeePortal...7-049687864bf8
But the records are not shown. The emp_id is perfectly correct.
How to solve this issue.
Pls Help Me.
Thank U.....