473,471 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1236
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.