Solved the problem that logon is still displayed when users add comments after logon.

Source: Internet
Author: User
The answer is getting closer and closer. In the afternoon, add content to the configuration! As the content is filled in, I find that there are a lot of things to be changed. The layout, layout, and color matching of the page have to be taken into consideration again. I feel that the time is really tight, and there is also a PPT. use case diagram to do it, i'm so dizzy!
The biggest headache is that it still shows logon when users add comments after logon. I also asked laruence for help in major forums, but I did not solve it! Then try to do breakpoint debugging! I found that the session is null when I click the comment to go To the redirection page! Adjusted the bool value!
If (session ["blog"]! = NULL) ------ change here
{
Blogvo BVO = (blogvo) session ["blog"];
If (BVO! = NULL)
{
Power. Text = "<a href = \"/blog/admin/default. aspx \ "> management </a> ";
}
Else
{
Power. Text = "<a href = \"/blog/login. aspx \ "> login </a> ";
}
}
Else
{
Power. Text = "<a href = \"/blog/login. aspx \ "> login </a> ";
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.