Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Joao Silva   on Oct 10 In Asp.net Category.

  
Question Answered By: Verner Fischer   on Oct 10

Web Service Problem:

I refreshed myself about basic od web  services by reading a chapter from book and here is what I did to atleast take a start.
I created a file with name "webservicetest2.asmx"
then in it I had a function like
<WebMethod()> Public Function Add(ByVal a As Decimal, ByVal b As Decimal) As Decimal

Label1.Text = a + b

Return (a + b)

End Function

then I added a "web referrence" for this service.

Later in one aspx page  to test it I inserted a lable and a command button and on the command button click I had

Dim ws As New localhost.webservicetest2()

Label1.Text = ws.Add(10, 5)

I got the result right, now please correct me about my understanding of webservice:
I will add another web method in which will not recieve any parameters, in it open a connection, read  the values and return them all?(how)

ok another thing that when I tested the service upon button clik page was refreshed, how to invoke this service without having the page refreshed?

Pls help

Windows Cotron Embedding Problem

Opened a new project  as windows control library name "WindowsControlLibrary5" and gave the user control as name "usercontrol5" had a command button and text  box and comiled, got the dll with name WindowsControlLibrary5.dll
Just to test that is it ok I opened a new windows project, and added in the WindowsControlLibrary5.dll and I could clearly see the form I created earlier as control
So I opened a web project and tried including the file as:
"


<object id="usercontrol5"
classid=TimedPopGrowth.DLL#"how to write something here"height="370" width="650" >
</object>

but I could not see the control on the form , donno what the hell is wrong.
Steve you mentioned aboyt converting a form to web control, how do I do that?

Share: 

 

This Question has 21 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Java Applet Or get search suggestion and latest updates.


Tagged: