setup with vb.net and c# code RRS feed

  • Question

  • User479566397 posted


    We are developing a software in asp.net , with c# and vb.net, some  module  coded in c# and  some

    module coded in vb.net, how to merge both module and create setup. pls send your valuable suggestions

    Advance thanks for your replays



    Tuesday, January 5, 2010 8:50 AM

All replies

  • User-1161841047 posted

    In App_Code file open tow files one for VB and other for C# for example :


    the edit your web.config and add the following code:

    <ADD directoryName="vbFolder" />  
    <ADD directoryName="csFolder" />  

    Hope that help.

    Tuesday, January 5, 2010 11:28 AM
  • User479566397 posted

    HI Yousef_Jadallah,

    hoW can i call the vb folder , this is the first time i am getting this sutation, pls give more suggestions



    Wednesday, January 6, 2010 8:14 AM
  • User-1161841047 posted

    By using  namespace  if it's deferent  and create object from the Class Name.

    Wednesday, January 6, 2010 8:19 AM
  • User479566397 posted


    Pls send some example code how to call vb folder. iam using sql 2005  and i have two folders in web config

    for csharpe code and vb code , i have teamviewer, u can view my system  pls help me.





    Wednesday, January 6, 2010 9:13 PM
  • User-1385646561 posted

    i have made the two folders, and its gets compiled as well.

    but the issue is, i can access vb code in C# but C# code is not accessible in VB.net code

    please advice

    Monday, January 18, 2010 4:09 AM
  • User1452680134 posted

    in web.config app settings tab u can give

    <add key="vbcode" value="http://localhost:27637/****/vbcode/"></add>
        <add key="csharpcode" value="http://localhost:27637/****/csharpcode"></add>

    csharpcode & vbcode r the folders for c# and vb.net code

    ****   this is ur application name

    then u can use this for redirecting in code behind pages

    Response.Redirect(ConfigurationSettings.AppSettings("vbcode") & "index.aspx")

    Monday, January 18, 2010 5:42 AM
  • User479566397 posted
    <add directoryName ="csharpe" />
    <add directoryName ="vb"  value="http://localhost:49342/acs1/vb/" ></add> 

    i have 5 csharp web form and 1 vb form i try to call the vb form

    i got the error

    Error 43 Value of type 'ASP.standardroomhome_aspx' cannot be converted to 'System.Web.UI.Page'. C:\Users\jaya\AppData\Local\Temp\Temporary ASP.NET Files\acs1\834e98b0\37a65aa7\App_Web_gxfqzf2r.0.vb 253

    <codesubdirectories> <add directoryname="csharpe"> <add directoryname="vb" value="http://localhost:49342/acs1/vb/"></add> </add></codesubdirectories>

    Friday, January 29, 2010 9:33 AM
  • User479566397 posted


    pls explain to me in detail i am really struggle to complie in vb.net code

    i have 5 csharp web form and a class to call connection string and 2 vb web form i want to call vb form and vb class to call connection string

    and my home page is csharp form

    Friday, January 29, 2010 9:38 AM