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

javascriptÈçºÎµ÷ÓÃasp.net´ø²ÎÊýµÄº¯Êý

ºǫ́£º
  protected void form_ini2(string id)
  {
  //´¦Àí´úÂë
  }
ǰ̨£º
 <script language="javascript">
 function DbClickEvent(a)  
  {  
  //ÔÚ´Ë´¦ÈçºÎµ÷ÓÃasp.netÖеÄform_ini2£¬²¢°Ñ²ÎÊý´«¹ýÈ¥¡£Ò²¾ÍÊÇÉÏÃæµÄ¹ý³Ì¡£
  }  

  </script>
<%=%>
»òÕ߰󶨱í´ïʽ

asp.net2.0Ò³Ãæͨ¹ýICallbackEventHandler½Ó¿ÚʵÏÖAjax 
ºÃÏóÒ²ÐÐ

Çë¸÷λ¸ø´úÂë

´«²ÎÊý¿Ï¶¨ÊÇÒªÓÃajax

$.AJAX({type:"post",url:"Äãºǫ́·½·¨ËùÔÚÒ³Ãæ",data:"Yourdata:²ÎÊý",succeed:function(data){//data¾ÍÊÇ·µ»ØµÄº¯Êý}})

ºǫ́µÄreturn ¸ÄΪresponse.write(·µ»ØÊýÖµ,¾ÍÊÇÄãsucceedÀïÃæµÄdata)

ÇëÒýÈëjquery

using System.Web.Services;
.....
[WebMethod]
public static void form_ini2(string id) 
{
//
}

js:

PageMethods.form_ini2(id,__Fun1, __Callback);

¿ÉÒÔÓÃAjaxPro¼¼Êõ£¬ÕâÀàÎÊÌâºÜºÃ½â¾ö¡£¾ßÌå¿ÉÒÔÈ¥°Ù¶È»ò½øȺÎÊÎÒ88098260 ÎÏÅ£

<script runat="server">
  protected void btnok_client(object send, EventArgs e)
  {
  this.Label1.Text = "³É¹¦";
  }
  </script>

ÕâÑùд¿ÉÒÔ

JScript code



Code highlighting produced by Actipro CodeHighlighter (f


Ïà¹ØÎÊ´ð£º

ÇëÎÊASP.NETÖÐdllÔõôÐ޸ģ¿


 °ÑÒµÎñ²ãµÄ¶¼Ð´ÔÚdllÎļþÖÐÁË£¬ÏÖÔÚÏëÒªÐ޸ģ¬´ó¼Ò¶¼ÓÃʲô¹¤¾ß´ò¿ª£¿
 ÓÃvisual studio×Ô´øµÄ ildasm¿ÉÒÔÂð£¿
ÆÚ´ý¸ßÊÖ

LZºÃÀ÷º¦

Ó÷´±àÒëÈí¼þ

ÎÒÓÃReflectorÖ»ÄÜ¿´£¬²»Äܸİ¡£¿

ÓÐÃ ......

[50·Ö]asp.net¼¶±ðURLÖØд-ÁéÒìʼþ

VB.NET code:

'Global.asax
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
'ÔÚÓ¦ÓóÌÐòÆô¶¯Ê±ÔËÐеĴúÂë
Dim RequestUrl As String = HttpContext.Current.Requ ......

asp.net°ÙÍò¼¶Êý¾Ý·ÖÒ³ºÃ·½·¨

asp.net°ÙÍò¼¶Êý¾Ý·ÖÒ³ÓÃʲô·½·¨µÄ£¬ÊÔ¹ýaspnetpager¿ØÄ꣬³¬¹ýÊ®Íò¶¼ÂýµÃ²»ÐУ¬ºǫ́Êý¾Ý¿âÊÇsqlserver2000£¬²»ÏëÓý¨Á¢´¢´æ¹ý³ÌµÄ·½Ê½£¬Çë´ó¼ÒÖ¸µãÒ»¶þ.
²»ÏëÓý¨Á¢´¢´æ¹ý³ÌµÄ·½Ê½£¿
ÎÞÓïÁË

ÄǾÍ×Ô¼ºÆ´SQLÁË ......

ÐÂÈËjavascriptÎÊÌâÇóÖú£¬Çë¸÷λ´ó¸ç´ó½ãÃÇÀ´°ï棡

ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......

ÔõôÓÃjavascript¿ØÖÆgridviewÀïµÄRadioButton

ÔõôÓÃjavascript¿ØÖÆgridviewÀïµÄRadioButton
¶Ô gridview  findcontrol ,ÕÒ³öRadioButton£¬
È»ºó£¬¶ÔRadioButton £¬µÄAttribute Ôö¼Ó JS¾Í¿ÉÒÔÁË¡£


C# code:
for (int i = 0; i < gd ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ