cheena Posted December 1, 2003 Posted December 1, 2003 The following code is asp.net what is eqivalent vb.net code Because i have register a Dll into bin directory ,i don't how to call that dll into my .vb file , please any one know.thanks in advance <%@ Import Namespace="obout_SlideMenu_NET" %> Thanks Quote
bungpeng Posted December 1, 2003 Posted December 1, 2003 You code is in aspx file? Did you use the 'code-behind'? If you are using VS.NET, then you can simply add reference to your dll file. Normally if you want to import your namespace, it is in your 'code-behind' page. I thought to import namespace, we use "Imports obout_SlideMenu_NET"... which Import need 's'. If I not mistaken... Quote
cheena Posted December 1, 2003 Author Posted December 1, 2003 Hi Thanks For ur effort I still not understand, Here is the code shown in first.aspx page <%@ Page Language="C#" %> <%@ Import Namespace="obout_SlideMenu_NET" %> <script language="C#" runat="server"> void Page_Load(Object sender, EventArgs e) { obout_SlideMenu_Pro_NET.MenuPro oSM; oSM = new obout_SlideMenu_Pro_NET.MenuPro(); </script> Above Code is working fine I am trying to write the code-behind import system Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Imports "obout_SlideMenu_NET" Dim oSM As obout_SlideMenu_Pro_NET.MenuPro = New obout_SlideMenu_Pro_NET.MenuPro End Sub how to declare a namespace like - <%@ Import Namespace="obout_SlideMenu_NET" %> - ? imports obout_SlideMenu_NET ?is it correct please . Thanks Quote
bungpeng Posted December 1, 2003 Posted December 1, 2003 Yes, I am using "Imports obout_SlideMenu_NET" and it works fine for me, but I use "VB.NET", not "C#"... You need to use "Add References" to add your dll file into your application before you can "Imports" the namespace. In VS.NET, you can use pull down menu "Project" -> "Add Reference..." to do it. Quote
cheena Posted December 1, 2003 Author Posted December 1, 2003 Thanks a lot , it's working fine Bye Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.