For UI, I am confused. Web Service has no UI, right? What do you mean UI here? Graphical User Interface?
Ahhh...yes, web serivces have no UI. (Yes, UI == Graphical User Interface.) However, my statement about the purpose of a code behind (in general) still holds true. The asmx is the service equivalent to the aspx file. Best practice should still be to put the code in the code behind file.
In my previous senses, I think a web serivce is a remote method call which takes some parameters and return something, so I think it is similar to a method, so I think a public method described with WebMethod is called a web service. This is why I am confused and asked question 3.
You are almost correct. A web service method is a remote method call which takes some parameters and return something. A web service is a collection of web service methods.
And from your experience, you call a class a web service? If the class has more than one Web Methods, how do you call the methods?
Yes, a class would be called a web service. If it has more than one web method, you still call them the same way as if it only had a single web method.
Yes, we always edit asmx.cs file for implementation for detailed logics for web services. But what the benefit or benefits will we have if we separate a couple of lines of XML document in asmx and source codes in asmx.cs file? Could you show me a sample to show the benefits please?
Can't really show any concrete (or probably even any abstract) examples that show the benefits for web services. Anything else, I think the benefits are trivially clear (separation of concerns is almost always a good thing).
but what specific points do you mean separation here?
I'm not sure I can give you specifics. If you already understand the benefits of separating the UI logic from the back-end logic, you have what you need. As I said, there are probably less reasons for doing this in a web service other than following best practices and making maintenance a bit easier.
Is there any other way to send mails from .net without using the SMTP server.If there is an exchange server in the organization should all clients have to connect to its smtp server or there is another way.
I need some help on an issue i do have.
My problem is rather simple.
I have created a project (that would be the server) and that is supposed to perform some lengthy calculations. This server would be located on a machine dedicated to calculations.
On the other hand, I have created a client (my GUI) that will be located on another computer and that will send data/parameteres to the server, wait for the server to calculate based on the parameters received, and send back the result of the calculation to the GUI (my client). In my case, results would be displayed in a DataGridView for example.
So my question is rather simple: How do I make the client and server communicate, namely how do I send data (could be aything from a string to a double to a bolean) to the server, and most of all how do I retrieve data calculated for display in my GUI ?
This issue is related to some Finance application and real time data. Calculations are perfromed on the server as well as retrieving the real time data, and send back to the client for vizualisation ! GUI is sending the parameteres on which calculation are based.
I understand I have to use net.sockets, and create some kindof remotable objects in the middle to transfer information, but I can't figure out how to do this after reading some of the very useful articles here.
Any help would be really appreciated !
I put a rich text box in my app and then code the listener of the box to listen for emoticon text ie ); etc and replace with the emoticon? If i have to do this, then how do I add an emoticon .gif file into the Rich text box?
Is there any other easier and free way of doing this, like plugins etc?Thanks In Advance.
I have a situation where it would be nice to have NO cursor for a rich text box. How can i do this? I am doing in Visual C#. I have try for the text box, it seen great. But i set the property for Rich Text Box, it still have the blinking cursor. That is the problem. Can someone help, thanks in advance. Need it urgent!.
Unfortunately you can not create Access MDBs using ADO.Net, but you can use COM and ADOX to create the database and tables, and then access the created MDB and tables via ADO.Net and OleDB. The link below, although a VB.Net example, should help you get started.