asp.netÖд´½¨table±í¸ñ
ÒýÓÃusing System.Web.UI.HtmlControls;
ǰ̨µÄ<table id="mytab" border="1" runat="server" class="t1" width="600">
</table>
ºǫ́³õʼ»¯
HtmlTableRow row = new HtmlTableRow();
HtmlTableCell cell = new HtmlTableCell();
cell.InnerText = “ÐÂÆ·”;
row.Cells.Add(cell);
mytab.Rows.Add(row);
Ïà¹ØÎĵµ£º
(Ò»).Ñ¡Ôñ»á»°×´Ì¬´æ´¢·½Ê½
ÔÚWebconfigÎļþÅäÖÃ:
<sessionState mode="???" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;Trusted_Connection=y ......
¹ØÓÚÊý¾Ý´¦ÀíÏà¹ØµÄÓÅ»¯
Ò»¡¢ SqlDataReadºÍDatasetµÄÑ¡Ôñ
SqldatareadÓŵ㣺¶ÁÈ¡Êý¾Ý·Ç³£¿ì¡£Èç¹û¶Ô·µ»ØµÄÊý¾Ý²»Ðè×ö´óÁ¿´¦ÀíµÄÇé¿öÏ£ ......
1.
ClientScript.RegisterStartupScript(this.GetType(), "js1", "alert('ɾ³ý³É¹¦');window.location='QuerySortList.aspx';", true);
2.
this.cmdSave.Attributes.Add("onclick", "return f_StringCheck()"); ......
1. Éú³ÉaspnetµÄȨÏÞÊý¾Ý±íºÍsp£¬Ê¹ÓÃ.net 2.0µÄÃüÁîÈçÏ£º
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regsql -W
ʹÓÃ-W²ÎÊýµ÷³öÁ¬½ÓÊý¾Ý¿âÏòµ¼£¬¸ù¾ÝÏòµ¼Éú³ÉÊý¾Ý¿âÊý¾Ý¡£
2. ÔÚweb.config¸ü¸ÄÑéÖ¤·½Ê½²¢Ìí¼Óproviders
<configuration>
<connectionStrings>
<add name="dbConn ......
ÕâÀïÎÒֻժȡÁËÔÎĵÄCodeÒÔ¹©Ç±ÐÄÑо¿.using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Configuration;
using System.Data.SqlClient;
using System.Web.Security;
using System.Data;
public ......