質問編集履歴
2
追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -29,4 +29,38 @@
|
|
29
29
|
|
30
30
|
初心者のため、うまく質問できなくてすみません。
|
31
31
|
アドバイスいただけますとうれしいです
|
32
|
-
よろしくお願いいたします。
|
32
|
+
よろしくお願いいたします。
|
33
|
+
|
34
|
+
追記
|
35
|
+
ありがとうございます。
|
36
|
+
ソースを下のように変更したのですがうまくいきません…
|
37
|
+
何が原因でしょうか・・・?すみません。
|
38
|
+
```C#
|
39
|
+
|
40
|
+
|
41
|
+
public void makeHtml(string alertKey,string fileName)
|
42
|
+
{
|
43
|
+
//テキストファイルを作成
|
44
|
+
System.IO.StreamWriter sw = new System.IO.StreamWriter(
|
45
|
+
@"C:\test\fileName.html",
|
46
|
+
false,
|
47
|
+
System.Text.Encoding.GetEncoding("shift_jis"));
|
48
|
+
|
49
|
+
|
50
|
+
WeatherHtmlSystem whs = new WeatherHtmlSystem();
|
51
|
+
|
52
|
+
string tblname = "test";
|
53
|
+
|
54
|
+
using (DataSet ds = whs.GetTestList(tblname,alertKey))
|
55
|
+
{ ..................................
|
56
|
+
|
57
|
+
|
58
|
+
↓もう1つのファイルです↓
|
59
|
+
|
60
|
+
public DataSet GetTestList(string strTableName,string alert_key,string fileName)←追加しました
|
61
|
+
{
|
62
|
+
DBAccess dba = new DBAccess();
|
63
|
+
DataSet ds = new DataSet();
|
64
|
+
|
65
|
+
StringBuilder sql = new StringBuilder()............................
|
66
|
+
```
|
1
goji
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
こんにちわ
|
2
2
|
|
3
|
-
|
3
|
+
vs2010
|
4
4
|
.NetFramework4.6
|
5
5
|
C#で、プログラムを書いています。
|
6
6
|
データベースから値をとってきてHTMLに出力するものです。
|