C# asp.netÖÐ×Ö·û´®Êý×éÈ¥ÖØ
public static void Purge(ref List<string>needToPurge)
{
for(int i=0;i<needToPurge.Count-1;i++)
{
string deststring=needToPurge[i];
for(int j=i+1;j<needToPurge.Count;j++)
{
if(deststring.CompareTo(needToPurge[j])==0)
{
needToPurge.RemoveAt(j);
continue;
}
}
}
asp.netÖеÄÈ¥ÖØ
string[] para = this.textClass.Text.Split(',');
string _str=string.Empty;
for (int i = 0; i < para.Length; i++)
{
&nbs
Ïà¹ØÎĵµ£º
Asp.NetÇå¿ÕÒ³ÃæËùÓÐtextboxµÄ¼¸ÖÖ·½·¨×ܽá
ÔÚAsp.NetÖÐÇå¿ÕËùÓÐtextboxÓкü¸ÖÖ·½·¨£¬±¾ÎÄÌṩ¼¸ÖÖ£¬¹©´ó¼Ò²Î¿¼£¡
foreach( Control childControl in this.Controls )
{
if( childControl is TextBox )
((TextBox)childControl).Text = "";
}&n ......
¹ØÓÚÊý¾Ý´¦ÀíÏà¹ØµÄÓÅ»¯
Ò»¡¢ SqlDataReadºÍDatasetµÄÑ¡Ôñ
SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£ ......
1. Éú³ÉaspnetµÄȨÏÞÊý¾Ý±íºÍsp£¬Ê¹ÓÃ.net 2.0µÄÃüÁîÈçÏ£º
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql -W
ʹÓÃ-W²ÎÊýµ÷³öÁ¬½ÓÊý¾Ý¿âÏòµ¼£¬¸ù¾ÝÏòµ¼Éú³ÉÊý¾Ý¿âÊý¾Ý¡£
2. ÔÚweb.config¸ü¸ÄÑéÖ¤·½Ê½²¢Ìí¼Óproviders
<configuration>
<connectionStrings>
<add name="dbConn ......
1.asp.netºô½Ðjs
view
plain
copy
to clipboard
print
?
Response.Write("<mce:script language=javascript><!--
");
Response.Write("alert('»¶ÓÄú ');"
);
Response.Write("location.href='login.aspx';"
)& ......