网址隐藏和复制

编程入门 行业动态 更新时间:2024-10-13 18:23:24
本文介绍了网址隐藏和复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hi Folk''s 我正在开发lo-gin页面,大部分内容已经完成,我需要隐藏URL,即(如果我复制了lo-gin页面的URL并且我粘贴在新的标签地址栏中,则一定不要打开那个页面。 这是我的情景可以任意plz帮助我 谢谢'&''' mahesh.bpc

解决方案

使用会话 ... 在login_load事件中计算会话,但首先存储用户名在会话和检查中,即

if (会话[ 用户名] == null ) Response.Redirect( Home.aspx); else Response.Redirect( 的Login.aspx);

Hi Folk''s I am developing lo-gin page and most of it is completed and i required to hide the URL i.e(if i copied the lo-gin page URL and i pasted in new tab address bar it must not open that lo-gin page ) It is my scenario can any plz help me out thank''s®ard''s mahesh.b.p.c

解决方案

Use session... At login_load event count the session, but first store the username in session and check, i.e

if(Session["Username"] == null) Response.Redirect("Home.aspx"); else Response.Redirect("Login.aspx");

更多推荐

网址隐藏和复制

本文发布于:2023-10-31 13:30:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546226.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网址

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!