Hi Friends
How can we add a link between vb.net and asp.net pages ?
Thanks...
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Javeed M ShaikhPosted Nov 16, 2011, 10:19 PM
<%@ Page Language="C#" CodeFile="SamplePage.aspx.vb" Inherits="SamplePage" AutoEventWireup="true" %>
Javeed M ShaikhPosted Nov 18, 2011, 12:10 PM
As you said the question is not clear and the interpretation I did was how to link the code behind file to an asp.net page and yes there is a typo over there which is corrected below:
<%@ Page Language="VB" AutoEventWireup="true" CodeBehind="SamplePage.aspx.vb" Inherits="Application.SamplePage" %>
And it will not give a Syntax error but a runtime Server Error, apperantly it compiles and runs that is strange.
Suthish NairPosted Nov 18, 2011, 11:08 AM
Vineet, Actually your question is not clear. Can you rephrase your question.
If am not wrong you having two different class files written in c# and vb.net under App_Code.
e.g. \App_Code\CSCode\1.cs and \App_Code\VBCode\1.vb
Then you need a web.config entry so the compilation happens successfully..