jquery ÖÐʵÏÖ ajax - .NET¼¼Êõ / ASP.NET
¸÷λ´óÏÀ£¬°ï°ïæ¡£±¾È˶ÔjqueryÊÇÒ»Çϲ»Í¨¡£µ«ÊÇÓиö¹¦ÄܱØÐëÒªÓõ½¡£ÏÖÔÚѧΪʱÒÑÍí¡£Ö»ºÃ»Æ°ÁË¡£»µ½ÕâÀﻲ»ÏÂÈ¥ÁË¡£´ó¼Ò°ï°ï棻
´ó¸ÅÊÇÕâÑùµÄ¡£ÎÒÓÐÒ»¸öºÍÅжÏÓû§´æÔÚÒ»ÃþÒ»ÑùµÄ¹¦ÄÜ¡£Ö»ÊÇÎÒÓÐÒ»¸ö²ã¡£Èç¹ûÓû§´æÔڲ㲻ÏÔʾ¡£Óû§²»´æÔÚ²ãÏÔʾ£¬ÆäËûÒѾ×öºÃÁË¡£ÏÖÔھͲîÎÒÔõÑùÓÃifÅжϲãµÄÏÔʾºÍÒþ²ØÁË¡£ ´ÓÎÒÔõÑù¶¨ÒåÒ»¸ö±äÁ¿½ÓÊÕºǫ́´«¹ýÀ´µÄÖµ¡£ºǫ́ÊÇÕâÑùµÄ¡£
string userName = Request.QueryString["userName"].ToString();
AccountsInfo acc= AccountsInfoManager.getAccountsInfoByeRegAccounts(userName);
//ÓöÔÏó½ÓÊÕµÄ.
ÎÒ´òjqueryÕâÑùÓñäÁ¿½ÓÊÕ.ÎÒÕæµÄ²»¶®.¼±ÒªÓÃ.ÖªµÀµÄ°ï°ïæ.ллÁË.
ÏÂÃæµÄjqueryÖеĴúÂë
$.ajax({
type:"GET",
url:"Default2.aspx",
dataType:"html",
data:"userName="+$("#txtName").val()});
ºǫ́
C# code:
if(acc != null) //¸ù¾ÝÄã×Ô¼ºµÄÅжÏÒÀ¾ÝÐÞ¸Ä
{
Response.Write("true");
}
else
{
Response.Write("false");
}
ǰ̨
JScript code:
$.ajax({
type : "post",
url : "Default.aspx",
data : "userName="+$("#txtName").val(),
Ïà¹ØÎÊ´ð£º
function CheckOpwd(){//ÑéÖ¤Óû§Ãû
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
<script language="javascript">
var XMLHttpReq;
var cont=true;
//´´½¨XMLHttpRequest¶ÔÏó
function createXMLHttpRequest ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøվͼƬ¶¼Õ¼ÓÃÁËÒ»´ó°ë
ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂð£¿
Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵
3Q´ó¼Ò
htmlÒ³Ãæ.
Õâ¸ö,¼ÈÈ»Ö÷Ò ......
ÄÄλÄܸø¸öasp.net webformÊ×Ò³µÄÀý×Ó£¬
ÒªÇó£º
1¡¢Ê¹ÓÃframe¿ò¼ÜÒ³
2¡¢frame×ó²àΪtreeviewµ¼º½
Asp.netÖÐFramesetµÄʹÓÃ
http://blog.csdn.net/liangjingbo/archive/2006/10/19/1341423.aspx
ͬÒâÂ¥ÉÏ ......
asp.netÖе±²»Í¬µØ·½µÄÓû§´ò¿ªÍøҳʱÔõôÔÚÎı¾¿òÖÐÏÔʾËûµÄËùÔÚµØ,¾ÍÏñÉêÇëQQʱ£¬Ñ¡ÔñËùÔÚµØÒ»Ñù.
¸ù¾ÝIPµØÖ·Åжϣ¬ÍøÉÏÓиù¾ÝIP·µ»ØµØÇøµÄWebserivce£¬µ÷ÓþͿÉÒÔÁË
ÒýÓÃ
¸ù¾ÝIPµØÖ·Åжϣ¬ÍøÉÏÓиù¾ÝIP·µ»Øµ ......