473,756 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a custom class/Namespace

Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace

Nov 19 '05 #1
6 3410
Did you compile it ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace

Nov 19 '05 #2
check this out, it may help:

http://www.mcdonalds.com/
ry************@ kp.org wrote:
Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace


Nov 19 '05 #3
I built and rebuilt the project and solution and get no skips and no
errors. Just a report of success...But then when I test my ASP page in
my browser, I get the message in the compiler output that my namespace
could not be found.

Any thoughts?

Ryan

Juan T. Llibre wrote:
Did you compile it ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace


Nov 19 '05 #4
re:
How then would I reference this in a new Web Application
(or in the same web application for that matter?)

To reference that code in a new web Application, you'd have
to compile the code from the command-line, and reference
*that* assembly in your VS.NET project.

To compile a single source code file, use :

csc /t:library /out:utils.dll utils.cs

To compile all .cs files in a directory to utils.dll ,
use : csc /t:library /out:utils.dll *.cs

If you need to reference a .Net Framework assembly or assemblies,
add them, separated by slashes :

csc /t:library /r:system.dll /r:system.data.d ll /out:utils.dll *.cs

If you're using VB.NET instead of C#,
use vbc and source files ending in .vb
instead of using csc and source files ending in .cs.

The syntax is the same for vb and c#.

Once you have compiled your assembly, place it in the /bin
directory of your application, and import the Namespace :

<%@ Import Namespace="Byte Array" %>

If you're working strictly with VS.NET, compile your assembly
as described and add a reference to it in your VS.NET project.

That will allow you to use Intellisense and get your
assembly's properties, methods, etc. when coding.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
I built and rebuilt the project and solution and get no skips and no
errors. Just a report of success...But then when I test my ASP page in
my browser, I get the message in the compiler output that my namespace
could not be found.

Any thoughts?

Ryan

Juan T. Llibre wrote: Did you compile it ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace

Nov 19 '05 #5
Hi Juan,

Thanks for your help. I have tried what you suggested and am getting
some errors. Here, first, are the contents of my .vb file:
---------------------------------------------
Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
#Region " Component Designer generated code "

Public Sub New(ByVal Container As
System.Componen tModel.IContain er)
MyClass.New()

'Required for Windows.Forms Class Composition Designer
support
Container.Add(M e)
End Sub

Public Sub New()
MyBase.New()

'This call is required by the Component Designer.
InitializeCompo nent()

'Add any initialization after the InitializeCompo nent()
call

End Sub

'Component overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Disp ose()
End If
End If
MyBase.Dispose( disposing)
End Sub

'Required by the Component Designer
Private components As System.Componen tModel.IContain er

'NOTE: The following procedure is required by the Component
Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()
components = New System.Componen tModel.Containe r
End Sub

#End Region
Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace
---------------------------------------------

I then compile it using:

c:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\cs c.exe /target:library
/out:ByteArray.d ll /r:System.dll
C:\Inetpub\wwwr oot\testApp\Byt eArray.vb

I get a bunch of errors of four basic types:

-Preprocessor directive expected.
-Single Line Comment or End-of-Line expected.
-Newline in constant.
-A Namespace does not directly contain members such as fields or
methods.

Do you know why I am getting them. If I take out the system generated
code, the errors decrease, but I thought that the system generated code
was supposed to make my class more usuable. (Plus, I still get some of
the errors even without the system generated code.)

Thanks,
Ryan

Juan T. Llibre wrote:
re:
How then would I reference this in a new Web Application
(or in the same web application for that matter?)


To reference that code in a new web Application, you'd have
to compile the code from the command-line, and reference
*that* assembly in your VS.NET project.

To compile a single source code file, use :

csc /t:library /out:utils.dll utils.cs

To compile all .cs files in a directory to utils.dll ,
use : csc /t:library /out:utils.dll *.cs

If you need to reference a .Net Framework assembly or assemblies,
add them, separated by slashes :

csc /t:library /r:system.dll /r:system.data.d ll /out:utils.dll *.cs

If you're using VB.NET instead of C#,
use vbc and source files ending in .vb
instead of using csc and source files ending in .cs.

The syntax is the same for vb and c#.

Once you have compiled your assembly, place it in the /bin
directory of your application, and import the Namespace :

<%@ Import Namespace="Byte Array" %>

If you're working strictly with VS.NET, compile your assembly
as described and add a reference to it in your VS.NET project.

That will allow you to use Intellisense and get your
assembly's properties, methods, etc. when coding.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
I built and rebuilt the project and solution and get no skips and no
errors. Just a report of success...But then when I test my ASP page in
my browser, I get the message in the compiler output that my namespace
could not be found.

Any thoughts?

Ryan

Juan T. Llibre wrote:
Did you compile it ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace


Nov 19 '05 #6
It looks like you're trying to use a Windows Forms class in ASP.NET.
'Required for Windows.Forms Class Composition Designer support

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
Hi Juan,

Thanks for your help. I have tried what you suggested and am getting
some errors. Here, first, are the contents of my .vb file:
---------------------------------------------
Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
#Region " Component Designer generated code "

Public Sub New(ByVal Container As
System.Componen tModel.IContain er)
MyClass.New()

'Required for Windows.Forms Class Composition Designer
support
Container.Add(M e)
End Sub

Public Sub New()
MyBase.New()

'This call is required by the Component Designer.
InitializeCompo nent()

'Add any initialization after the InitializeCompo nent()
call

End Sub

'Component overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As
Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Disp ose()
End If
End If
MyBase.Dispose( disposing)
End Sub

'Required by the Component Designer
Private components As System.Componen tModel.IContain er

'NOTE: The following procedure is required by the Component
Designer
'It can be modified using the Component Designer.
'Do not modify it using the code editor.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()
components = New System.Componen tModel.Containe r
End Sub

#End Region
Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace
---------------------------------------------

I then compile it using:

c:\WINNT\Micros oft.NET\Framewo rk\v1.1.4322\cs c.exe /target:library
/out:ByteArray.d ll /r:System.dll
C:\Inetpub\wwwr oot\testApp\Byt eArray.vb

I get a bunch of errors of four basic types:

-Preprocessor directive expected.
-Single Line Comment or End-of-Line expected.
-Newline in constant.
-A Namespace does not directly contain members such as fields or
methods.

Do you know why I am getting them. If I take out the system generated
code, the errors decrease, but I thought that the system generated code
was supposed to make my class more usuable. (Plus, I still get some of
the errors even without the system generated code.)

Thanks,
Ryan

Juan T. Llibre wrote: re:
How then would I reference this in a new Web Application
(or in the same web application for that matter?)


To reference that code in a new web Application, you'd have
to compile the code from the command-line, and reference
*that* assembly in your VS.NET project.

To compile a single source code file, use :

csc /t:library /out:utils.dll utils.cs

To compile all .cs files in a directory to utils.dll ,
use : csc /t:library /out:utils.dll *.cs

If you need to reference a .Net Framework assembly or assemblies,
add them, separated by slashes :

csc /t:library /r:system.dll /r:system.data.d ll /out:utils.dll *.cs

If you're using VB.NET instead of C#,
use vbc and source files ending in .vb
instead of using csc and source files ending in .cs.

The syntax is the same for vb and c#.

Once you have compiled your assembly, place it in the /bin
directory of your application, and import the Namespace :

<%@ Import Namespace="Byte Array" %>

If you're working strictly with VS.NET, compile your assembly
as described and add a reference to it in your VS.NET project.

That will allow you to use Intellisense and get your
assembly's properties, methods, etc. when coding.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. .
I built and rebuilt the project and solution and get no skips and no
errors. Just a report of success...But then when I test my ASP page in
my browser, I get the message in the compiler output that my namespace
could not be found.

Any thoughts?

Ryan

Juan T. Llibre wrote:
Did you compile it ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

<ry************ @kp.org> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello,

I have code that I wish to use in many web applications. Basically
sort of stand utility stuff. So from Visual Studio Project I select
add a component and chose Component Class. Lets say I enter code at
the end of this question in to the code section.

How then would I reference this in a new Web Application (or in the
same web application for that matter?)

I have tried:
<%@ Import Namespace="Byte Array.ByteArray " %>
and
<%@ Import Namespace="Byte Array" %>

But when I run the page it just gives me a message that the Namespace
can't be found.

Thanks,
Ryan

------------CODE FOLLOWS-----------------------------

Imports System.Globaliz ation
Namespace ByteArray
Public Class ByteArray
Inherits System.Componen tModel.Componen t
|Component Designer generated code...|

Public Function CreateTypeByte( ByVal strInput As String) As
Byte()
Dim i As Integer
Dim arrChar As Char()

arrChar = strInput.ToChar Array()
Dim arrByte(arrChar .Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Convert.ToByte( arrChar(i))
Next
Return arrByte
End Function

Public Function CreateTypeHex(B yVal strInput As String) As
Byte()
Dim i As Integer
Dim arrString As String()

arrString = strInput.Split( New Char() {"-"})
Dim arrByte(arrStri ng.Length - 1) As Byte
For i = 0 To arrByte.Length - 1
arrByte(i) = Byte.Parse(arrS tring(i),
NumberStyles.He xNumber)
Next
Return arrByte
End Function
End Class
End Namespace

Nov 19 '05 #7

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

Similar topics

5
2290
by: | last post by:
Trying to learn about manipulating collections of objects, and populating these objects dynamically from datasources. Could someone post a code sample that shows the following: Instantiating a collection object -- say, a dictionary. Populating that collection object with custom objects, say, Person. What I really want to see is how to populate the properties of those Person objects from a datasource: instantiate one Person, fill...
8
9091
by: Simon Edwards | last post by:
Something thats been bugging me for a while... how do you create a namespace that has many children (namespaces) I.e system.io.blah.blah Iv'e done it by creating a class which contains another class. i can see the properties of the first class and the namespace of the second (inner class) but can't see the properties of the 2nd....
7
4747
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service project. The same class lib is included in the ASP.NET Web Application that calls the web-method I can successfully call the web-method with
0
1822
by: shanthsp2002 | last post by:
well friends i have a small tip here which may be helpfull for u there may be situations where we need to use a customized dilogue box while doveloping setup and dyployment project, so u can do that simply by using custom actions . 1st create setup and deployment project... add->new project->windows application name it ReadmeDilogue now customize Form as per ur requirement now again
4
2756
by: tshad | last post by:
I am trying to set up an Image authorization where you type in the value that is in a picture to log on to our site. I found a program that is supposed to do it, but it doesn't seem to work. It should put a blue and yellow box on the page with "This is a test" as part of the picture. But what I get is a broken Gif. The other problem is that I can't view the source???? The view source is disabled for this page. What causes this?
6
5153
by: MikeSwann | last post by:
Dear All, I am trying to decide on to create a collection object for a project that I am working on. I am fairly new to OOP so this may be on the basic side. I have looked on the groups, but can't seem to find the answer I am looking for - just more questions! I want an object to hold Case details, one of the properties of this Case class will be RequestedBy. I ideally want this property to be a collection of User Objects (which...
1
4811
by: rn5a | last post by:
I have created a custom control button which when clicked displays a message in the JavaScript alert dialog. I could successfully compile the VB class file into a DLL & also could add it to the Toolbox in Visual Web Developer 2005 Express Edition but the alert message isn't popping up when I am implementing this control in an ASP.NET page & clicking the Button in the ASPX page. This is the class file: Imports System Imports System.Web...
0
3362
by: mk189 | last post by:
Hi, I am trying to create XML schema of custom markup language, enriched by XHTML. In simplified version, the XML documet could look like that: <a:alarm-manual xmlns:a="alarm-manual" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="alarm-manual alarm-manual.xsd" <h:p>Text ... <a:par-value name="myName"/... text </h:p>
7
3164
by: c4tech | last post by:
I am using VB.net with ASP.net 2.0 and am not using Visual Studio. I use my text editor. I have written a class and wrapped it in a namespace called "MyBulb_NS". I want to import and use that namespace in another namespace that i've written called "MyLamp_NS". I have pasted a code snippet below to show how i import the namespace. MyBulb_NS has been compiled to a dll without errors. When I attempt to compile MyLamp_NS it fails. I have pasted its...
0
9431
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10014
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3780
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 we have to send another system
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.