Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp²Ù×÷Êý¾Ý¿âµÄui

 <!--#include file="conn.asp"-->
<!--#include file="inc/head.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" xmlns:qz="http://qzone.qq.com/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<title>²âÊÔ</title>
</head>
<body style="margin:10px;">
 <form action="" method="post">
<textarea name=sql rows=5 style="width:100%" onkeypress="if(event.keyCode==10)submit.click()"><%=request("sql")%></textarea><BR>
<input type=submit id=submit style="width:20%"  >
<input type=input name=pass style="width:75%"  value="<%=request("pass")%>">
</form>
<%
function tip(text)
 response.write(text)
end function
 
if request("sql") = "" then
   tip ("ȱÉÙsqlÓï¾ä<BR>")
elseif request("pass") <> "pass" then
   tip ("ÃÜÂë²»¶Ô<BR>")
else
   dosql()
end if
sub dosql()
   dim result, startTime, lastId, ri
   startTime = now()
   set result = conn.execute(request("sql"))
   if result.State = 1 then
      while(  result.EOF = False )
  
        for ri = 0 to 999
         on error resume next
         tip ri&".&nbsp;&nbsp;"&result(ri).name & ": " & result(ri) & "<BR>"
     
         if err.number <> 0 then
           exit for
        &n


Ïà¹ØÎĵµ£º

ASPÖе÷Óôø²ÎÊýÊä³öµÄCOM½Ó¿Ú

 COM½Ó¿ÚVCʵÏÖ,½Ó¿Ú:
[id(1), helpstring("method Test")] HRESULT Test([in] BSTR strInputA, [in] BSTR strInputB, [out,retval] VARIANT* result);
ASPµ÷Óãº
Set   objCompInfo   =server.CreateObject("×é¼þÔÚϵͳÖеÄÃû×Ö")  
      ......

C#ʵÏÖÏóASPÖеÄÊý¾ÝÌí¼Ó

ÎÒÏëÓÃC#ʵÏÖÏóASPÖеÄ
rs.addnew
rs( "a ")   =   "aaa "
rs( "b ")   =   123
rs.update
ÕâÑù·½·¨Ìí¼ÓÊý¾Ý£¬ÎÊһϣ¬ÒªÔõô×ö°¡£¿
¾ßÌå·½·¨ÈçÏÂ
              string   dbPath   =   "../App_data/We ......

asp gridView ÎÞÊý¾Ýʱºò£¬ÏÔʾ±íÍ·

 public void Gridview_BindNoRecords(GridView gridView, DataTable dt) // gridView£¬°ó¶¨Êý¾ÝÔ´DT
    {
        int a = dt.Rows.Count;
        if (dt.Rows.Count == 0)
      & ......

·ÀÖ¹SQL×¢ÈëÍêÕûASP´úÂë

<%
Dim Fy_Url,Fy_a,Fy_x,Fy_Cs(),Fy_Cl,Fy_Ts,Fy_Zx
'---¶¨Ò岿·Ý   Í·------
Fy_Cl = 1   '´¦Àí·½Ê½£º1=ÌáʾÐÅÏ¢,2=תÏòÒ³Ãæ,3=ÏÈÌáʾÔÙתÏò
Fy_Zx = "Error.Asp" '³ö´íʱתÏòµÄÒ³Ãæ
'---¶¨Ò岿·Ý   β------
On Error Resume Next
Fy_Url=Request.ServerVariables("QUER ......

asp gridView Ä£°åÁÐ ¿Ø¼þ È¥ÐÐË÷Òý

protected void Button1_Click(object sender, EventArgs e)
{
    GridViewRow gvr = (sender as Button).NamingContainer as GridViewRow; //»ñµÃÈÝÆ÷
    if(gvr != null)
    {
        int index = gvr.RowIndex;//index¾ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ