ASP.NET C# Éú³É¾²Ì¬Ò³Ãæ¼òµ¥·½·¨
ASP.NET C# Éú³É¾²Ì¬Ò³Ãæ¼òµ¥·½·¨
//Ô´ÂëÊÇÌæ»»µôÄ£°åÖеÄÌØÕ÷×Ö·û
string mbPath = Server.MapPath("template.html");
Encoding code = Encoding.GetEncoding("gb2312");
StreamReader sr = null;
StreamWriter sw = null;
string str = null;
//¶ÁÈ¡
try
{
sr = new StreamReader(mbPath, code);
str = sr.ReadToEnd();
}
catch (Exception ex)
{
throw ex;
}
finally
{
sr.Close();
}
&n
Ïà¹ØÎĵµ£º
//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ·
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ·
///
/// È¡µÃdataset
//
/// ²éѯÓï¾ä
///
public DataSet GetDataSet(string Commandtext)
{&nbs ......
µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......
¸ßЧʹÓÃʹÓÃSQL»º´æÒÀÀµ
ASP.NET FrameworkÐÂÔöµÄÒ»¸ö·Ç³£Ç¿´óµÄ¹¦ÄÜÊÇSQL»º´æÒÀÀµ¡£¸Ã¹¦ÄÜÔÊÐíµ×²ãÊý¾Ý¿âÖеÄÊý¾ÝÐÞ¸Äʱ£¬×Ô¶¯µØÖØÐÂÔØÈ뻺´æµÄÊý¾Ý¡£
ÔÚʹÓþø¶Ô»º´æ¹ýÆÚ²ßÂÔ»òÕßµ¯ÐÔ»º´æ¹ýÆÚ²ßÂÔʱÓÐÒ»¸öȨºâ£¬¶ÔÓÚÐÔÄܺͳ¾ÉÊý¾ÝµÄȨºâ¡£ÀýÈ磬Èç¹ûÔÚÄÚ´æÖлº´æÊý¾Ý20Ã룬ÔòÕâ20ÃëÄÚÏÔʾµÄÊý¾Ý¿ÉÄÜÊǹ ......
FormExtensionsÀà
FormExtensionsÀàÊÇÒ»¸ö¾²Ì¬À࣬¶¨ÒåÁË3ÖÖÀàÐ͵ÄÀ©Õ¹·½·¨£ºBeginForm¡¢BeginRouteForm¡¢EndForm£»ÔÚʵ¼Ê¿ª·¢ÖУ¬Ò²¿ÉÒÔʹÓÃusingÓï¾ä£¬¶ø²»ÐèҪдEndFormÀ©Õ¹·½·¨¡£
InputExtensionsÀà
InputExtensionsÀඨÒåÁË5ÖÖÀàÐ͵ÄÀ©Õ¹·½·¨£ºCheckBox,Hidden,Password,RadioButton,TextBox.
<field ......