Reputation: 5332
I have a stylistic question, really.
I am wondering which is the best, fastest, most "iterative" way to generate client HTML?
The road I am currently traveling is to use WCF (or a DLL) to expose a method that can be called depending on the page being loaded:
private AuthClient auth = null;
PageLoad {
auth = new AuthClient();
string pageHTML = auth.GetHTML(string param);
ClientElem.InnerHtml = pageHTML;
}
This seems logical to me but, maybe there is a more productive approach that I am not currently aware of? Also, if anybody has good examples of WCF methods that pump large HTML strings for rendering on the client, I would appreciate it (assuming that this is a reasonable approach).
Thanks.
Upvotes: 0
Views: 931
Reputation: 777
This would not be the most efficient approach because you are going to have to go through proxy creation, creation of a soap envelope to send the message to the service, then the delay response from the WCF service to create the string etc. What is it that you are trying to accomplish?
Upvotes: 1