|
Web service and sql server
|
|||
---|---|---|---|
#18+
Помогите новичку! У меня есть property: public class Result { private String _id=""; public string krek{ get { return _id; } set { _id= value; SqlConnection myConnection = new SqlConnection("server=(local);database=TestDB;Trusted_Connection=yes"); SqlDataAdapter myCommand = new SqlDataAdapter("select * from ABC", myConnection); DataSet ds= new DataSet(); myCommand.Fill(ds, "ABT"); } } } Как мне написать WebMethod, который бы обращался к этому property и в xml показывал данные из таблицы. Спасибо! ... |
|||
:
Нравится:
Не нравится:
|
|||
29.08.2006, 13:50 |
|
Web service and sql server
|
|||
---|---|---|---|
#18+
remoting? ... |
|||
:
Нравится:
Не нравится:
|
|||
29.08.2006, 14:40 |
|
Web service and sql server
|
|||
---|---|---|---|
#18+
[WebMethod] И нужно в WebMethod вызвать это property, a я не знаю как? ... |
|||
:
Нравится:
Не нравится:
|
|||
29.08.2006, 14:57 |
|
|
start [/forum/search_topic.php?author=m4za&author_mode=last_topics&do_search=1]: |
0ms |
get settings: |
9ms |
get forum list: |
12ms |
get settings: |
9ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
169ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
others: | 602ms |
total: | 879ms |
0 / 0 |