asp.net³£ÓõÄjavascript¾µäÀý×Ó
×Ô¼ºÔÚ¿ª·¢ÖÐÅöµ½µÄ+ÁËһЩÔÚÍøÉÏËѵ½µÄ¡£¡£ºÍ´ó¼Ò·ÖÏíÏ¡£
DropdownlistÎÞˢеÄÀý×Ó¡£xml.
ÀýÈçÎı¾ÑéÖ¤!
ÏÂÃæÊÇÒ»¸öµ¥Ñ¡°´Å¦Ç°Ì¨²»Ë¢ÐµÄÀý×Ó.ÓкõľÍÍùÉÏÌù
<mce:script language="javascript"><!--
function SetButton()
{
if(document.all.rdoByHuman.checked==true)
{
document.all.cboHrPut.disabled = "";
document.all.cboAnswerHr.disabled = "";
document.all.cboGroup.disabled = true;
}
if(document.all.rdoByGroup.checked==true)
{
document.all.cboHrPut.disabled = true;
document.all.cboAnswerHr.disabled = true;
document.all.cboGroup.disabled = "";
}
}
// --></mce:script>
<asp:RadioButton id="rdoByHuman" onclick="SetButton();" runat="server" GroupName="TotalGroup" Checked="True" Text="°´ÈËÔ±"></asp:RadioButton>
e.Item.Attributes.Add("onmouseOver","this.style.backgroundColor='#dee3e7'");//Êó±êÒÆÉÏÈ¥µÄÑÕÉ«
e.Item.Attributes.Add("onmouseOut","this.style.backgroundColor='white'");
e.Item.Cells[2].Attributes.Add("onmouseOver","this.style.backgroundColor='red'");
e.Item.Cells[2].Attributes.Add("onmouseOut","this.style.backgroundColor='white'");//Ö¸¶¨Ä³ÁеÄÑÕÉ«
e.Item.Cells[3].Style["cursor"]="hand";
e.Item.Cells[4].Attributes.Add("onclick","alert('Äãµë¼ÇµÄID ÊÇ£º"+e.Item.Cells[4].Text+"');");//Ö¸¶¨ÏÔʾ×Ö¶Î
e.Item.Cells[1].Attributes.Add("title","'ºìº¢ÊÇδ½â¾öµÄ£¬À¶¾«ÁéÊÇÒѽâ¾öµÄ£¡'"+e.Item.Cells[0].Text.ToString());//ÏÔʾtitle
e.Item.Cells[0].Attributes.Add("onclick","window.open('xinxiForm.aspx?idmain="+e.Item.Cells[0].Text+"','','ToolBar=no,width=260,height=200');");
ÆÁ±ÕһЩ¼ü£º
function KeyDown(){ //ÆÁ±ÎÊó±êÓÒ¼ü¡¢Ctrl+n¡¢shift+F10¡¢F5ˢС¢Í˸ñ¼ü
//alert("ASCII´úÂëÊÇ£º"+event.keyCode);
if ((window.event.altKey)&&
((window.event.keyCode==37)|| //ÆÁ±Î Alt+ ·½Ïò¼ü ←
(window.event.keyCode==39))){ //ÆÁ±Î Alt+ ·½Ïò¼ü →
a
Ïà¹ØÎĵµ£º
ÒýÓõØÖ·£ºhttp://bbs.syue.com/thread-36034-1-1.html
Ö±½ÓÔÚieµØÖ·À¸ÊäÈëÃüÁ»Ø³µ£¬Ö´ÐÐjs¡£
ÕâÑùÒ²¿ÉÒÔÓÃÀ´¸Ä±äºÍ»ñÈ¡ÔªËØµÄÖµºÍÊôÐÔ,ºÜʵÓõġ£
²é¿´cookie
javascript:alert(document.cookie)
Ö±½Ó±à¼cookie
javascript:document.cookie=window.prompt("Linx Edit cookie:",document.cookie);void( ......
JavaScriptÖеÄ5ÖÖʼþʹÓ÷½Ê½½â˵(ת)
Ϊ×é¼þÌṩʼþ´¦ÀíÈë¿Ú£¬¿ÉÒÔ¼«´óµÄÌá¸ß×é¼þµÄ·â±ÕÐÔ£¬Í¬Ê±ÓÖÄÜÈÃ×é¼þºÜºÃµÄºÍÍâ½çͨÐÅ¡£²¢ÇÒÕâÒ²ÊÇÎÒÃÇÒѾϰ¹ßʹÓõÄÒ»ÖÖ¿ª·¢Ä£Ê½£¬.NET¡¢DHTMLµÈ¶¼ÌṩÁËÒ»Ì×ÍêÕûµÄʼþ´¦ÀíÄ£ÐÍ¡£ÏÂÃæÊǹØÓÚʹÓÃDHTMLÖÐʼþµÄÒ»¸ö×ܽᡣ
DHTMLÌṩÁË3ÖÖʼþµÄÊ¹Ó ......
·½·¨1:
Response.Cookies["username"].Value="gjy";
Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);
·½·¨2:
System.Web.HttpCookie newcookie=new HttpCookie("username");
newcookie.Value="gjy";
newcookie.Expires=DateTime.Now.AddDays(1);
Response.AppendCookie(newcookie);
´´½¨´ø ......
¼Æ»®ÍƳöµÄ¡¶ASP.NETʵս±Ê¼Ç¡·£¬Ìá¸ÙÈçÏ£º µÚһƪ µäÐ͵ÄÍøÕ¾¼Ü¹¹½â¾ö·½°¸
µÚ1Õ ϵͳĿ±ê
1.1 ÐèÇó·ÖÎö
1.2 ϵͳĿ±ê
µÚ2Õ ϵͳ¹¦ÄÜÔ¤ÀÀ
2.1 Óû§¹ÜÀí
2.1.1. ......
¿´ÁËasp.net µÄ»Øµ÷¼¼Êõºó²»ÊǺÜÀí½â¡£»¹ÊǰÑдµÄ¶«Î÷ÌùÏ£¬×Ô¼ºÒÔºóѧϰʱºò¶à¿´¿´¡£Ç°Ì¨index.aspxÒ³<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default" %>
<%@ Import Namespace = "System.Text" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit ......