473,385 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Cannot use basic method of VB.NET

Hi,

I wrote a common.vb file as a code bebind logic.
I cannot use some common method e.g. len, month, year, formatdatetime.
Anyone can help me ? Thx u very much.

The structure of my vb file :

Imports System
Imports System.Data

Namespace comfunction

Public Class common : inherits System.Web.UI.Page

// function insert here

End Class

End Namespace
Jul 21 '05 #1
2 1235
How do you compile (VS.NET or command line compiler) ? It seems you are
missing the Microsoft.VisualBasic namespace :
- if using VS.NET it should be added automatically for you in the project
properties
- if using the command line compiler, you may have to add this explicitely

AFAIK you don't need to add a reference, I believe the command line compiler
does this for you (perhaps does it need the sdkpath switch).

Patrice

--

"kins" <ki**@discussions.microsoft.com> a écrit dans le message de
news:1C**********************************@microsof t.com...
Hi,

I wrote a common.vb file as a code bebind logic.
I cannot use some common method e.g. len, month, year, formatdatetime.
Anyone can help me ? Thx u very much.

The structure of my vb file :

Imports System
Imports System.Data

Namespace comfunction

Public Class common : inherits System.Web.UI.Page

// function insert here

End Class

End Namespace

Jul 21 '05 #2
I add the imports Microsoft.VisualBasic, now it is ok.

Thx you very much !

"Patrice" wrote:
How do you compile (VS.NET or command line compiler) ? It seems you are
missing the Microsoft.VisualBasic namespace :
- if using VS.NET it should be added automatically for you in the project
properties
- if using the command line compiler, you may have to add this explicitely

AFAIK you don't need to add a reference, I believe the command line compiler
does this for you (perhaps does it need the sdkpath switch).

Patrice

--

"kins" <ki**@discussions.microsoft.com> a écrit dans le message de
news:1C**********************************@microsof t.com...
Hi,

I wrote a common.vb file as a code bebind logic.
I cannot use some common method e.g. len, month, year, formatdatetime.
Anyone can help me ? Thx u very much.

The structure of my vb file :

Imports System
Imports System.Data

Namespace comfunction

Public Class common : inherits System.Web.UI.Page

// function insert here

End Class

End Namespace


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: BJ | last post by:
The application I have been developing is great except one flaw. When Windows NT shuts down, it doesn't send the Event to my application (if it did, it would close all of the open forms and kill an...
8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
2
by: Jeff | last post by:
I get the following error: Cannot implicitly convert type 'Factory.Stack.pArrayStack' to 'Factory.Stack.StackDefs.ImStack' at compile time. I thought perhaps there was a mismatch between the...
1
by: Mike Pettet | last post by:
I've just started using .NET and cannot create a basic Crystal Report. I have created an aspx page with a CrystalReportViewer web form on it. I defined (DataBindings)->ReportSource as the custom...
1
by: ericvdb | last post by:
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled...
0
by: M | last post by:
I installed the Visual Basic .NET Resource Kit. When I click 'Visual Basic .NET Resource Kit' the page at 'http://localhost/VB.NETResourceKit/Welcome.aspx' show: Server Error in...
1
by: Abraham Andres Luna | last post by:
hello everyone, i have the basic authentication method selected for my iis settings. when i navigate to a url using the local computer the login succeeds and shows the web page correctly....
45
by: Zytan | last post by:
This returns the following error: "Cannot modify the return value of 'System.Collections.Generic.List<MyStruct>.this' because it is not a variable" and I have no idea why! Do lists return copies...
7
by: groups | last post by:
This is my first foray into writing a generic method and maybe I've bitten off more than I can chew. My intent is to have a generic method that accepts a value name and that value will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.