Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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...

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...