1. 在首页(网站其他页面)放置登录功能
       login 页面内的 html 代码拷贝至网站首页登录部分,而且保证页面内所有脚本及引用的脚本文件都拷贝至首页,修改样式。
如果登录后需要跳转到其他页,则在调用登录页的链接加入名为 TRUN_PAGE 的参数 ,参数值写跳转页的完整 URL( 绝对路径 ) 或者相对路径 ,目前用条件置标实现, <et:var name="p" source="page" param="ca" /> <et:if c="string(p)=''"><et:var name="p" source="value" param="login.aspx" /></et:if> <input type="hidden" name="TRUN_PAGE" value="<et:echo source='variable' param='p'/>"/>
2. 添加会员
添加会员组 , 并在每组添加会员 .
创建会员业务表 , 其中必有一个字段 , 字段类型为会员编号 .
在会员的编辑项中 , 找到 选择扩展表 ”, 选中所创建的会员表 , 添加各字段属性值 . 表中将自动添加会员信息 .
3. 会员 session 设置
设置页面中需要的参数 . 假定参数名为 hytype2, 与会员表的 hylx 关联 .
4. 假定首页跳转到 main页面,main页面的代码
 
   
  1. <et:dbsrc id="dbSession" typename="Eshr.Member.Web.Login.LoginSrc" dllname="Eshr.Member" method="CheckSession"> 
  2. </et:dbsrc> 
  3. <et:dbsrcexecute datasource="dbSession" /> 
  4. <form id="form1" runat="server"> 
  5.     <et:Variable name="hylx" source="session" parameter='hytype2' /> 
  6.     <et:If c="string(hylx)='class1'"> 
  7.          <script type="text/javascript"> 
  8.          window.open('Header.aspx?tmp=' + Math.random(), '_self', 'fullscreen=1,resizable=1', true);  
  9.           </script> 
  10.     </et:if> 
  11.     <et:If c="string(hylx)='class2'"> 
  12.           <script type="text/javascript"> 
  13.           window.open('Footer.aspx?tmp=' + Math.random(), '_self', 'fullscreen=1,resizable=1', true);  
  14.           </script> 
  15.      </et:if>