摘要:
我记得好象有一个网友问过关于怎样在几个站点间共享数据库资源
我在两台电脑上试验成功了我的代码是这样的提供大家参考
在站点a的数据库服务器的数据库中有一个数据表noteboard
包含字段id(编号),title(标题),notername(留言人名字),notetime(留言时间)
怎样可以让站点b获得这个数据表的记录呢。
在a定义访问a站数据库的webservice文件myvie......
摘要:
用了我一下午的时间终于写完并整理好了利用.net来发送即时消息的材料(当然了,还有上午的数据库设计:)
数据库设计:info表:id fromstu_id tostu_id content term
其中id是主键,fromstu_id是发送信息的用户的学号(这是和我做的学友录连在一起的),tostu_id是接受信息的用户的学号,content是消息的内容,term是判断是否为新......
图象显示和翻转控件(用户自定义控件)--我也来凑凑热闹--(转)
using system;
using system.collections;
using system.componentmodel;
using system.drawing;
using system.data;
using system.windows.forms;
namespace imagezoomer
{
/// <summary>
///
/// </summary>
//枚举类型定义,定义图象的四种翻转方式
public enum flipmodestyle
{
noflip=0,//不翻转
flipx=1,//水平翻转
flipy=2,//垂直翻转
flipxy=3//水平垂直翻转
}
//事件数据类定义,报告图象的显示尺寸
public class displaysizechangedeventargs:system.eventargs
{
public int width;
public int height;
public displaysizechangedeventargs()
{
}
}
//事件代表的声明
public delegate void displaysizechangedeventhandler(object sender,displaysizechangedeventargs e);
//用户自定义控件类
public class imagezoomercontrol : system.windows.forms.control
{
private int width;//控件宽度
private int height;//控件高度
private system.drawing.bitmap bitmap;//控件上的图象
private flipmodestyle flip;//图象的翻转方式
private event displaysizechangedeventhandler eventhandler;//事件
//构造方法,初始化数据成员
&nb...
下一页 摘要:
在asp.net中提供了加密的功能。名字空间system.web.security中包含了类formsauthentication,其中有一个方法hashpasswordforstoringinconfigfile。这个方法可以将用户提供的字符变成乱码,然后存储起来。注意此方法是不能继承的。
下面的代码就是在做注册页面时将数据加密后存储到数据库的过程
imports system.......