惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Cloudflare Blog
U
Unit 42
D
Docker
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Recent Announcements
Recent Announcements
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
V
Visual Studio Blog
I
InfoQ
Google DeepMind News
Google DeepMind News
小众软件
小众软件
L
LangChain Blog
C
Check Point Blog
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
J
Java Code Geeks
罗磊的独立博客

博客园 - 石川

moodle更改记录 新校区效果图 大鹏出品,必属精品 ubuntu设置 2009年2月份3月份工作安排 SHOW下房间 book hmidea new eTable “E表”策划书 《绐老师的建议》读后感 高中教学水平评估宣传片 随想 笔记本 大学作品回顾 毕业一个月 读取yahoo的天气,并下载其中的图片和FLASH到本地 GridView控件修改、删除、分页、排序示例(修改含有DropDownList控件)
清华大学统一用户认证及用户漫游系统ASP.NET版
石川 · 2007-08-08 · via 博客园 - 石川

1、throamvb.dll文件
2、在 Visual Studio 2005 命令提示 中运行:
tlbimp D:\门户\throam.dll /out:myThroam.dll /namespace:myThroam
在C:\Program Files\Microsoft Visual Studio 8\VC 目录下生成文件 myThroamvb.dll
VC.jpg
3、在项目中添加DLL引用,选择生成的DLL文件
4、

                string ticket = Request.QueryString["ticket"];
                
if (ticket == "" || ticket == null)
                    
return;

                myThroamvb.roamClass t 
= new myThroamvb.roamClass();
                
string ret = t.chkticket(ticket, "JWCCX", Request.UserHostAddress);
                
string[] info = ret.Split(':');

                
if (info.Length != 7)
                
{
                    Alert al 
= new Alert("发生错误,请重新登录!");
                    al.show();
                    
return;
                }


                
if (info[0].Trim() != "code=0")
                
{
                    Alert al 
= new Alert("发生错误,请重新登录!");
                    al.show();
                    
return;
                }


                
//用户编号,1
                string id = info[1].Substring(info[1].IndexOf("="+ 1);

                
//查询用户类别,4
                string userClass = info[4].Trim();   //学生 yhlb=X0031 ,教师 J0000