asp.netģ̬´°¿ÚʹÓÃ
1 ÈçºÎÔÚÌá½»ºó·ÀÖ¹µ¯³öд°¿Ú
2 ÔÚģ̬´°¿ÚÖÐÔٴε¯³öģ̬´°¿Ú
3 ģ̬´°¿Ú·µ»ØÖµ
4 ˢи¸´°¿Ú
5 ¸¸´°¿ÚÈçºÎÌí¼Óˢнű¾
Ö÷´°¿Úµ¯³öÒ»¸öģ̬´°¿Ú,
var firstDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:300px;dialogHeight:400px");
×¢:ÔÚurlÎļþµÄhead¼ÓÈë <base target='_self'> ¾Í¿ÉÒÔÌí¼ÓÍêÒ»ÌõÄÚÈݺó,¼ÌÐøÌí¼Ó.¶ø²»»áÔÙµ¯³öÒ»¸öģ̬´°¿Ú.
ÔÚfirstDiag´°¿ÚÖÐÔÙµ¯³öÒ»¸öģ̬´°¿Ú
function opendialogwin2(url)
{
var l;
l=(window.screen.width-400)/2;
var t;
t=(window.screen.height-400)/2;
// o dialogHeight: sHeight
// o dialogLeft: sXpos
// o dialogTop: sYpos
// o dialogWidth: sWidth
// o center: ( yes | no | 1 | 0 | on | off )
// o dialogHide: ( yes | no | 1 | 0 | on | off )
// o edge: ( sunken | raised )
// o help: ( yes | no | 1 | 0 | on | off )
// o resizable: ( yes | no | 1 | 0 | on | off )
// o scroll: ( yes | no | 1 | 0 | on | off )
// o status: ( yes | no | 1 | 0 | on | off )
var secondDiag = window.showModalDialog(url,window,"center:yes;dialogWidth:50px;dialogHeight=50px;edge:raised");
form1.txt_gzsj.value=secondDiag; //½ÓÊÕÑ¡ÔñµÄÖµ
}
<form id="form1" runat="server">
<div>
<div id="retu"&g
Ïà¹ØÎĵµ£º
<%%>ÊÇÔÚ³ÊÏÖÒ³ÃæµÄ¹ý³ÌÖÐÖ´ÐеķþÎñÆ÷´úÂ룬°üÀ¨·½·¨£¬±äÁ¿£¬Ò»°ãÊÇǶÈëʽ·þÎñÆ÷´úÂëд·¨£¬²»ÊʺϷÖÀëģʽ¡£
<%=%>ÊÇÔÚ³ÊÏÖÒ³ÃæµÄ¹ý³ÌÖÐÖ´ÐеķþÎñÆ÷´úÂ룬Ö÷ÒªÊDZäÁ¿µÄÖµ¡£
<%#%>¿É°üÀ¨±äÁ¿£¬±í´ïʽ£¬»òÕßµ÷Ó÷½·¨·µ»ØµÄÖµ£¬µ«±ØÐëµÄ±£Ö¤Õâ¶Î´úÂëλÓÚ
°ó¶¨¿Ø¼þµÄÄÚ²¿£¬ÒòΪֻÓе±°ó¶¨¿Ø¼þÔÚÖ´ÐÐD ......
DataGridView 72¼Æ
±¾ÎĽ«½éÉÜASP.NETÖÐDataGridViewµÄÓ÷¨,DataGridViewÔÚAsp.netÖÐÊdz£ÓõĿؼþÖ®Ò»£¬ÕÆÎÕºÃDataGridViewµÄÌØµãºÍÓ÷¨¡£½«¶Ô³ÌÐòµÄÐÔÄÜÓдó´óµÄÌá¸ß£¬Í¬Ê±Ò²ÄܼӿìÎÒÃÇÏîÄ¿µÄ¿ª·¢ÖÜÆÚ£¡
¿ìËÙÔ¤ÀÀ£º
GridViewÎÞ´úÂë·ÖÒ³ÅÅÐò
GridViewÑ¡ÖУ¬±à¼£¬È¡Ïû£¬É¾³ý
GridViewÕý·´Ë«ÏòÅÅÐò
GridViewºÍÏÂÀ²Ëµ¥ ......
ÔÚasp.netÖе¼³öexcel ÖбȽÏͨÐеÄ×ö·¨ÊÇ: Response.ContentType = "application/vnd.ms-excel";
È»ºóÖ±½ÓÏòÀïÃæÈÓ html µÄtable
µ«ÊÇÓÐÖÐÎĵÄʱºò ÀϳöÏÖÂÒÂ룬Óкܶà½â¾ö·½°¸£¬µ«¶¼²»ÄÜͨÅ̽â¾ö, ¾ÍÊÇÔÚ Êä³öhtmlÁ½Í·Êä³ö
Response.Write("<html><head><meta http-equiv=Content-Type conte ......
URL ÖØÐ´ÊǽØÈ¡´«Èë Web ÇëÇó²¢×Ô¶¯½«ÇëÇóÖØ¶¨Ïòµ½ÆäËû URL µÄ¹ý³Ì¡£
±ÈÈçä¯ÀÀÆ÷·¢À´ÇëÇóhostname/101.aspx £¬·þÎñÆ÷×Ô¶¯½«Õâ¸öÇëÇóÖж¨ÏòΪhttp://hostname/list.aspx?id=101¡£
urlÖØÐ´µÄÓŵãÔÚÓÚ£º
Ëõ¶Ìurl£¬Òþ²ØÊµ¼Ê·¾¶Ìá¸ß°²È«ÐÔ
Ò×ÓÚÓû§¼ÇÒäºÍ¼ ......
js code //Ö÷Òª¹¦ÄÜÊÇʵÏÖ¸´Ñ¡¿òµÄȫѡÔñ¸ú·Çȫѡ
<script type="text/javascript" defer="defer">
function OnTreeNodeChecked() {
var ele = event.srcElement;
&nbs ......