asp.net C# ÅÅÁÐ×éºÏ ·ÇµÝ¹é
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("/*\n------Êä³ö½á¹û------------");
getSplit("ABCDEFG");
Console.WriteLine("*/");
/*
------Êä³ö½á¹û------------
AB
AC
AD
AE
AF
AG
BC
BD
BE
BF
BG
CD
CE
CF
CG
DE
DF
DG
EF
EG
FG
ABC
ABD
ABE
ABF
ABG
BCD
BCE
BCF
BCG
CDE
CDF
CDG
DEF
DEG
EFG
ABCD
ABCE
ABCF
ABCG
BCDE
BCDF
BCDG
CDEF
CDEG
DEFG
ABCDE
ABCDF
ABCDG
BCDEF
BCDEG
CDEFG
ABCDEF
ABCDEG
BCDEFG
ABCDEFG
*/
Console.ReadLine();
}
private static void getSplit(string str)
{
for (int num = 1; num < str.Length; num++)
{
for (int i = 0; i < str.Length; i++)
{
for (int j = i + 1; j < str.Length; j++)
{
int count = num - 1 + j;
if (count < str.Length)
Console.WriteLine(str.Substring(i, num) + str.Substring(count, 1));
}
}
}
}
Ïà¹ØÎĵµ£º
ÔÚasp.net¿ª·¢ÖУ¬¾³£»áÓõ½ºǫ́ºÍǰ̨µÄ½»»¥£¬¾Í´Ë×ܽáÁËÒ»µãc#ºÍjavascriptÏ໥²Ù×÷µÄ·½·¨
1.ÔÚºǫ́c#´úÂëÖе÷ÓÃjacascriptµÄ·½·¨
javascript´úÂ룺
<script type="text/javascript" language="javascript">
function test()
{
alert("oec2003");
return false;
}
</s ......
¡¡¡¡
¡¡¡¡ÄÚÈݼò½é
¡¡¡¡±¾ÊéÊÇASP.NETµÄÈëÃŽ̡̳£ASP.NET 3.5ÊÇ΢Èí¾«ÐÄ´òÔìµÄÐÂÐ͵ÄÈí¼þ¿ª·¢Æ½Ì¨¡£¸Ãƽ̨ÊÇÔÚ.NET2.0µÄ»ù´¡ÉÏ·¢Õ¹¶øÀ´£¬ÔÚʵ¼Ê¿ª·¢ÖÐÓй㷺ӦÓᣱ¾ÊéÒ»¹²·ÖΪËÄƪ£¬µÚһƪÖ÷Òª½²½âÁËASP.NEµÄÈëÃÅ»ù´¡ÖªÊ¶£¬ÄÚÈÝ°üÀ¨´î½¨ASP.NET¿ª·¢»·¾³¡¢C#ÓïÑÔ»ù´¡¡¢ÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ¡¢ASP.NETÄÚÖöÔÏó¡¢ASP.NETҳà ......
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
  ......
ASP.NET MVCÊǼÌASP.NET WebFormsÖ®ºó£¬Î¢ÈíÍƳöµÄFront ControllerʽµÄWeb¿ª·¢Ä£ÐÍ£¬ËüÃÖ²¹ÁËÇ°Õ߶ÔHTML¿ØÖÆÄÜÁ¦²»×㣬µ¥Ôª²âÊÔ½ÏΪÀ§ÄѵÈȱµã¡£¸üÖØÒªµÄÊÇ£¬ASP.NET MVC»ùÓÚMS-PL·¢²¼£¬ÊÇÒ»¸öÕæÕýµÄ¿ªÔ´¿ò¼Ü——ÇÒûÓÐÈκÎƽ̨ÏÞÖÆ£¬Ò²¾ÍÊÇ˵£¬Äú¿ÉÒÔÔÚmonoÏÂʹÓûò¿ª·¢ASP.NET MVCµÄÏà¹ØÏîÄ¿¡£ ΢ÈíÔÚ½ñÄê3Ô ......
ÏÂÃæÊÇÓÃÀ´²âÊÔÑéÖ¤ÂëµÄǰ̨ÏÔʾ´úÂ룺ÆäÖнű¾º¯ÊýchangeµÄ×÷ÓÃÊÇʵÏÖ“¿´²»Çå³þ£¬»»Ò»ÕŵÄЧ¹û”
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckTest.aspx.cs" Inherits="SecurityCodeTest.CheckTest" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http ......