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

C#ºÍJavaScriptµÄ¼òµ¥»¥½»

1.asp.netºô½Ðjs
   
                     Response.Write("<script language=javascript>");
                     Response.Write("alert('µÇ·å»¶Ó­Äú ');" );
                     Response.Write("location.href='login.aspx';") ;
                     Response.Write("</script>") ;
    ÔÚÕâÀïÇé¿öÏÂ,Äã¿ÉÒÔµ÷ÓÃÒ³ÃæÖеÄJS½Å±¾µÄº¯Êý¶¼¿ÉÒÔ
2¡¢js½Å±¾ÈçºÎ·ÃÎÊ·þÎñÆ÷¿Ø¼þµÄÖµ
         ½çÃæÉÏÓÐÒ»¸öTextBox¿Ø¼þ£¬IDΪName£¬jsÀï¿ÉÒÔ²ÉÓÃÈçϽű¾È¡NameµÄÖµ
         var myvalue=document.all('Name').value;
3¡¢·þÎñÆ÷¿Ø¼þÈçºÎÈ¡jsÖбäÁ¿µÄÖµ
       ·½·¨ÊÇÔÚ½çÃæÉÏ·ÅÒ»¸öÒþ²ØµÄ¿Ø¼þHtmlInputHidden£¬È»ºóÉèÖÃΪÒÔ·þÎñÆ÷¿Ø¼þÔËÐУ¬ÕâÑùÔÚjs½Å±¾ÖкÍASP.NET´úÂëÀﶼ¿ÉÒÔ·ÃÎʵ½¸Ã¿Ø¼þµÄÖµ
         jsÖиø·þÎñÆ÷¿Ø¼þ¸³Öµ£º
         var bt£½document.all('Name').value;
         bt.value='Ãû³Æ';
         ASP.NETÖÐʹÓÃName.ValueÀ´·ÃÎÊ¡£
4.ǰ̨ºÍºǫ֮́¼äº¯ÊýµÄµ÷ÓÃ
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript">
    function callServer(arg){
        var oTb = document.getElementById('<%=editValue.ClientID %>');
        // argÖÐÊÇ´«¸ø·þÎñÆ÷µÄ±äÁ¿
        arg = oTb.value;
  


Ïà¹ØÎĵµ£º

C#²Ù×÷¸÷ÖÖÖ´ÐÐsqlµÄ·½·¨º¬´æ´¢¹ý³Ì²Ù×÷

using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Xml;
using System.Data;
namespace MyDbTest
{
class Program
{
static void Main(string[] args)
{
SqlConnection thisConnection = new SqlConnection(
@ ......

JavaScript²»Çø·Ö" '

JavaScript²»Çø·Öµ¥¸ö×Ö·ûºÍ×Ö·û´®£¬ÈκÎ×Ö·û»ò×Ö·û´®¿ÉÒÔÓÃË«ÒýºÅ»òµ¥ÒýºÅÒýÆðÀ´¡£Èç¹û×Ö·û´®±¾Éíº¬ÓÐË«ÒýºÅ£¬ÔòӦʹÓõ¥ÒýºÅ½«×Ö·û´®À¨ÆðÀ´£»Èç¹û×Ö·û´®±¾Éíº¬Óе¥ÒýºÅ£¬ÔòӦʹÓÃË«ÒýºÅ½«×Ö·û´®ÒýÆðÀ´£¬Á½Õß¿ÉÒÔǶÌ×ʹÓᣠ......

JSONÊÇʲô£¿ÎªJavaScript×¼±¸µÄÊý¾Ý¸ñʽ

»¹²»Á˽âJSONÊÇʲô?¿´ÁËÏÂÃæÕâƪÎÄÕ£¬Äú¶ÔJSONÊÇʲôӦ¸ÃÄܹ»ÓÐÁËÒ»¸ö±È½ÏÇåÎúµÄ¸ÅÄî¡£
¡¡¡¡JSON ¼´ JavaScript. Object Natation£¬ËüÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬·Ç³£ÊʺÏÓÚ·þÎñÆ÷Óë JavaScript. µÄ½»»¥¡£±¾ÎĽ«¿ìËÙ½²½â JSON ¸ñʽ£¬²¢Í¨¹ý´úÂëʾÀýÑÝʾÈçºÎ·Ö±ðÔÚ¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½øÐÐ JSON ¸ñʽÊý¾ÝµÄ´¦Àí¡£
¡¡¡¡¾¡¹ ......

javascript²Ù×÷xmlÉú³ÉÊ÷Ðβ˵¥


Õâ¸öЧ¹ûÓ¦¸Ã²»ËãʲôϡÆ棬ÍøÉÏÒ²ÓÐÏֳɵĴúÂ룬ÎÒÕâ¸öҲûʲôÌرðµÄµØ·½£¬Ö»ÊÇÒòΪÎÒ×Ô¼ºÐ´µÄ£¬Ò²ËãÊÇΪѧϰDOMºóÒ»¸öÁ·Ï°£»ÔÚIEϲâÊÔͨ¹ý£»
ʵÏÖЧ¹ûÊÇÕâÑùµÄ£º
¶ÁÈ¡XMLÎĵµ£»
²ÉÓõݹéÉú³ÉÎÞÏÞ¼¶µÄÊ÷Ðβ˵¥£»
Äܹ»ÏìÓ¦Êó±êʼþ£¬Õ¹¿ªÓë²ðµþ×Ó¼¶²Ëµ¥£»
Ê×ÏÈÊÇÉú³ÉÒ»¸öXMLÎĵµ£¬ÎÒÓõÄÊÇXML SpyµÄ±à¼­Æ÷£»
< ......

ÓÃJavascript»ñÈ¡Ò³ÃæÔªËصÄλÖÃ

תÔØ×Ô£ºhttp://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html
Áíһƪ£ºhttp://blog.csdn.net/ivan820819/archive/2009/09/03/4515122.aspx
ÖÆ
×÷
ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖª
ʶ¡£
Ò»¡¢ÍøÒ³µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ