vb.net - asp.net how to code for Namespace in web-forms VB language -


i have never used namespace(s) when coding webform application using vb language. can pls see proper example based on code snippet 1 of files. not know where place "namespace spacename" sentence. since code refers partial class in filename.aspx.vb file, how namespace reference coded/represented in filename.aspx file art-work design of web-page.

option explicit on  imports system imports system.data imports system.data.sql imports system.data.sqlclient imports system.diagnostics imports microsoft.visualbasic  partial class reports01    inherits system.web.ui.page     private enum eformstate integer    ... working vb code methods , events follows...  end class 

use this

namespace xxx  partial class reports01 ... end class  end namespace 

also change aspx file from

<%@ page language="vb" autoeventwireup="false" codebehind="reports01.aspx.vb" inherits="reports01" %> 

to

<%@ page language="vb" autoeventwireup="false" codebehind="reports01.aspx.vb" inherits="xxx.reports01" %> 

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -