Hi Friends
How can we add a link between vb.net and asp.net pages ?
Thanks...
Link between vb.net and asp.nert
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 16, 2011, 5:19 PM EST
<%@ Page Language="C#" CodeFile="SamplePage.aspx.vb" Inherits="SamplePage" AutoEventWireup="true" %>
Suthish NairRank #92 · 22.8K reputationPosted Nov 18, 2011, 6:08 AM EST
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..
Javeed M ShaikhRank #839 · 2.7K reputationPosted Nov 18, 2011, 7:10 AM EST
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.