asp.netʹÓþ«ÁéÄ«ÁÖÌáʾÕÒ²»µ½Ö¸¶¨Ä£¿é
´°Ìå´úÂë:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AgentObjects;
using SpeechLib;
using System.Web;
using System.Threading;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace PowerTalkClient
{
public partial class FrmMain : Form
{
public string MyClientName = "";
public FrmMain(string MyName)
{
InitializeComponent();
MyClientName = MyName;
dataGridView2.AutoGenerateColumns = false;
fenleicombox.SelectedIndex = 0;
xingbingcombox.SelectedIndex = 0;
}
#region ·½·¨
///// <summary>
///// ¼ÓÔØ¾«Áé
///// </summary>
public void LoadInAnget()
{
string path = Application.StartupPath + "\\merlin.acs";
axAgent2.Characters.Load("merlin", path);//µ¼È뼪ÄáÕâ¸ö¾«Áé
Character = axAgent2.Characters["merlin"];
 
Ïà¹ØÎĵµ£º
ǰÁ½Ì콫×Ô¼º±¾»úÆ÷ÖеÄASP.NETÓ¦Óò¿Êðµ½ÁË·þÎñÆ÷ÉÏ,½á¹û³öÏÖÁËЩÎÊÌâ.ÕÛÌÚÁËÁ½Ìì²Å¸ãÇå³þ.
Ê×ÏÈ·¢ÏÖ°²×°.NET3.5ʱºòÐèÒªÁ¬½ÓInternet,(Æäʵ°²×°°üÍêÕûµÄÀëÏß°²×°°ü)¶ø·þÎñÆ÷ÊÇÄÚ²¿ÍøÂçµÄ,ÿ°ì·¨Ö»Äܰ²×°Ò»¸öVS2008ÉÏÈ¥,Õæ²»Ã÷°×ΪºÎ°²×°VSʱºòdotNetFrameworkÓÖ²»ÐèÒªÁ¬½ÓInternetÁË.
ºóÀ´·¢ÏÖÔÚ±¾»úÆ÷ûÓÐÎÊÌâµÄÓ¦Óò¿ ......
ASP.Net 1.1 ûÓÐ.Net2.0ÌṩµÄFileUpload¿Ø¼þ£¬ÐèÒªÌí¼ÓÒ»¸ötypeΪfileµÄhtml input¿Ø¼þ£¬È»ºóÔÙдһ¸ö
¶ÀÁ¢µÄupload button¡£ÊµÀýÈçÏ£º
1. HTML
<input id="txtAttch" type="file" runat="server">
<br>
<input id="cmdUpload" type="button" value="Upload" runat="server">
2. Server ......
RowÄÚÕÒLabel¿Ø¼þ
//ÄÚ²¿¿Ø¼þʼþ
protected void LinkButton11_Click1(object sender, EventArgs e)
{
//ɾ³ý¶ÔÓ¦µÄÊÂÎñ
int ......
1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Transfer´úÌæResponse.Redirect¡£
3¡¢Ê¹ÓÃValidator¿Ø¼þ£¬ÇëÒª¾³£¼ì²éPage.IsValid¡£
4¡¢ÇëʹÓÃforeachÑ»·£¬¶ø²»ÊÇΪ×Ö·û´®µü´úÑ»·¡£
5¡¢ÇëʹÓÿͻ§¶ËÑéÖ¤·½Ê½(²»ÒªÃ¿´Î¶¼ÔÚ·þÎñ¶ËÑéÖ¤)¡£
6¡ ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º //´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="++"’)£¼/script£¾")
¡¡¡¡//½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1 ......