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

ASP.NET Ò³ÃæÖÐ ¹ö¶¯µ±Ç°ÏµÍ³Ê±¼ä

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Admin_Default3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="javascript" type ="text/javascript">
function tick()
 {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today, theday;
today = new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"ÐÇÆÚÈÕ",
"ÐÇÆÚÒ»",
"ÐÇÆÚ¶þ",
"ÐÇÆÚÈý",
"ÐÇÆÚËÄ",
"ÐÇÆÚÎå",
"ÐÇÆÚÁù");
theday = today.getYear()+"Äê" + [today.getMonth()+1]+"ÔÂ" +today.getDate() + d[today.getDay()+1];
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "ÎçÒ¹";
} else if (intHours <12) {
hours = intHours+":";
xfile = "ÉÏÎç";
} else if (intHours == 12) {
hours = "12:";
xfile = "ÕýÎç";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "ÏÂÎç";
}
if (intMinutes <10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = theday+xfile+hours+minutes+seconds;
 var textNode=document.createTextNode(timeString);  //createƴд
   currentElement=document.getElementById("time");
  currentElement.replaceChild(textNode,currentElement.firstChild);
   setTimeout("tick()",1000);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ÎÞ±êÌâÒ³</title>
</head>
<body onload="tick()">
    <form id="form1" runat="server">
    <MARQUEE id="time" scrollA


Ïà¹ØÎĵµ£º

ASP.NETÓëJavaSrcipt½»»¥ÎÊÌâ

1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´Å¥£¬ÔÚºǫ́½«µ÷Óûò´¦ÀíµÄÄÚÈÝдÈëbutton_clickÖÐ;
          2¡¢ÔÚǰ̨дһ¸öjsº¯Êý£¬ÄÚÈÝΪdocument.getElementById("btn1").click();
          3¡¢ÔÚǰ̨»òºóÌ ......

ASP.NET¿çÒ³Ãæ´«Öµ¼¼ÇÉ×ܽá

¹ØÓÚÒ³Ãæ´«ÖµµÄ·½·¨£¬Òý·¢Á˺ܶàÌÖÂÛ¡£1. ʹÓÃQueryString±äÁ¿¡£2. ʹÓÃApplication ¶ÔÏó±äÁ¿¡£4. ʹÓÃCookie¶ÔÏó±äÁ¿¡£Õâ¸ö²Å¿ÉÒÔ˵ÊÇÃæÏó¶ÔÏ󿪷¢ËùʹÓõķ½·¨£¬ÆäʹÓÃServer.Transfer·½·¨°ÑÁ÷³Ì´Óµ±Ç°Ò³ÃæÒýµ¼¡£
¡¡¡¡1.  ʹÓÃQueryString±äÁ¿
¡¡¡¡QueryStringÊÇÒ»Öַdz£¼òµ¥µÄ´«Öµ·½Ê½£¬Ëû¿ÉÒÔ½«´«Ë͵ÄÖµÏÔʾÔÚä¯ ......

ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂëʵÏÖ

´Ë´¦ÌṩµÄ´úÂëÓÃÀ´ÊµÏÖµ±asp.netÒ³ÃæÖеÄij¸öButton±»µã»÷ºódisableµô¸ÃÒ³ÃæÖÐËùÓеÄButton£¬´Ó¶ø·ÀÖ¹Ìá½»ÑÓʱµ¼ÖµĶà´ÎÌá½»¡£»ùÓÚ֮ǰµÄonceclickbutton½Å±¾.
//ASP.NETÖзÀÖ¹Ò³Ãæ¶à´ÎÌá½»µÄ´úÂë:javascript< script language="javascript"> < !-- function disableOtherSubmit()
{
   var obj ......

asp.netÖнâ¾öÒ³Ãæˢкó×ÖÌåµÈ±ä´óµÄÎÊÌâ

½ñÌìÔÚcsdnÉÏ¿´µ½Ò»Æª²©¿Í£¬Êǽ²½â¹ØÓÚ'asp.netÖнâ¾öÒ³Ãæˢкó×ÖÌåµÈ±ä´óÎÊÌâµÄ',¿´ÁËһϣ¬¸Ð¾õдµÄ²»ÊǺÜÏêϸ¡£ÄÇô£¬ÎÒÀûÓÃËûµÄʵÀýÀ´¾ßÌåÁ˽âһϣº
Ô­ÎÄ£º
 
protected void Button1_Click(object sender, EventArgs e)
        {
     &nb ......

ASP.NET SQL ×¢Èë½â¾ö·½°¸

ÈκÎÒ»ÖÖʹÓÃÊý¾Ý¿âweb³ÌÐò£¨µ±È»£¬Ò²°üÀ¨×ÀÃæ³ÌÐò£©¶¼Óб»SQL×¢ÈëµÄ·çÏÕ¡£·ÀÖ¹±»SQL×¢È룬×î»ù±¾µÄ·½·¨ÊÇÔÚ´úÂ뼶±ð¾ÍÒª×èÖ¹ÕâÖÖ¿ÉÄÜ£¬Õâ¸öÍøÉϽ²µÄºÜ¶à£¬ÎҾͲ»¶à˵ÁË¡£²»¹ýÈç¹ûÄãÄõ½µÄÊÇÒ»¸öÒѾ­Í깤µÄ²úÆ·£¬Õâ¸öʱºò¸ÃÈçºÎ½â¾öÄØ£¿ÎÒ½éÉܼ¸ÖÖ¶ÔÓÚASPºÍASP.NETÓÐЧµÄ·ÀÖ¹SQL×¢ÈëµÄ·½°¸£¬¶øÇÒÊÇÃâ·ÑµÄ¡£
UrlScan 3.1
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ