Click here to Skip to main content
16,009,640 members
Home / Discussions / C#
   

C#

 
QuestionWebService [modified] Pin
tranzformerz2-Aug-07 5:47
tranzformerz2-Aug-07 5:47 
I've recently discovered the usage of WebService. You could say I'm a newbie. So far I've been having difficulties understanding it's limitation publishing a [WebMethod]. Is there a rule of thumb to what kind of methods that should be exposed using [WebMethod]?

For example, if I have a method that sets a datasource to an "Object" such as a WebControl GridView. Is this logical? Thing is I've mainly seen examples that only return strings. I've attempted to associate objects with [WebMethod] but came across many errors. Learning is definately trial and error, but need a boost in finding the right path.

Example of simple object associated Method:
[WebMethod]
public void setVisibility()
{
GridView gridView = new GridView();
gridView.Visible = False;
}

If anyone can offer tips, I'd appreciate it.
AnswerRe: WebService Pin
tranzformerz2-Aug-07 6:26
tranzformerz2-Aug-07 6:26 
AnswerRe: WebService Pin
pmarfleet2-Aug-07 6:32
pmarfleet2-Aug-07 6:32 
AnswerRe: WebService Pin
kubben2-Aug-07 6:32
kubben2-Aug-07 6:32 
GeneralRe: WebService Pin
tranzformerz2-Aug-07 7:01
tranzformerz2-Aug-07 7:01 
QuestionWhy i can't import C# com dll to C++ project ? ? ? Pin
Yanshof2-Aug-07 5:37
Yanshof2-Aug-07 5:37 
AnswerRe: Why i can't import C# com dll to C++ project ? ? ? Pin
Software_Specialist2-Aug-07 6:10
Software_Specialist2-Aug-07 6:10 
AnswerRe: Why i can't import C# com dll to C++ project ? ? ? Pin
Judah Gabriel Himango2-Aug-07 6:12
sponsorJudah Gabriel Himango2-Aug-07 6:12 
GeneralRe: Why i can't import C# com dll to C++ project ? ? ? Pin
Yanshof2-Aug-07 6:25
Yanshof2-Aug-07 6:25 
GeneralRe: Why i can't import C# com dll to C++ project ? ? ? Pin
Judah Gabriel Himango2-Aug-07 6:31
sponsorJudah Gabriel Himango2-Aug-07 6:31 
GeneralRe: Why i can't import C# com dll to C++ project ? ? ? Pin
Yanshof2-Aug-07 6:33
Yanshof2-Aug-07 6:33 
Questionsub forms ?? Pin
Software_Specialist2-Aug-07 5:27
Software_Specialist2-Aug-07 5:27 
AnswerRe: sub forms ?? Pin
Judah Gabriel Himango2-Aug-07 6:10
sponsorJudah Gabriel Himango2-Aug-07 6:10 
GeneralRe: sub forms ?? Pin
Software_Specialist2-Aug-07 6:46
Software_Specialist2-Aug-07 6:46 
GeneralRe: sub forms ?? Pin
Tarakeshwar Reddy2-Aug-07 9:12
professionalTarakeshwar Reddy2-Aug-07 9:12 
GeneralRe: sub forms ?? Pin
Software_Specialist2-Aug-07 23:59
Software_Specialist2-Aug-07 23:59 
GeneralRe: sub forms ?? Pin
Rudolf Jan3-Aug-07 0:26
Rudolf Jan3-Aug-07 0:26 
GeneralRe: sub forms ?? Pin
Software_Specialist3-Aug-07 1:42
Software_Specialist3-Aug-07 1:42 
GeneralRe: sub forms ?? Pin
Sam_c3-Aug-07 2:24
Sam_c3-Aug-07 2:24 
GeneralRe: sub forms ?? Pin
Software_Specialist3-Aug-07 2:58
Software_Specialist3-Aug-07 2:58 
GeneralRe: sub forms ?? Pin
Rudolf Jan5-Aug-07 10:25
Rudolf Jan5-Aug-07 10:25 
GeneralRe: sub forms ?? Pin
Software_Specialist3-Aug-07 0:22
Software_Specialist3-Aug-07 0:22 
GeneralRe: sub forms ?? [modified] Pin
Sam_c3-Aug-07 2:04
Sam_c3-Aug-07 2:04 
GeneralRe: sub forms ?? Pin
Software_Specialist3-Aug-07 2:17
Software_Specialist3-Aug-07 2:17 
QuestionDatagridview cursor focus Pin
praveenkumar palla2-Aug-07 4:57
praveenkumar palla2-Aug-07 4:57 

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.