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

asp.net mvc ajax Íⲿjs Òì²½µÝ½» formµÄʵÏÖ

Ò³ÃæÎļþÀàËÆ£º
<% using (Ajax.BeginForm("AjaxUpdate", 123, new AjaxOptions {
Confirm = "confirm str", LoadingElementId = "idLoading", UpdateTargetId
= "textEntered", OnSuccess = "validateForm" },new{id="idMyForm"}))
       { %>
       <%=Html.EditorFor(c=>c) %>
       <span id="textEntered">Nothing Entered
        Result
      </span>
    <% } %>
<input type="button" value="Client Click" onclick="ClientClick(event)" /><br />
    <script type="text/javascript">
        function ClientClick(event) {
            var form = document.getElementById("idMyForm")
            var action = form.getAttribute("onsubmit").toString().replace(/this/ig, "form");
            eval(action)
        }
    </script>


Ïà¹ØÎĵµ£º

Ajax ¿Í»§¶Ë´úÀíµÄ×÷ÓÃ

¿Í»§¶Ë´úÀíµÄ×÷ÓÃ
ÔÚ¶ÔÏóÀï×öÁËÒ»¸ö±ê¼Ç
–“__type” = “ComplexType.Color”
·þÎñÆ÷¶Ë¸ù¾Ý±ê¼ÇÑ¡Ôñ·´ÐòÁл¯µÄÄ¿±êÀàÐÍ
¿É³öÏÖ“¶à̬”Ч¹û
Employee.cs Code£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Secu ......

ajax´«µÝÌØÊâ²ÎÊý

²ÉÓÃAjax´«µÝ²ÎÊý¼ÓºÅ(+)ºÍÓë·ûºÅ(&)ʱºò£¬·þÎñ¶Ë»ñÈ¡µ½µÄ²ÎÊý²¢²»ÈçÒ⣡
(1) "+"ºÅ£ºJavaScript½âÎöΪ×Ö·û´®Á¬½Ó·û£¬ËùÒÔ·þÎñÆ÷¶Ë½ÓÊÕÊý¾Ýʱ"+"»á¶ªÊ§¡£
(2)"&"£ºJavaScript½âÎöΪ±äÁ¿Á¬½Ó·û£¬ËùÒÔ·þÎñÆ÷¶Ë½ÓÊÕÊý¾Ýʱ&·ûºÅÒÔºóµÄÊý¾Ý¶¼»á¶ªÊ§¡£
½â¾ö°ì·¨£ºÔÚ´«µ½·þÎñ¶Ë֮ǰÏȽ«²ÎÊýÖеÄ"+"ºÍ"&"·ûºÅ¶¼± ......

ASP.NET²É¼¯ÏµÍ³ÍòÄÜÕýÔò±í´ïʽ

ÓÉÓÚ¾­³£ÒªÐ´Ò»Ð©²É¼¯µÄ³ÌÐò£¬ÏÂÃæµÄÈý¸öº¯ÊýÊDzɼ¯Öеĺܳ£Óõĺ¯Êý¡£¹ÃÇҽвɼ¯ÏµÍ³ÍòÄÜÕýÔò±í´ïʽ°É¡£
µÚÒ»¸ö£º//»ñÈ¡Ò³ÃæµÄhtmlÔ´Âë
 public  string GetHtmlSource(string Url, string charset)
        {
    & ......

ASP.NETÖ®Èý ASP.NETÊý¾Ý¼°¿Ø¼þ

ASP¡£NETÖй²Óм¸ÖÖÀàÐ͵Ŀؼþ
========================================
Á½ÖÖ£º
1. ¿Í»§¶Ë¿Ø¼þ£¬Ò²¾ÍÊÇÎÒÃÇÔÚHTMLÖо­³£Óõ½µÄ
2. ·þÎñ¶Ë¿Ø¼þ£¬ÀýÈç: <asp:TextBox ID="txt" runat="server" />
¿Í»§¶Ë¿Ø¼þÒ²¿ÉÒÔת³É·þÎñ¶Ë¿Ø¼þ
<input type="text" id="txt" runat="server" />
HTML ºÍ WEB
ASP¡£NET ......

asp.net ·¢ËÍÓʼþ

  ¼¸¸öÔÂÇ°£¬×öÓû§×¢²áÄ£¿éÒªÓõ½·¢ËÍÓʼþ¹¦ÄÜ£¬Ò²Åöµ½ÁËЩ»ò´ó»òСµÄÎÊÌ⣬ÏÖÔÚ×ܽáһϣº
ÎÒÏÈÌù³ö·¢ËÍÓʼþÓõ½µÄ´úÂ룺
public void SendEmail(string stremail, string content,string title)
{
MailMessage mm = new MailMessage();
mm.from = new MailAddress(¹«Ë¾ÓÊÏä) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ