¹ØÓÚasp.netºǫ́ȡǰ̨jsµÄÖµµÄÎÊÌâ
ÎÊÌâÊÇÕâÑùµÄ£¬Ôõô·¢²»ÁËÌû×Ó°¡
<script type="text/javascript">
window.onload = function()
{ var P = window.parent, D = P.loadinndlg();
document.getElementById("hf").value=P.custom;
lert(P.custom)
}
</script>
<div align="left">
<input type="text" id="t1"/> <asp:HiddenField ID="hf" runat="server"/>
</div>
×ŶÎÊÇhtmlµÄ´úÂ룬¾ÍÊÇǰ̨jsµÄÎÒÔÚºǫ́ҪµÃµ½P.customÕâ¸öjs±äÁ¿µÄÖµ
Îҵĺǫ́ҳÃæ´úÂëÊÇÕâÑùµÄC# code:
string me = hf.Value;
// string me =t1.Value
ÏÖÔÚµÄÎÊÌâÊÇÕâÑùµÄ£¬Èç¹ûÎÒÓÃÔÚjsÀï±ßÓÃt1document.getElementById("t1").value=P.custom; ÄÇôҳÃæʱÉÏÄÜÏÔʾ³öÀ´ÎÒÒªµÄÖµ£¬µ«ÊÇÎÒºǫ́ÕÒ²»µ½t1£¬
Èç¹ûÎÒÔÚjsÀï±ßÓÃt1document.getElementById("hf").value=P.custom; ÄÇôhfµÃ²»µ½jsµÄ±äÁ¿Öµ£¬µ«ÊÇÎÒºǫ́¿ÉÒÔÕÒµ½hf
Çë¸ßÈËÖ¸µãÏ£¬ÎªÊ²Ã´»áÕâÑù°¡£¬ÎÒ¸ÃÔõô×ö°¡
<script type="text/javascript">
window.onload = function()
{ var P = window.parent, D = P.loadinndlg();
document.getElementById
Ïà¹ØÎÊ´ð£º
ллÁË£¬¸ßÊÖÃÇ¿ìÀ´°¡~
¹À¼Æû²å¼þʲôµÄ²»Ðаɡ£
ÎÒÒ²Òª лл¸÷λ·¢ÎÒÒ»·Ýliujintaohfbb@163.com
ллÁË Ò»¶¨Òª·¢ÎÒ°¡
¶÷ÕÒµ½ÁË,±ðÍüÁ˶
401533349@163.com
http://download.csdn.n ......
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
¸÷λ¸ßÊÖ£ºÐ»Ð»ÁË£¬ºÜ¼±²»ÖªÔõÑù½â¾ö
¿ÉÒÔÀûÓÃJS+XML
ÔÚºǫ́·¢²¼µÄʱºò£¬²åÈëÒ»¸ö·ÖÒ³·û
ÏÔʾµÄʱºò¸ù¾ÝÕâ¸ö·ÖÒ³·û½øÐзÖÒ³¡£
²åÈëÒ»¸ö·ÖÒ³·û Õâ¸ö·½·¨ºÜºÃ
ʹÓ÷ÖÒ³¿Ø¼þ¡£
лл¸÷λÁËÒѾ½â¾öÁË£ºh ......
ÎÒÔÚ Page_Load ÀïдÁË
if(!IsPostBack){
GridView1.DataSource=GroupManager.GetGroups();//GetGroups ·µ»ØµÄÊÇ IList<Group>
GridView1.DataBind();
}
¿ÉÎÒÔÚ Submit_Click Àïд´ú ......