asp.net - VB.net website conversion to C# -


i'm trying convert old website vb c#, have been using teleriks online code converter i'm stuck on 1 particular area:

navbar.ascx contains asp hyperlinks form navigation bar

the first line of looks this:

<%@ control language="vb" autoeventwireup="false" codefile="navbar.ascx.vb" inherits="nav_bar" %> 

navbar.ascx.vb looks like:

partial class nav_bar     inherits system.web.ui.usercontrol end class 

after putting through online converter , trying fix problem myself i'm left with:

navbar.ascx

<%@ control language="vb" autoeventwireup="false"   codebehind="navbar.ascx.cs" inherits="nav_bar" %> 

navbar.ascx.cs

using microsoft.visualbasic; using system; using system.collections; using system.collections.generic; using system.data; using system.diagnostics;  partial class nav_bar : system.web.ui.usercontrol { } 

when try build project error - not load type 'nav_bar'

can please explain issue here, i'm totally new .net framework , don't know how proceed.

after converting have:

<%@ control language="vb" 

since using c#, need update language entry. if remember correctly should c# instead of vb:

<%@ control language="c#" 

hope helps!


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -