-
Notifications
You must be signed in to change notification settings - Fork 5
/
ViewParent.aspx.cs
36 lines (35 loc) · 1.33 KB
/
ViewParent.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL.EOperations;
using DAL.Entities;
using BLL.BOperations;
using MySql.Web;
using MySql.Data.MySqlClient;
using System.Data;
public partial class ViewParent : System.Web.UI.Page
{
Guardian grd = new Guardian();
GOperation grdHandler = new GOperation();
protected void Page_Load(object sender, EventArgs e)
{
int id = int.Parse(Request.QueryString["Gr_Id"]);
DataSet ds = grdHandler.GetGuardianByID(id);
if (ds.Tables[0].Rows.Count > 0)
{
PID.Text = ds.Tables[0].Rows[0]["Gr_Id"].ToString();
PFname.Text = ds.Tables[0].Rows[0]["Gr_Fname"].ToString();
PLname.Text = ds.Tables[0].Rows[0]["Gr_Lname"].ToString();
PEmail.Text = ds.Tables[0].Rows[0]["Gr_Email"].ToString();
PPass.Text = ds.Tables[0].Rows[0]["Gr_Pass"].ToString();
PTel.Text = ds.Tables[0].Rows[0]["Gr_TelNo"].ToString();
PMoblie.Text = ds.Tables[0].Rows[0]["Gr_MobileNo"].ToString();
PCNIC.Text = ds.Tables[0].Rows[0]["Gr_CNIC"].ToString();
PADD.Text = ds.Tables[0].Rows[0]["Gr_Address"].ToString();
PREL.Text = ds.Tables[0].Rows[0]["Gr_Relationship"].ToString();
}
}
}