Click here to Skip to main content
15,891,423 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Multiple events on post-back Pin
AumSingh14-Apr-09 3:16
professionalAumSingh14-Apr-09 3:16 
AnswerRe: Multiple events on post-back Pin
Yusuf14-Apr-09 12:58
Yusuf14-Apr-09 12:58 
QuestionProblem with ImageButton,Textbox position!! Pin
Sr...Frank14-Apr-09 0:58
Sr...Frank14-Apr-09 0:58 
AnswerRe: Problem with ImageButton,Textbox position!! Pin
Abhijit Jana14-Apr-09 1:39
professionalAbhijit Jana14-Apr-09 1:39 
GeneralRe: Problem with ImageButton,Textbox position!! [modified] Pin
Sr...Frank14-Apr-09 2:02
Sr...Frank14-Apr-09 2:02 
QuestionHow I can convert code in submit button code to a WebMethod in WebService? Pin
Saba0214-Apr-09 0:17
Saba0214-Apr-09 0:17 
AnswerRe: How I can convert code in submit button code to a WebMethod in WebService? Pin
Abhijit Jana14-Apr-09 1:45
professionalAbhijit Jana14-Apr-09 1:45 
GeneralRe: How I can convert code in submit button code to a WebMethod in WebService? [modified] Pin
Saba0214-Apr-09 2:20
Saba0214-Apr-09 2:20 
Thank you,

i have a web service for my project that i connect to data base with it.
i don't have problem with creating web service,but i couldn't create a function for this code.

How i can return result and use it in my application?

when i use dataset i returned dataset:

<webmethode()>
Public Function getusers() as DataSet
dim da as new sqldataadapter
dim ds as new dataset
.
.
.
.
da.fill(ds,"Tbl")
return ds

end Function

and i use this code in my application:
protected sub btn1_click(....................)

dim ws as new localhost.service
gridview1.datasource=ws.getusers()
gridview1.databind()
end sub

now i have that code for submit button , only i don't know how i can write it in webservice instead of application?

<WebMethod()> _
Public Function FillAccordion() as ?????????
Dim cn As New SqlConnection
Dim cls As New ClsGeneral
cn.ConnectionString = cls.GetConnection
cls = Nothing
Dim cmd As SqlCommand = New SqlCommand("SELECT Title, Abstract FROM Articles", cn)

cn.Open()
cmd.ExecuteReader()
cn.Close()

return ????????


End Function



i couldn't write that code using function in web service and use function in submit button!

Hoda

modified on Tuesday, April 14, 2009 8:47 AM

QuestionResponse Headers Pin
grewin14-Apr-09 0:06
grewin14-Apr-09 0:06 
AnswerRe: Response Headers Pin
pra.chaudhari14-Apr-09 3:07
pra.chaudhari14-Apr-09 3:07 
QuestionAutomatic Email Notification Pin
Ra-one14-Apr-09 0:04
Ra-one14-Apr-09 0:04 
AnswerRe: Automatic Email Notification Pin
Abhijit Jana14-Apr-09 0:20
professionalAbhijit Jana14-Apr-09 0:20 
Questionpassing parameters using POST from an ASPX page to different page Pin
shabya14-Apr-09 0:00
shabya14-Apr-09 0:00 
AnswerRe: passing parameters using POST from an ASPX page to different page Pin
pra.chaudhari14-Apr-09 2:53
pra.chaudhari14-Apr-09 2:53 
GeneralRe: passing parameters using POST from an ASPX page to different page Pin
binarymax14-Apr-09 3:28
binarymax14-Apr-09 3:28 
QuestionAdding Web Forms Dynamically Pin
S.Aijaz13-Apr-09 23:45
S.Aijaz13-Apr-09 23:45 
AnswerRe: Adding Web Forms Dynamically Pin
Abhijit Jana14-Apr-09 1:57
professionalAbhijit Jana14-Apr-09 1:57 
GeneralRe: Adding Web Forms Dynamically Pin
S.Aijaz15-Apr-09 4:10
S.Aijaz15-Apr-09 4:10 
QuestionHow I can retrieve long text from data base in multi line instead of a long line? Pin
Saba0213-Apr-09 23:24
Saba0213-Apr-09 23:24 
AnswerRe: How I can retrieve long text from data base in multi line instead of a long line? Pin
SeMartens14-Apr-09 0:21
SeMartens14-Apr-09 0:21 
GeneralRe: How I can retrieve long text from data base in multi line instead of a long line? Pin
Saba0214-Apr-09 2:27
Saba0214-Apr-09 2:27 
QuestionAccessing MSMQ from Web Service Pin
BillyGoatGruff13-Apr-09 23:11
BillyGoatGruff13-Apr-09 23:11 
AnswerRe: Accessing MSMQ from Web Service Pin
Abhijit Jana13-Apr-09 23:35
professionalAbhijit Jana13-Apr-09 23:35 
AnswerRe: Accessing MSMQ from Web Service Pin
BillyGoatGruff13-Apr-09 23:48
BillyGoatGruff13-Apr-09 23:48 
Question[Message Deleted] Pin
pallavi shrivastava13-Apr-09 22:07
pallavi shrivastava13-Apr-09 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.