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(),
Ïà¹ØÎÊ´ð£º
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔضԻ°¿ò£¿
PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿
Response.Redirect("test.jpg")
ÒýÓÃ
Response.Redirect( ......
½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡
¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡
Ö±½ÓÖ´ÐоÍÐÐÁË
exec ......
¹ØÓÚasp.net md5 32λ¼ÓÃܽâÃÜ
ÓÐûÓÐÈË¿ÉÒÔд¸öÀà¡£
²¢Ïêϸ½âÊÍһϣ¬±¾È˺ܲ»Àí½â32λmd5
C# code:
public string md5(string str,int code)
2{
3 if(code==16) //16λMD5¼ÓÃÜ£¨È¡32λ¼ÓÃܵÄ9~25× ......