ASP.NETÍøÕ¾ÓëDiscuz!NTÂÛ̳ÕûºÏ
²½Öè1£º
ÒýÈë5¸öDLLµ½ÏîÄ¿ÖÐ
·Ö±ðÊÇ
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Entity;
using Discuz.Data;
²½Öè2£º
public class Discuz_NT
{
public static ArrayList Login(string username, string password, int question, string answer)
{
Discuz.Config.GeneralConfigInfo config = Discuz.Config.GeneralConfigs.GetConfig();
OnlineUserInfo oluserinfo = OnlineUsers.UpdateInfo(config.Passwordkey, config.Onlinetimeout);
int olid = oluserinfo.Olid;
ArrayList result = new ArrayList();
int uid = -1;
//Èç¹ûÉèÖÃÖÐDiscuz!NTµÄÃÜÂëģʽΪ¶¯ÍøÃÜÂë¼æÈÝģʽ£¨Ò»°ã½öÓÃÓÚ´Ó¶¯ÍøÊý¾Ýת»»À´µÄÂÛ̳£©
if (config.Passwordmode == 1)
{
//Èç¹ûºǫ́ÉèÖÃÁ˱ØÐëʹÓð²È«ÌáÎÊ
if (config.Secques == 1)
{
uid = Users.CheckDvBbsPasswordAndSecques(username, password, question, answer);
}
&n
Ïà¹ØÎĵµ£º
ASP¡£NETÖй²Óм¸ÖÖÀàÐ͵Ŀؼþ
========================================
Á½ÖÖ£º
1. ¿Í»§¶Ë¿Ø¼þ£¬Ò²¾ÍÊÇÎÒÃÇÔÚHTMLÖо³£Óõ½µÄ
2. ·þÎñ¶Ë¿Ø¼þ£¬ÀýÈç: <asp:TextBox ID="txt" runat="server" />
¿Í»§¶Ë¿Ø¼þÒ²¿ÉÒÔת³É·þÎñ¶Ë¿Ø¼þ
<input type="text" id="txt" runat="server" />
HTML ºÍ WEB
ASP¡£NET ......
¼¸¸öÔÂÇ°£¬×öÓû§×¢²áÄ£¿éÒªÓõ½·¢ËÍÓʼþ¹¦ÄÜ£¬Ò²Åöµ½ÁËЩ»ò´ó»òСµÄÎÊÌ⣬ÏÖÔÚ×ܽáһϣº
ÎÒÏÈÌù³ö·¢ËÍÓʼþÓõ½µÄ´úÂ룺
public void SendEmail(string stremail, string content,string title)
{
MailMessage mm = new MailMessage();
mm.from = new MailAddress(¹«Ë¾ÓÊÏä) ......
Asp.netΪÎÒÃÇÌṩÁËÁù¸öÑéÖ¤ÑéÖ¤¿Ø¼þ¼°ÆäÒªÆð×÷ÓñØÐëÉèÖõÄÊôÐÔ£º
(1) RequiredFieldValidator£º¸Ã¿Ø¼þÒªÇóÆä°ó¶¨µÄÊäÈë¿Ø¼þÒ»¶¨ÒªÓÐÊäÈëÖµ£¬²»ÄÜΪ¿Õ£»
ÊôÐÔ£ºControlToValidate:ÑéÖ¤¿Ø¼þÒªÑéÖ¤µÄÊäÈë¿Ø¼þID£¨°ó¶¨µÄÊäÈë¿Õ¼äID£©
Text£ºÊäÈë¿Ø¼þÊäÈëµÄÄÚÈݲ» ......
Dotjum 這邊Òª½é紹Ò²ÊÇÒ»個ºÜ經µäµÄ ASP.NET ÀÏ問題£¬¾ÍÊÇÔõ麼ÒªÔÚÏÂÀ選項ÖУ¬Ò»開ʼ DataBind() 資ÁÏ繫結時£¬
¾ÍÏȳö現預設選項 請選擇£¬Æä實×ö這個· ......
ASP.NETÔÊÐíÎÒÃÇÔÚglobal.asaxÎļþÖбàдÄܹ»½ÓÊÜÈ«¾ÖʼþµÄʼþ´¦ÀíÆ÷¡£Óû§²»»áÖ±½ÓÇëÇóÕâ¸öglobal.asaxÎļþ£¬¶øÊÇÔÚÏìÓ¦Ò»¸öÈ·¶¨µÄÓ¦ÓóÌÐòʼþÖÐ×Ô¶¯µÄÖ´ÐÐglobal.asaxÎļþ¡£global.asaxÎļþÌṩÁ˸ú´«Í³µÄASPÓ¦ÓóÌÐòÖеÄglobal.asaÎļþÀàËƵķþÎñ¡£
ÔÚglobal.asa ......