為調試Crystal Report功能,臨時建了一個Crystal Report網站(Vs2010, Windows2008, IIS7,基於.NET 4.0),當需要Attach Process 進行調試時遇到了一個錯誤: "Breakpoint will not currently be hit. No symbols loaded for this document." 如果直接F5進行調試則會成功進入Breakpoint,但Attach Process就會hit不到。
Command.asp <% Dim conn,cmd Set conn=Server.CreateObject("ADODB.Connection") conn.Open "Provider=SQLOleDb.1;Data Source=(local);User ID=sa;Password=;Initial Catalog=Pubs" Set cmd=Server.CreateObject("ADODB.Command") '-----Command 對象的屬性-----
Recordset.asp <% Response.Buffer=true Dim conn Set conn=Server.CreateObject("ADODB.Connection") conn.Open "Provider=SQLOleDb.1;Data Source=(local);User ID=sa;Password=;Initial Catalog=Pubs" Dim rs Set rs=Server.CreateObject("ADODB.RecordSet") '---
剛剛在洗衣服的時候突然想到今天在做WAP程式的表單驗證的時候遇到一個問題,在不支援Cookies的行動裝置模擬器中無法正常進行表單驗證,聯想到昨天使用web.config設定cookieless屬性時會在訪問時會出現"Cannot use a leading .. to exit above the top directory"的異常,自然而然的我就想到了前一段時間困擾我很久的一個網站異常無法使用前置 .. 在頂級目錄上退出(Cannot use a leading .. to exit
在asp.net中,有的時候要動態變換CSS,比如有的時候做個人化頁面,可以這樣做<head><link id="MyStyleSheet" rel="stylesheet" type="text/css" runat="server" /></head>之後,在要更換CSS的頁面中,使用如下代碼Sub Page_Load(Sender As Object, E As EventArgs) If Not (IsPostBack)