且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在sql数据源网格视图中传递会话变量

更新时间:2022-11-28 20:34:48



声明一个局部变量并分配会话值变量并传递给你的函数。



[VB.Net]

  Dim  str  as   String  
str = Session [ InstituteId]





[C#]

  string  str; 
str =会话[ InstituteId];


I want to pass my session variable to load particular user data how can i do that.
my session variable is
Session["InstituteId"]=ID
I want to pass this ID ingrid view

Hi,
Declare a local variable and assign the session value to the variable and pass to your function.

[VB.Net]
Dim str as String
str = Session["InstituteId"]



[C#]

string str;
str = Session["InstituteId"];