.NET中常用的传递参数的方法有两种:
1 SESSION:
Session("UserID") = "pst004" --赋值
Dim strUserID as String
strUserID = Session("UserID") --取得Session值
2 通过URL传递参数:
‘画面跳转,传递参数:
Me.Response.RedirectRequest.ApplicationPath + "/App/Activity/InformationForPayrollForExemptStaffs.aspx?
WeekEnd=" + CType(Me.gv_MainList.Rows(e.CommandArgument).Cells(2).Controls(1), LinkButton).Text _
+ "&TermID=" + hd_TermID.Value)
’取得上一画面传来的参数:
Me.Request("EmployeeID").ToString