ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. 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>https://www.aspforums.net:443/Threads/281819/Call-web-page-method-in-WCF-Web-Service-using-C-in-ASPNet/https://www.aspforums.net:443/Threads/281819/Call-web-page-method-in-WCF-Web-Service-using-C-in-ASPNet/Wed, 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;a@a.com&#34;)</pre>https://www.aspforums.net:443/Threads/281819/Call-web-page-method-in-WCF-Web-Service-using-C-in-ASPNet/https://www.aspforums.net:443/Threads/281819/Call-web-page-method-in-WCF-Web-Service-using-C-in-ASPNet/Wed, 24 Jan 2018 23:23:49 GMT