我如何在''中传递会话值 [英] how can i pass session value in ''

查看:93
本文介绍了我如何在''中传递会话值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
<%#Eval("name")%> )我在网络应用程序中使用了此代码. br/> 请给我一个想法,告诉我如何传递存储在会话中的myid,即以上行中的(Session ["xid"]).

Hi all,
<%#Eval("name")%> i use this code in my web appl.
plz give me idea about how can i pass myid which is stored on session i.e. ( Session["xid"] )in above line.

推荐答案

我不是从您的帖子中确切确定要拍摄的内容.如果您不介意使用文件后面的代码,则

这可能有帮助 [ ^ ]

我不确定如何使用内联脚本执行此操作,但我确定可以完成.
I''m not exactly sure from your post what you are shooting for. If you don''t mind using the code behind file then

This may help[^]

I''m not sure how to do it with inline script, but I''m sure it can be done.


您可以将其存储在Java脚本变量中并访问该变量以获取会话值.

您不能在客户端设置会话值,因为它是服务器端变量.您必须使用代码隐藏来设置会话的属性.
You can store it in java script variable and access that variable to have session value.

You can not set session value on client side because it is server side variable. You have to use code-behind to set the property of session.


这篇关于我如何在''中传递会话值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆