asp.net ÎÞ·¨±£´æ±äÁ¿µÄÖµ - .NET¼¼Êõ / ASP.NET
ÎÒµÄÒ³ÃæÓиögridviewÊǸöÓÃÀ´²éѯµÄÒ³Ã棬´Ó±ðµÄÒ³Ãæ´«»ØÀ´µÄ±äÁ¿ÈçÏ if not me.ispostback then sqlstr = request.querystring("sqlstr") tablename = request.querystrng("tablename") end if ÕâÊÇÒ³ÃæµÚÒ»±»µ÷ÓÃʱ´«À´µÄ±äÁ¿ ¿ÉÊÇÎÒÔÚµãÁËgridviewÀïµÄɾ³ý°´Å¥È¥µôÓÃÕâЩ±äÁ¿ÊÇ£¬¸ú×Ù·¢ÏÖÕâÁ½¸ö±äÁ¿sqlstr,tablenameÒѾÊÇ¿ÕÖµÁË¡£ Ôõô»ØÊ°¡£¿£¿ÓÐûÓнâ¾ö°ì·¨£¿
È¥µôif not me.ispostbackÊÔÊÔ¡£ if not me.ispostback then sqlstr = request.querystring("sqlstr") tablename = request.querystrng("tablename") end if \ ¿´ÄãµÄ±äÁ¿ÔÚÄĶ¨ÒåµÄ¡£ »òÕßÄãÖ±½ÓÔÚµ÷ÓõÄʱºòÖ±½ÓÓÃPage.request.querystring("sqlstr")¶ø²»ÓñäÁ¿ÒýÓà ºÇºÇ£¬Â¥Ö÷»¹²»Àí½âasp.net³ÌÐòµÄÁ÷³Ì£¬Ã¿´ÎÓзþÎñÆ÷ʼþ£¬¾Í»á»Ø·¢£¨Ï൱ÓÚÌá½»Ò³Ã棩µ½ºǫ́£¬¾¹ý´¦Àíºó£¬Éú³ÉеÄÒ³Ã棨×ÔÈ»¾Í½«ËùÓбäÁ¿¸´Î»ÁË£©ÔÙ·µ»Ø¿Í»§¶Ë¡£ Òª±£´æ±äÁ¿µÄÖµ£¬¿ÉÒÔÓÃViewState£¬±ÈÈçÉÏÃæµÄ´úÂë¸Äд³É£º if not me.ispostback then ViewState["sqlstr"] = request.querystring("sqlstr") ¡¡ ÕâÖÖ¿ÉÒÔ£¿ÊÔÊÔ¿´ ²»ÓÃviewstateµÄ£¬ÄãµÄÖµ²»ÊÇÔÚquerystringÀïÃæÂֻ²»¹ý²»Òª¼ÓÉÏpostbackµÄ²âÊÔ£¬°ÑifÅжÏÈ¥µô£¬Èà sqlstr = request.querystring("sqlstr") tablename = request.querystrng("tablename") ÿ´Î¶¼Ö´ÐУ¬¾ÍÓÐÖµÁË¡£ ѧϰ¡·¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£ {{----
Ïà¹ØÎÊ´ð£º
C# code: SqlConnection conn = CsDB.sqlcon(); SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ ÊìϤasp.net ÊìϤjavascript ÊìϤCss ÊìϤajax ÊìϤsqlserver2005 ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé ¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË ÓÐÒâÕßÁªÏµ£º QQ:359233910 ÒýÓà ±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ ÊìϤasp ......
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл ajax_http.js ------------- function getXMLHTTP() { var xmlhttp; if (window.ActiveXObject) { //IE try { ......
ÎÒ×î½ü×öÁËÒ»¸öÍøÕ¾ÊǹØÓÚ²úƷչʾµÄ ~ Õû¸öÍøվͼƬ¶¼Õ¼ÓÃÁËÒ»´ó°ë ÕâÑùµÄ»°·ÃÎÊËٶȾͷdz£Âý ÓÐʲô°ì·¨¿ÉÒÔ½â¾öÂ𣿠Âé·³´ó¼Ò¶à¶à¸øµãÒâ¼û £¡ ÓÐʲô¾¡¹Ü˵ 3Q´ó¼Ò htmlÒ³Ãæ. Õâ¸ö,¼ÈÈ»Ö÷Ò ......