ASPForums.Net RSS Feed additions to the content that appears on ASPForums.Net(c) 2019 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>, 27 Sep 2018 05:04:43 GMT