aspÈçºÎ½ØÈ¡×Ö·û´®? - Web ¿ª·¢ / ASP
±ÈÈç ¸´Ñ¡¿ò»ñÈ¡³öÀ´µÄÖµÊÇ 12,13,14
ÎÒÒªÕâÑù½ØÈ¡²ÅÄÜʹ id=12 || id =13 || id=14ÁË ?
VBScript code:
s = "12,13,14"
a = Split(s,",")
s=""
For i = 0 To UBound(a)
s = s & "id=" & a(i) & "||"
Next
s=Left(s,Len(s)-2)
ASP¸´Ñ¡¿òÑ¡³öÀ´µÄÖµ£¬ÎҼǵÃĬÈÏÅÅÁÐÊÇ£º
ÖµA, ÖµB, ÖµC, ....
ÿ¸öÖµ¶¼ÊÇÓÃÒ»¸öÓ¢ÎĶººÅºÍÒ»¸ö¿Õ¸ñÀ´Çø·ÖµÄ£º,
ËùÒÔÄã¿ÉÒÔÓÃsplitº¯Êý°ÑÕâЩֵÓÃ, ·Ö¿ªÈ»ºó×°µ½Êý×éÀïÃæÈ»ºóÒ»¸öÒ»¸öÌáÈ¡³öÀ´
ºÃµÄ лл
³õѧasp...
Ïà¹ØÎÊ´ð£º
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
¾ÍÊÇÀàËÆÒÔÉϵÄÔÚÏß²âÊÔϵͳ£¬ÐèÒªÓÐÒ»¸öºǫ́µÄ£¬ÓïÑÔÊÇaspµÄ£¬Êý¾Ý¿âÊÇaccessµÄ£¬»¹ÐèÒªÄÜÔÚºǫ́¶ÔÐÅÏ¢½øÐÐÌíɾ¸Ä²éµÄ¡£Ð»Ð»¸÷λÁË¡£¡£¡£
³ÌÐòÕæµÄºÜ¶à£¬²»Öª ......
ÔÚaspÀïÔõôµ÷ÓÃjavaдµÄwebservice·½·¨£¬Óкܶ෽·¨
- <message name="RtPnrIn">
<part name="bstrPnrNO" type="s:string" />
<part name ......
aspÐéÄâÖ÷»úʵÏÖα¾²Ì¬µÄ·½·¨£º
1¡¢ ÖØÐ´url²ÎÊý
Step1: ½¨Á¢Ç°Ì¨Îļþindex.asp£¬ÐÞ¸Äurl²ÎÊýÐÎʽ¡£ÓÉÓÚ¶ÁÈ¡Êý¾Ý¿âÖеļǼ²»ÊÇרÌâµÄÖØµã£¬¹ÊÖ±½Ó¸ø³ö:
<!--#include file="config.asp" -->
&l ......
C# code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.InteropServices;
nam ......
ÏÖÓÐÒ»¸ö±í¸ñ£¬ÓкܶàÐÐÊý×é¡£
ÏëÒªÒ»¸ö½Å±¾£¬¶ÁÈ¡ËùÓÐÐеÄÊý×éºóÊä³ö¡£
Êä³öǰ²»ÏÔʾÕý³£Ë³ÐòµÄ±í¸ñÊý×飬¶øÖ±½ÓÏÔʾ³ö¶ÁÈ¡ºóµÄÊý×é¡£
Â¥Ö÷µÄ±í´ïʵÔÚ³ÉÎÊÌ⣡£¡
ÊDz»ÊÇÕâ¸öÒâ˼£¿
<%
Dim ArrDNA£¨10£¬10£ ......