[ASP]¶¯Ì¬°ó¶¨Êý¾ÝÔ´µÄGridViewÌí¼ÓÐÐ £¨¼¼Êõ±¸·Ý£©
GridView Ϊ¶¯Ì¬°ó¶¨ DataSet£¬½á¹û (DataSet)dt = grid1.DataSource Äò»µ½¶«Î÷£¬Ïë͵ÀÁÖ±½ÓÌí¼ÓÐв»ÐÐÁË£¬ Ö»ºÃÓÃ×µÄ°ì·¨£¬°ÑGridViewµÄ¶«Î÷µ¹³ÉDataSet£¬È»ºóÔÚDataSetÀï¼ÓÐУ¬×îºó»Ø°ógridview
tryÀïÃæµÄ
DataTable dtable = new DataTable("tb1");
DataSet ndtset = new DataSet();
for (int i = 0; i < GridView2.HeaderRow.Cells.Count; i++)
{
dtable.Columns.Add(GridView2.HeaderRow.Cells[i].Text.ToString());
}
for (int j = 0; j < GridView2.Rows.Count; j++)
{
DataRow ndr = dtable.NewRow();
for (int c = 0; c < GridView2.Rows[j].Cells.Count; c++)
{
if (GridView2.Rows[j].Cells[c].HasControls())
{
Ïà¹ØÎĵµ£º
<%
If Request.ServerVariables("HTTP_REFERER")<>"" Then
tmpstr=Request.ServerVariables("HTTP_REFERER")
Else
tmpstr="index.htm"
End If
response.Redirect(tmpstr)
%>
´úÂë½âÊÍ£º
Request.ServerVariables("HTTP_REFERER")ÊÇ»ñÈ¡ÉÏÒ ......
<%
Call RemoveAllCache()
Sub RemoveAllCache()
Dim cachelist,i
Call InnerHtml("UpdateInfo","<b>¿ªÊ¼Ö´ÐÐÇåÀíµ±Ç°Õ¾µã»º´æ</b>£º")
Cachelist=split(GetallCache(),",")
If UBound(cachelist)>1 Then
For i=0 to UBound(cachelist)-1
DelCahe Cachelist(i)
Call InnerHtml("UpdateInf ......
Function WriteToUTF(content,sFilen)'contentÎªÌæ»»ºóµÄ×Ö·û´®,filenameΪÉú³ÉµÄÎļþÃû
dim objStream
Set objStream = Server.CreateObject("ADODB.Stream")
With objStream
.Open
&nb ......
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñé£¬Ìø¹ýÒÔÏÂÕâÁ½²½£º
µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ¡£NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó£¨OO£©ÓïÑÔµÄǰÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇÒ»¸öÈ«ÃæÏò¶ÔÏóµÄ¼¼Êõ£¬²»¶®OO£¬ÄǾø¶Ôѧ²»ÏÂÈ¥£¡
µÚ¶þ²½¡¡¶Ô¡£NET FrameworkÀà¿âÓÐÒ»¶¨µÄÁ˽⠿ÉÒÔͨ¹ý¿ª·¢Windows FormÓ¦ÓóÌÐòÀ´Ñ ......