ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 All rights reserved.Call web page method in WCF Web Service using C# in ASP.Net<blockquote><cite>Mahesh1986 says:</cite> <pre>But that WCF should call a method which is in code behind file a webpage . is this possible?</pre> </blockquote> <p>&nbsp;This is not possible. A WCF Web Service cannot call a Web Page</p>, 17 Jan 2018 03:58:55 GMTCall web page method in WCF Web Service using C# in ASP.Net<p>But that's not best practice. As ASP Pages are not meant to be called like that.</p> <p>It is a Partial Class. You should create a new Class say GeneralMethods.cs and in that keep all methods that you want to use in your Projects.</p> <pre class="brush: csharp">public static class GeneralMethods { public static bool ValidateEmail(string email) { //Code goes here. } }</pre> <p>To use</p> <pre class="brush: csharp">bool isValid = GeneralMethods.ValidateEmail(&#34;;)</pre>, 24 Jan 2018 23:23:49 GMT