用ASP制作网站登录系统
把用户名写入Session("userid")是为了防上非法登录,只要在受限页面的头部加入下面代码:
以下为程序代码:
-Using ASP to create Web site log on to the system user name written into the Session ( userid ) is to prevent illegal log in, as long as the restricted page in the head by adding the following code: The following code: < if session ( userid ) = thenresponse.write ( alert (Sorry, you do not have permissions to view the page or has timed out, please re-log on!) location.href = loging.asp ) End >
CEdit控件中文字字体的设置,同时可以增加图标,对于一些喜欢把自己的界面做漂亮,可以参考-CEdit control text font settings, at the same time can increase the icon, for some like to do their own beautiful interface, can refer to
在程序运行时,经常需要输入一些数据,数据输入的正确与否影响到程序的正常运行.因此,有必要对输入的数据进行检验.过滤掉不合法的数据.-in running, often need to import some data data input correct or not affect the normal operation procedures. Therefore, it is necessary to input data for examination. do not filter out legitimate data.
A fine class for lazy operators :)
This is an enhanced edit class: it allows to reduce the input time recording the words previously inserted and showing them when some letters are typed. -A fine class for lazy operators:) This is an enhanced edit class: it allows to reduce the input time recording the words previously inserted and showing them when some letters are typed.
一个完全的 Win32 程序。示范了如何改变窗口控制的背景颜色和字体颜色,如列表框,静态控制,编辑框以及单选按钮和复选框,程序使用了Window系统中颜色选择对话框。
-a complete Win32 process. Demonstration of how to change the window control the background color and font colors, such as box, static control, edit box and the radio buttons and check boxes, the procedures for the use of Window System color selection dialog box.