-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfrmProductDetails.aspx.cs
40 lines (38 loc) · 1.4 KB
/
frmProductDetails.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
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace ASP_ALL_In_1
{
public partial class frmProductDetails : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
String strId = Request.QueryString["id"].ToString();
if (strId.Equals("cat1"))
{
imgProduct.ImageUrl= "~\\images\\images_Products\\appleiphone.jpg";
lblProductCate.Text = "Apple";
lblProductName.Text = "Apple-I Phone";
lblProductModel.Text = "I-Phone 8";
lblProductPrice.Text = "25000";
lblHardware.Text = "Quad core";
lblSoftware.Text = "Xolo 7 ver";
lblSensors.Text = "GyroSensor, Compass";
}
if (strId.Equals("cat2"))
{
imgProduct.ImageUrl = "~\\images\\images_Products\\apple_watch.jpg";
lblProductCate.Text = "Apple";
lblProductName.Text = "Apple Watch";
lblProductModel.Text = "Sport Watch";
lblProductPrice.Text = "80000";
lblHardware.Text = "Dial-Blue ";
lblSoftware.Text = "Not Available";
lblSensors.Text = "Compass";
}
}
}
}