Çë½ÌC#Ö´ÐÐajaxµ÷Óõķ½·¨ - .NET¼¼Êõ / C#
ÐèҪдһ¸öwinformÈí¼þ£¬Ï£Íûµ÷ÓÃhttps://sms.api.bz/µÄ½Ó¿ÚʵÏÖ×Ô¶¯·ÉÐŶÌÐÅ£¬ÇëÎÊÔÚwinformÀïÔõô´¦Àíajax£¿
°üÀ¨·¢ÆðajaxÇëÇ󣬴¦ÀíresponseµÈ¡£
ÁíÍ⣬XMLHttpRequest½ûÖ¹ÁË¿çÓòÃûµÄÇëÇ󣬲»ÖªµÀÔÚwinformÏÂÕâ¸öÎÊÌâ¸ÃÈçºÎ´¦Àí£¿
¶àл~~~
×Ô¼º¶¥Ò»ÏÂ~~
C# code:
/*
//ÈçÓÐÊý¾Ý×¥×î³ö´í¼ÓÉÏ
Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
SettingsSection section = (SettingsSection)config.GetSection("system.net/settings");
section.HttpWebRequest.UseUnsafeHeaderParsing = true;
config.Save();
*/
»òÕßÔÚ.configÖмÓÈë
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
ºÍÉÏÃæÈí¼þÉú³ÉµÄ´úÂëÒ»Ñù
ÄÇÔõôÔÙwinformµÄ³ÌÐòÖз¢ÆðajaxÇëÇóÄØ£¿
winformÖ±½ÓPOSTÊý¾Ý£¡
×¥¹Ø¼üPOSTµÄÊý¾Ý£¡
Ïà¹ØÎÊ´ð£º
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
......
ÎÒ¸Õ°ÑÌ·ºÆÇ¿µÄµÚÈý°æµÄÊéѧÍ꣬ÎÒÖªµÀµÄÓÐC++£¬CºÍÖ¸Õë CȱÏݺÍÏÝÚå Cר¼Ò±ä³É£¬»¹ÓÐÊý¾Ý½á¹¹£¬ÎÒÏëÎÊÎÊÎÒÓ¦¸ÃÒÔʲô˳ÐòÀ´Ñ§ÄØ
CȱÏݺÍÏÝÚå Cר¼Ò±à³Ì
Êǽø½×µÄ£¬²»Óü±×Å¿´
ÖÁÓÚ
CºÍÖ¸Õë
Äã²»Àí½âÖ ......
A±í ÓÐÁ½¸ö×Ö¶Î
id ΨһÊý×ÖÓò
InfoTxt text ÀàÐÍ
ÎÒÏÖÔÚÒª°Ñ id ²»ÊÇ14 µÄËùÓÐ InfoTxt×ֶΠÎı¾ºóÃæ ¶¼¼ÓÉÏ 'aaa'
°´ÏÂÃæÖ´ÐÐÏÂÀ´ Ö»Óбí×îºóÒ»ÐмÓÉÏÁË 'aaa' ......
ÔÚAccessµÄ²éѯÖÐÖ´ÐÐÏÂÃæµÄÓï¾ä,ÎÞЧ,ÌáʾÆÚ´ýselect ,updata ,...
CreateTble C=Answer N="»ØÌû±í"
(
C=ID T="INTEGER" P=No M=No N="񅧏" Z=false,
C=Ques ......