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

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


Ïà¹ØÎĵµ£º

asp.netÖÐÌáÈ¡×Ö·û´®ÖÐËù°üº¬µÄÖÐÎÄ

ÒÔǰûÓÐÓöµ½£¬½ñÌìÒÔǰͬÊÂÎÊÕâ¸öÎÊÌ⣬Õû³öÀ´×öΪÊղؠ  
Ö±½ÓÌù´úÂë:
protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write(SenFe_Replace("³ÁÏÂÐÄÈ¥×öºÃÿһ¼þÊÂ_2010_2_1_asp.net_ÄãÒ»¶¨ÐÐ"));
  & ......

ÓÃjavascriptʵÏÖ×Óҳˢи¸Ò³µÄ¿Ø¼þ

1 Add  the following code to .aspx
<script>  
  function fresh() {
         {
            window.opener.document.getElementById("ControlId").click();  //ControlId -- ......

Javascriptѧϰ±Ê¼ÇÖ®×÷ÓÃÓò

ÔÚJavascriptÖÐ×÷ÓÃÓòÊÇÓɺ¯Êý»®·ÖµÄ¡£
//ÉèÖÃÈ«¾Ö±äÁ¿foo
var foo = "test";
if(true){
var foo = "new foo";
}
//´ËʱfooΪ"new test"
alert(foo == "new foo");
function test(){
var foo = "old test";
}
//µ÷ÓÃʱ£¬fooÖ»ÔÚº¯Êý×÷ÓÃÓòÄÚÆð×÷ÓÃ
test();
//foo»¹ÊǵÈÓÚ"new test"
alert(foo == "new te ......

ÇÉÓÃjavascript»ñµÃÏÂÔØµØÖ·


ͻȻ¼äÏëÈ¥ÏÂÊ×fire in the holeµÄÁåÉù£¬ÓÚÊÇÓÃsosoÕÒÁËһϣ¬½øÈëÁËÊÖ»úÀÖÔ° £¨http://download.shouji.com.cn/do/wave?html=&inputname=wave&wname=Fire+in+the+hole+&thsubmit=%E6%90%9C%E7%B4%A2£©£¬Ñ¡Ôñfire in the hole£¬µ¯³ö¸ö´°¿Ú£¬ÌáʾÈÃÊäÈëÊÖ»úºÅÂë¡£ÔÎËÀ£¬²»¾ÍÏÂÊ׸èÂ»¹²»ÈÃÖ±½ÓÏ¡£ºÇºÇ£¬·¢Ï ......

asp.net »Øµ÷¼¼Êõ

¿´ÁË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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ