<%@language="vbscript"%>
<%option explicit%>
<html>
<head> <title>xxx </title> </head>
<script language=vbs>
'×¢Òâ±äÁ¿¶¨ÒåÔÚÕâÀï¸ù±¾Ã»Óã¡ÎªÊ²Ã´ÄØ£¿£¿
xx="bg2.jpg"
</script>
<body> ......
×Ö¶Î:selite
|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42
×Ö¶ÎÏÂÃæµÄÊÇÄÚÈÝ.
ÎÒÏëͨ¹ýÔÚ²éѯµÄʱºò.È¡ | ºóÃæµÄ×îºóÒ»ÄÚÈÝ.ÆäËüµÄÈ¥µô.²»ÂÛÇ°ÃæÓжàÉÙÄÚÈÝ
»¹ÓÐÇóÒ»¸öº¯Êý¿ÉÒÔÈ¡Ö¸¶¨Î»ÖüǼ
ÏÈллÁ ......
HTML code:
<%
Response.Buffer = TRUE
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "content-disposition", "inline; filename = "¿Í»§ÐÅÏ¢±í.xls"
%>
ÎÒÓÃÉÏÃæÕâÖÖ·½·¨µ¼³öEXCEL±í¸ñ,ΪʲôֻÄܵ ......
ÕâÀïÊÇGridView°ó¶¨µÄÒ»¸öÄ£°å, ÎÒÏëͨ¹ýÕâÀïµÄ "²é¿´ÏêÇé", Ìøתµ½Ò»¸ö°üº¬DetailsView
µÄÒ³Ãæ. È»ºó¾Í»áÏÔʾÏàÓ¦µÄÐÅÏ¢.
°üº¬DetailsViewµÄÒ³Ãæ¸ù¾ÝIDÖµ°ó¶¨Êý¾Ý
°üº¬GridViewµÄÒ³ÃæµÄµÚÒ»ÁÐÊÇID,ÒѾÒþ²Ø.
HTML code:
<asp:TemplateField HeaderText="ÐÞ¸ÄÓû§">
......
dim idi=request.QueryString("id")
set rs=server.createobject("adodb.recordset")
rs.open"select * from fang where id=194",conn,1,1
%>
ÎÒÕâ¸ö²éѯÈçºÎд°¡
<%
dim idi=request.QueryString("id")
set rs=s ......