web±à³ÌÖÐJavaScriptºÍC#µÄ½»»¥ÎÊÌ⣿(aspx.net)
ÓÐÈçÏÂÁ½ÎÊÌâ:
1¡¢ <body>ÖÐÓÐÈçÏ´úÂ룬ÁíÍâÔÚÒ³ÖÐÓÐTextBox1¿Ø¼þ£¬µ±confirm¶Ô»°¿òÑ¡ÔñtrueʱTextBox1µÄtextΪTrue,Ñ¡ÔñCancelʱֵΪCancel
<script type="text/javascript">
var result;
result=window.confirm("Are you sure to delete it?")
window.alert(result)
</script>
2¡¢ÔÚpageÉÏÓиöButton1,ÏÖÔÚÏ룺µ±µã»÷Button1ʱ£¬µ¯³öconfirm¶Ô»°¿ò£¬µ±confirm¶Ô»°¿òÑ¡ÔñtrueʱButton1µÄtextΪSuccess,µ±Ñ¡ÔñCancelʱButton1µÄtextΪFailure?ÇëÎÊÔõÑùд?
лл
JScript code:
var DateText = document.getElementById("<%=Button1.ClientID %>").value;
if(confirm('aa£¿'))
{
DateText = "Success";
}
else
{
DateText = "Failure";
}
HTML code:
<asp:Button runat="server" ID="Button1" onclick="return confirm('Are you sure to delete it?')" />
if(confirm('')){
button.value="success";
}else{
button.value="failure";
}
HTML code
Code highlighting produced by Actipro CodeHighlighter (
Ïà¹ØÎÊ´ð£º
Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......
txt ºÍXML ¸ñʽÏàÓ¦
²»½èÖúDataSet
µ¼Èë¶ÁÈ¡TXTÎļþ
È»ºóÖ±½ÓдÈëXML(ͬһÎļþ,²»Í¬Êý¾Ý,µÝÔöÔÊý¾ÝûÓб»¸²¸ÇÇé¿öÏÂÔö¼ÓÊý¾Ý.)
½Ì¸öÒªµã»ò×îºÃÊÇÓиö´úÂëÌáʾµÄ
¹ý·ºÃºº °ï¸öæÈö^^
²»»á£¬°ïÂ¥Ö÷ ......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÓÃjavascript¶¯Ì¬ÊµÏÖÏñÎÒÃÇÕâ¸öÍøÕ¾×ó±ßµÄĿ¼£¬Ð»À²£¡
??
ºÇºÇ£¡Ð»Ð»°¡£¡
¶¥Ò»ÏÂ
ÄãÃÇÊÇÊ²Ã´ÍøÕ¾°¡£¬ÒªÊǺǫ́ÊÇjavaÖ±½Ójsp£¬Èç¹ûºǫ́ÊÇc£¬ÄǾÍÓÃcgiÉú³Éxml£¬js¶¯Ì¬È¥¶ÁxmlµÄÊý¾Ý
Ó ......
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Syst ......