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.Accessing VB.Net class in App_Code from C# code behind<p>Hi <a class="username" rel="Sumeet"> Sumeet</a>,</p> <p>Please refer below sample.</p> <p>Vb class can&nbsp; access in C# code behind, refer below sample.</p> <p><span style="text-decoration: underline;"><strong>Default.aspx.cs</strong></span></p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { Customer cust = new Customer(); Response.Write(&#34;Name is: &#34; + cust.GetFirstName() + &#34; &#34; + cust.GetLastName()); }</pre> <p><span style="text-decoration: underline;"><strong>Customer.VB</strong></span></p> <pre class="brush: vb">Public Function GetFirstName() As String Return &#34;Mudassar&#34; End Function Public Function GetLastName() As String Return &#34;Khan&#34; End Function</pre> <p><span style="text-decoration: underline;"><strong>Output</strong></span></p> <p>Name is: Mudassar Khan</p>https://www.aspforums.net:443/Threads/113118/Accessing-VBNet-class-in-AppCode-from-C-code-behind/https://www.aspforums.net:443/Threads/113118/Accessing-VBNet-class-in-AppCode-from-C-code-behind/Thu, 27 Sep 2018 05:04:43 GMT