³¤ÄÚÈÝ×Ô¶¯·ÖÒ³µÄʵÏÖ (asp.net C#)
public class t3 : System.Web.UI.Page
{
private string str;//×Ö·û
private int strl;//×Ö·û×ܳ¤¶È
private int pagesize;//ÿҳÏÔʾµÄ×Ö·ûÊý
private void Page_Load(object sender, System.EventArgs e)
{
// ÔÚ´Ë´¦·ÅÖÃÓû§´úÂëÒÔ³õʼ»¯Ò³Ãæ
str="1234567891234567898522555";
pagesize=3;
strl=str.Length;
Response.Write(strl);
substr();
}
private void substr()
{
 
Ïà¹ØÎĵµ£º
AdRotator Web ·þÎñÆ÷¿Ø¼þ¿ÉÓÃÓÚÏÔʾÁ´½Óµ½ÆäËûÒ³µÄͼÐΡ£ÒªÏÔʾµÄͼÐÎÁбíºÍ¹ØÁªµÄÄ¿±êÁ´½Ó½«±£ÁôÔÚÊý¾ÝÔ´ÖУ¬Èç XML Îļþ»òÊý¾Ý¿â¡£
1¡¢·½°¸
AdRotator Web ·þÎñÆ÷¿Ø¼þÌṩһÖÖÔÚ ASP.NET ÍøÒ³ÉÏÏÔʾ¹ã¸æµÄ·½·¨¡£¸Ã¿Ø¼þ¿ÉÏÔʾÄúÌṩµÄ .gif Îļþ»òÆäËûͼÐÎͼÏñ¡£µ±Óû§µ¥»÷¹ ......
´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit() {
var ......
CheckBoxÑ¡Ôñ×é¼þÊÇÒ»¸ö³ÌÐòÖж¼¾³£µÄ×é¼þ¡£ÔÚ³ÌÐòÉè¼ÆÖÐʹÓõ½¸Ã×é¼þ£¬Ò»°ã¶¼²»»áֻʹÓõ½Ò»¸ö£¬ÍùÍùÊÇÒÔ¶à¸ö´ËÀà×é¼þµÄÐÎʽ³öÏֵġ£ÔÚASP.NETÒ³ÃæÖÐÈç¹ûҪʹÓõ½¶à¸öCheckBox×é¼þ£¬³ýÁËÌí¼Ó¶à¸öCheckBox×é¼þÔÚÒ³ÃæÖÐÖ®Í⣬»¹ÓÐÒ»ÖֱȽϷ½±ãµÄ·½·¨£¬¾ÍÊÇʹÓÃCheckBoxList ×é¼þ¡£CheckBoxList×é¼þÊÇÓÉÒ»×éµÄCheckBox×é¼þ×é ......
ASP.NETÎļþÏÂÔØº¯ÊýʹÓÃÊÇʲôÇé¿öÄØ£¿ÔÚÄãµÄPage_LoadÖÐÌí¼ÓÕâÑùµÄ´úÂë:
Page.Response.Clear();
bool success = ResponseFile(Page.Request, Page.Response, "Ä¿µÄÎļþÃû³Æ", @"Ô´Îļþ·¾¶", 1024000);
if (!success) Response.Write("ÏÂÔØÎļþ³ö´í£¡"); Page.Response.End();
ASP.NETÎļþÏÂÔØº¯Êý´úÂëΪ:
publi ......
public string NoHTML(string Htmlstring) //È¥³ýHTML±ê¼Ç
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring, @" <script[^>]*?>.*? </script>", "", RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Regex.Replace(Htmlstring, @" <(.[^>]*)>", "", RegexOptions.IgnoreCase); ......