Skip to content

Commit b5f87b0

Browse files
Create 2 webform ISPostback id, username
1 parent 528b022 commit b5f87b0

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

2 webform ISPostback id,username

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
Entry.aspx.cs
2+
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Web;
7+
using System.Web.UI;
8+
using System.Web.UI.WebControls;
9+
10+
namespace WebApplication1
11+
{
12+
public partial class WebForm1 : System.Web.UI.Page
13+
{
14+
protected void Page_Load(object sender, EventArgs e)
15+
{
16+
17+
}
18+
19+
protected void Button1_Click(object sender, EventArgs e)
20+
{
21+
Response.Redirect("viewentryautopsot.aspx?label10=" + txtid.Text + "&label20=" + txtname.Text);
22+
}
23+
}
24+
}
25+
Viewentry.aspx.cs
26+
27+
using System;
28+
using System.Collections.Generic;
29+
using System.Linq;
30+
using System.Web;
31+
using System.Web.UI;
32+
using System.Web.UI.WebControls;
33+
34+
namespace WebApplication1
35+
{
36+
public partial class viewentryautopsot : System.Web.UI.Page
37+
{
38+
protected void Page_Load(object sender, EventArgs e)
39+
{
40+
if (!IsPostBack)
41+
{
42+
Label4.Text = Request.QueryString["Label10"];
43+
Label5.Text = Request.QueryString["Label20"];
44+
}
45+
}
46+
}
47+
}

0 commit comments

Comments
 (0)