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

推荐订阅源

博客园 - 三生石上(FineUI控件)
Blog — PlanetScale
Blog — PlanetScale
B
Blog
GbyAI
GbyAI
爱范儿
爱范儿
月光博客
月光博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
腾讯CDC
MyScale Blog
MyScale Blog
V
Visual Studio Blog
The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻

博客园 - 石川

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