notpad++ 畫面
notepad++ 很好用
可是有時候 內建的文件切換器會跑掉,沒辦法貼在最右邊

bgm 發表在 痞客邦 留言(0) 人氣()

安裝KB3102810的更新檔之後就可以正常更新了

這個更新檔是在修更新卡住的Bug



64位元

32位元



官方支援文件(英文)

bgm 發表在 痞客邦 留言(0) 人氣()

使用模擬器時,透過微軟遠端連線 會因為OpenGL無法開啟 
只時需要寫一個Batch(cmd)檔

bgm 發表在 痞客邦 留言(0) 人氣()

家裡因為有地下室 1樓 3樓 4樓
如果要用無線網路的話
需要能漫游
解決方法是將AP設定為同一個SSID

bgm 發表在 痞客邦 留言(0) 人氣()

 
用表格顯示 數字資料時,常會有表格欄位不夠寬 而自已斷行的情況
如下例
 

bgm 發表在 痞客邦 留言(0) 人氣()

SAP GUI常用快捷鍵
轉至 https://blogold.chinaunix.net/u1/40527/showart_2221844.html
F1:幫助
F2:雙擊。比如TC行的雙擊,LIST行的雙擊等
F3:後退(Back),後退按鈕
Shift+F3:退出(Exit),退出按鈕
F4:搜索幫助
F8:執行
F10:菜單
F12:取消(Cancel)
 
F5:創建
F6:修改
F7:顯示 <--以上三個在SE38、SE24、SE11等ABAP工作台用到的比較多
 
Ctrl+F1:修改<->查看
Ctrl+F3:激活
Ctrl+F:查找
Ctrl+P:打印
Ctrl+Y:選擇TC、ALV等的多行數據
Ctrl+,:註釋程序塊
Ctrl+.:取消註釋
Ctrl+;:創建SAP登錄快捷方式
Ctrl+/:設置輸入點到CommandField
 
Shift+F5:其他對象(Other object)

bgm 發表在 痞客邦 留言(0) 人氣()


今天去抽牙齒的神經
用了1小時,現在半個臉還是麻麻的
不知道麻藥退了會多痛啊

bgm 發表在 痞客邦 留言(0) 人氣()

UltraEdit
使用reg取代
例如想把
https://www.wowbox.tw/item.php?witem=12345
取代為
https://www.bbb.com/x.o?i=12345

bgm 發表在 痞客邦 留言(16) 人氣()

MSN Messenger通訊埠功能 
連線功能 通訊協定 通訊埠號碼 
一般連線 TCP 1863 
語音通訊 UDP 6901 
檔案傳送 TCP 6891?6900 
遠端協助 TCP 3389 
應用程式/白板分享 TCP 7800?7825 
即時影音通訊 TCP 5100 
MSN Messenger 
訊息傳遞 TCP port 1863 
檔案傳輸 TCP port 6891 – 6900 
語音傳輸 TCP、UDP port 6901 
MSN port 
訊息:1863 
傳檔:6891-6900 
語音:6901 
ICQ通訊埠功能 
連線功能 通訊協定 通訊埠號碼 
登入ICQ伺服器 UDP 4000 或 
登入ICQ伺服器 TCP 5190 
一般連線 TCP 1024?65535 
ICQ 
UDP port 4000 - outbound 
TCP port 20000 – 20019, inbound for first user 
TCP port 20000 – 20039, inbound for second user 
Incremental for other users 
其他通訊埠功能 
連線功能 通訊協定 通訊埠號碼 
傳送E-MAIL TCP 25 
接收E-MAIL TCP 110 
傳送聊天室/ TCP HTTP:80/81?83 HTTP:443 
網路呼叫器等資料 SOCKS:1080/3128/8080/8088/11523 
HTTP TCP 80 
FTP TCP 20&21 
TELNET TCP 23 
YAHOO UDP 5050 
PCANYWHERE TCP 5631&5632

bgm 發表在 痞客邦 留言(0) 人氣()

從網路上找來的 經常需要在數據庫與Execl之間互導數據。net時代,ADO.NET可以使用使用Microsoft.Jet.OleDb訪問訪問Excel,網上已經有很多類似的資源,最典型也是最簡單的可能如下:(asp.net環境)
// 連接字符串           
        string xlsPath = Server.MapPath("~/app_data/somefile.xls"); // 絕對物理路徑
        string connStr = "Provider=Microsoft.Jet.OLEDB.4.0;" +
                        "Extended Properties=Excel 8.0;" +
                        "data source=" + xlsPath;
        // 查詢語句
        string sql = "SELECT * FROM [Sheet1$]";
        DataSet ds = new DataSet();
        OleDbDataAdapter da = new OleDbDataAdapter(sql, connStr);
        da.Fill(ds);    // 填充DataSet       
        // 在這裡對DataSet中的數據進行操作       

bgm 發表在 痞客邦 留言(0) 人氣()

因為專案需要,開發網頁輸入程式
其中有檢查同個名稱為slColumn的select 
用document.main.slColumn.length檢查
在多個slColumn下,上述方法會檢查出正確的名稱為slColumn數量
但是只有一個slColumn,document.main.slColumn.length 會等於document.main.slColumn.options.length

bgm 發表在 痞客邦 留言(0) 人氣()

藍色小舖
https://www.blueshop.com.tw/board/show.asp?subcde=BRD20020307142601RJ7&fumcde=FUM200410061525290EW&rplcnt=15
下面說明,因為include 為SEVER SIDE SSI語法,所以前後的if、select判斷式都不會執行
https://www.learnasp.com/freebook/asp/inc.aspx
Include FilesThe include option is the heart of making efficient ASP files and re-usable chunks. It basically 
has two forms and now we will present the forms and their differences:
<!--#include virtual="/whatever.asp"-->
would include any file on your site (in this example, whatever.asp is in the web server's root directory) 
but you must fully qualify the filename with a path.
<!--#include file="whatever.asp"-->
can include the whatever.asp file in  the directory of the script that contains the statement. 
It ASSUMES the current directory!
Example #1
<!--#include virtual="/sally/filename.asp"-->
could include a file from sally's directory, even if the page with this statement is (for example) 
in the /fred/finance folder.
Example #2:
<!--#include file="/sally/filename.asp"-->
will fail from fred's directory.
Example #3:
<!--#include file="../sally/filename.asp"-->
will succed from fred's directory but if the script that contains it is moved to a different level in the tree structure 
it will fail to locate the file. INCLUDE VIRTUAL is better if a script may be moved and is immune to relative path issues.

IMPORTANT: Include files are always processed and inserted before ASP scripts on the page are calculated. Thus a page with many IFs and SELECT CASEs that selectively include files in fact always include the file before the script begins executing.
請參考下面的動態載入方式

Includes Files Dynamically

The include files are gathered and processed BEFORE any ASP code. Soif your code looks like this:

<%SELECT CASE
     CASE 1 %>
    <!--#include virtual="whatever1.asp"-->
     CASE 2 %>

    <!--#include virtual="whatever2.asp"-->
     CASE 3 %>
    <!--#include virtual="whatever3.asp"-->
<%END SELECT%>

Three includes are performed before any ASP code is executed.

YOU CANNOT DO:

<%
     whichfile="1"%>
  <!--#include virtual="whatever<%=whichfil%>.asp"-->

Though this is a reasonable idea.

<!--#include virtual="whatever.asp"-->

We however have coded a workaround that is FREE you may find useful. The workaround is:

   filename=/learn/test/includedynamic.asp

<Test Script Below>

<html><head>
<TITLE>includedynamic.asp</TITLE>
</head><body bgcolor="#FFFFFF">
<%
whichfile="bookscifi.asp"
Call ReadDisplayFile(whichfile)
response.write "<hr>"

whichfile="bookhorror.asp"
Call ReadDisplayFile(whichfile)
response.write "<hr>"


whichfile="/learn/test/bookmarketing.asp"
Call ReadDisplayFile(whichfile)
response.write "<hr>"
%>

</body></html>
<%
SUB ReadDisplayFile(FileToRead)
whichfile=server.mappath(FileToRead)
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(whichfile, 1, False)
tempSTR=thisfile.readall
response.write tempSTR
thisfile.Close
set thisfile=nothing
set fs=nothing
END SUB
%>

 

 

The only downside to this method is no ASP Code ( i.e. anything in <% %> ) will be parsed or executed in the included file. If you must execute ASP code the Win2k server.execute @
/freebook/asp/incwin2k.aspx
or the 3rd party components like ASPHTTP must be employed @
/learn/include/asphttp.asp

Includes - Other Sites/Dynamic FileNames

3rd party components like ASPHTTP can grab the HTML contents of a specific URL into an ASP string. Supports GET/POST/HEAD documents via the HTTP protocol, examining response headers, transfering requests to a file (including binary transfers) and password authentication support. They can also be used on YOUR OWN SITE to make dynamic includes possible.

available at https://www.serverobjects.com/products.htm

Microsoft includes WinInet which seems to be ideally suited for this EXCEPT is currently not thread safe, see:
https://www.learnasp.com/advice/threadsafe.asp
so Tools like ASPHTTP are a necessity.

Here is a sample where ASPHTTP is used to grab contents from another site.

   filename=/learn/test/asphttpother.asp

<Test Script Below>

<html><head>
<title>asphttpother.asp</title>
</head>
<body>
<%
Set HttpObj = Server.CreateObject("AspHTTP.Conn")

HttpObj.Url = "https://www.funinspace.com"
strResult = HttpObj.GetURL

STRresult=server.htmlencode(STRresult)
response.write STRresult

SET HTTPobj = nothing
%>
</body>
</html>


 

 

Here is a sample where ASPHTTP is used to allow a string to decide  which page on our site is executed.

   filename=/learn/test/asphttpdynamic.asp

<Test Script Below>

<html><head>
<title>asphttpdynamic.asp</title>
</head>
<body bgcolor="#FFFFFF">
<%
mystring="/learn/test/response.asp"

Set HttpObj = Server.CreateObject("AspHTTP.Conn")
HttpObj.Url = "https://www.learnasp.com" & mystring
strResult = HttpObj.GetURL
response.write STRresult

SET HTTPobj = nothing
%>
</body>
</html>

或是下面網址的方式
https://www.asp101.com/articles/michael/dynamicincludes/default.asp

Dynamic Include Files

by Michael Qualls

Introduction

This is an advanced example and it assumes that you are already familiar with HTML, ASP,
and using ActiveX Objects. In it I use the FileSystemObject and TextStream Objects to create
"dynamic" includes.

Dynamic Include Files

I think that at one time or another all of us have attempted to create dynamic include files
in our ASP applications only to find out that it would not work. The usual approach was to
use a variable to hold the name of the file that you wanted to include and then pass the
name of that variable to the include directive.

Let us be clear: The following code will not work:

<%
'A variable is declared to hold a file name
Dim MyFile

'The desired file name is passed to the variable.
MyFile = Request("SomeFileName")

'Then the variable holding the file name is passed
'to the include directive.
%>
<!--#include file=<%=MyFile%>-->

The reason that this code listing will not work is because in Active Server Pages the include
directives are resolved before the server-side script portions are processed.
The above code listing will trigger a nasty error telling you that the include file cannot be found.

One of the reasons to use an include file is to be a container for static HTML
that does not normally change (such as a standard header or footer).
This file is then referenced using a normal include directive. However, sometimes,
different content is needed based upon user input or some other condition.
Rather than create an entirely different web page for each and every possible condition,
the idea of using "dynamic include" files was born. However, as noted in the code listing above,
the most logical way to implement this idea does not work.

In order to get around this problem, the Microsoft FileSystemObject Object can be used to load
and pass the content of the desired include file into a string variable which can be inserted into
the page that is being sent to the client. The following function, "getFileContents",
aids in this process by loading a file that is passed to the function as an input parameter and
returning its contents as a string.

<%

'Pass the name of the file to the function.
Function getFileContents(strIncludeFile)
Dim objFSO
Dim objText
Dim strPage


'Instantiate the FileSystemObject Object.
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")


'Open the file and pass it to a TextStream Object (objText). The
'"MapPath" function of the Server Object is used to get the
'physical path for the file.
Set objText = objFSO.OpenTextFile(Server.MapPath(strIncludeFile))


'Read and return the contents of the file as a string.
getFileContents = objText.ReadAll

objText.Close
Set objText = Nothing
Set objFSO = Nothing
End Function
%>

Using this function "dynamic include" files can be achieved. First, the main page
(a template file containing the page layout and any static content) would be loaded and passed
to a string variable. Then, the contents of the include file would be loaded and passed to a string variable.
Finally, the variable containing the contents of the include file would be inserted into
the contents of the variable containing the main page.

Example: Dynamic Include Files

First, lets take a look at the "template" file. In this listing, there is an HTML comment,
"<!-- INCLUDE FILE HERE -->". We will replace this HTML comment with the content of the include file.

<html>
<body>
<h2>Welcome to my web page!</h2>
<table width="500" border="1">
<tr>
<td>
<!-- INCLUDE FILE HERE -->
</td>
</tr>
</table>
</body>
</html>

Now, lets look at the include files that will be used for this example. The first include file is the
default include file. The default include file is a form that allows the client to choose which of three
include files to load. Notice that the "action" attribute of the form is omitted. This is because when
the form will be submitting to itself (causing "dynamicinc3.asp" to reload).

<!-- BEGIN DEFAULT INCLUDE -->
<form method="post">
<h3>Select the name of the file you wish to load</h3>
<p>
<select id=cboFile name=cboFile>
<option value="includefile1.inc">File #1</option>
<option value="includefile2.inc">File #2</option>
<option value="includefile3.inc">File #3</option>
</select>
<input type="submit" value="Submit">
</p>
</form>
<!-- END DEFAULT INCLUDE -->

For the sake of this example, the content of the other three include files has been kept very simple.

<!-- BEGIN INCLUDE FILE #1 -->
<h2 style="color:red">FILE #1 CONTENTS</h2>
<br>
<a href="dynamicinc3.asp">Return to default page</a>
<!-- END INCLUDE FILE #1 -->
<!-- BEGIN INCLUDE FILE #2 -->
<h2 style="color:green">FILE #2 CONTENTS</h2>
<br>
<a href="dynamicinc3.asp">Return to default page</a>
<!-- END INCLUDE FILE #2 -->
<!-- BEGIN INCLUDE FILE #3 -->
<h2 style="color:blue">FILE #3 CONTENTS</h2>
<br>
<a href="dynamicinc3.asp">Return to default page</a>
<!-- END INCLUDE FILE #3 -->

Finally, consider the ASP file that makes the whole example run, "dynamicinc3.asp".

<%

'-------------------------------------------------------------
'The "getFileContents" function should be included at the top
'of the ASP file.
'-------------------------------------------------------------

'Declare variables to hold the content of the main page and
'the include file.
Dim strMain, strInclude

'Get the contents of the main page and pass them to the "strMain"
'variable.
strMain = getFileContents("maintemplate.inc")

'Test to see if the "cboFile" select box is being submitted. If so,
'load the requested include file. If not, load the default include.
If Request.form("cboFile") = "" Then
strInclude = getFileContents("includedefault.inc")
Else
strInclude = getFileContents(Request.form("cboFile"))
End If

'After the proper include file contents are loaded ("strInclude"),
'then insert it into the main page ("strMain") using the "Replace"
'function.
strMain = replace(strMain,"<!-- INCLUDE FILE HERE -->",strInclude)

'Use the "Response" Object to "Write" the completed page to the client.
Response.Write strMain

%>

This sample works, and, in effect, creates the ability to use dynamic include files because it does
not use the include directive. Instead this example uses the FileSystemObject Object.

This technique can be useful if you wish to keep your layout separated from your content.
You can create a template which contains the layout for your website and include files which
contain the content of the website. Then using ASP, you can combine the two for client viewing.
This is exactly the way that I put my website together!

Let me give you one last thing to think about. How would using techniques similar to this aid you
if you are storing your data in XML files?

Related Links


bgm 發表在 痞客邦 留言(0) 人氣()

1 2 3 4 5
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。