请帮助我... [英] please help me regarding this...
问题描述
在登录页面中,im在textbox1和其他网页中提供用户名,默认情况下,通过提供Session ["user"] = TextBox1.Text来抛出此用户名;在page_load功能和其他网页中,我以
给出的每个网页中的用户名文本框
in login page im giving the username in textbox1 and in further webpages this user name is defaultly been thrown by giving Session["user"] = TextBox1.Text; in page_load funtion and in other web pages for the username textboxes in each web page i gave as
if (Convert.ToString(Session["user"]) != "guest" && Convert.ToString(Session["user"]) != null)
{
txtEmail.Text = Convert.ToString(Session["user"]);
txtEmail.Enabled = true;
}
我也有解决方案.我已经在本地系统上运行,并且默认用户名已在其他网页中抛出,但未在Web服务器中运行...这是我的问题...请帮助我
i got the solution too. i had run in the local system and the username is default had thrown in other webpages but it is not running in web server...that is my problem...please help me
推荐答案
hi,
在其他部分做一件事,编写此代码:-
Do one thing in the else part write this code :-
if (Convert.ToString(Session["user"]) != "guest" && Convert.ToString(Session["user"]) != null)
{
txtEmail.Text = Convert.ToString(Session["user"]);
txtEmail.Enabled = true;
}
其他
{
else
{
txtEmail.Text="Not Getting Email Value from session";
}
通过执行此操作&告诉我输出在此处发布您的we.config文件
Tell me the output by doing this & post your we.config file here
这篇关于请帮助我...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!