|
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).
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Thanks Scott,
I understand the general point of design separation (or loosely coupled), but what specific points do you mean separation here?
regards,
George
|
|
|
|
|
George_George wrote: 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.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Thanks Scott,
I basic agree with you. But do not agree with your term UI. The asmx file (not asmx.cs) contains only XML mark-up language and real logic/UI (e.g. Web Forms controls) are in asmx.cs file.
Any comments?
regards,
George
|
|
|
|
|
Yes, an asmx file should contain only the XML markup. As I said, in the case of a web service, there really is no UI so the separation of concerns isn't nearly as noticeable.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Thanks Scott,
So the purpose is just to separate the markup language logics asmx file from real C# implementation code in asmx.cs file?
regards,
George
|
|
|
|
|
Yes.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Cool, Scott!
regards,
George
|
|
|
|
|
George_George wrote: Could you show me a sample to show the benefits please?
It's basically separation of markup and code. I believe there won't be any other reason.
|
|
|
|
|
Thanks N a v a n e e t h. Mark up you mean the XML line in asmx?
regards,
George
|
|
|
|
|
Hello,
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.
Thanks.
Dad
|
|
|
|
|
Hello all,
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 !
Thank you
C
modified on Saturday, July 12, 2008 11:40 PM
|
|
|
|
|
Hi All,
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.
SHINOJ K
|
|
|
|
|
once more google holds the answer, I will not provide it here.
|
|
|
|
|
Use search. There is at least one article at codeproject that shows how to do it.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
Hi All,
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!.
|
|
|
|
|
hi,
look near the end[^]
BTW: you could have found this yourself 10 minutes ago by googling for: richtextbox hide caret
|
|
|
|
|
How Can i create mdb file, create some table in it(columns..), and add some rows?(in C#)
after it, i want to show the file in DataGridView.. But i dont know how to do it..How to open mdb file and show it in the grid?
Someone can help me plz?
it is for my huge Project?
Thank you!
|
|
|
|
|
Issue a script that creates a database.
Issue a script that creates a table.
Issue a script that inserts some data.
Read the data from the table and show on a grid.
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
i think that it was not necessary
|
|
|
|
|
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.
Create Access MDB and Tables in .NET
|
|
|
|
|
thank you but..
It it for Visual Basic... .
and i am programming in C#.
the catalog object do not exist
What i need to do?
|
|
|
|
|
Add a reference to the Microsoft ADO Ext (it's a COM object) to your project.
In the version I have (2.8) the Catalog is actually called CatalogClass.
To test it, I converted the first part of the code to this which works.
ADOX.CatalogClass cat = new CatalogClass();
cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data Source=C:\NewMDB.mdb;" +
"Jet OLEDB:Engine Type=5");
Console.WriteLine("Database Created Successfully");
cat = null;
Now you should be able to convert the rest and ammend it to suit your needs.
Dave
modified on Sunday, July 13, 2008 2:59 AM
|
|
|
|
|
Thank you!!
i have another question, and sorry for my foolishness,
How can i add reference to the Microsoft ADO Ext???
|
|
|
|
|
Right click on References in Solution Explorer and choose Add Reference. Click the COM tab and you'll find it in the list.
Dave
|
|
|
|