473,386 Members | 1,908 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,386 software developers and data experts.

class instance

Hi,

i've written a class which does some calculations for my web application.
These informatinos are different for each page request - the current user is
not important.

i have about 10 aspx pages and 20 ascx user controls. In most of these
pages/user controls i need the informations of this class.

First i created an instance of this class in every page/user control i
needed the information with the result that a page with 10 usercontrols
calculated the same information 11 times until the request is completed
(=many redundant/identical calculations).

So i created a static public instance of this class in the global.asax
Application_PreRequestHandlerExecute event. The class is now created just
once per page request and i can access it from the page and usercontrols like
Global.MyClass.MyPoperties.

But i'm not happy with this because i'm getting "accidentally" errors like
"Object has been disposed" when i access properties of this class. The errors
occur on all thinkable usercontrols and pages. There is no special code
fragment which raise the error.
But this behavior occurs only if i the app has a very high load. (i
simulated this on my dev box with the application test center).

I searched for "global variables" to try another approach but i found
nothing really usefull.

Now i'm thinking of
a) using a session instead of a static to hold the instance of this class or
b) to create a instance of this class in the page_load/prerender event of a
all my pages and make this instance accessable to the usercontrols with a
property.

or c) i'm completly wrong all the time and there's another/better way to
access "global variables" accross a page and its usercontrols.

Any suggestions?

Thanks
Nov 19 '05 #1
7 1660
Göran Tänzer wrote:
Hi,

i've written a class which does some calculations for my web
application. These informatinos are different for each page request -
the current user is not important.

i have about 10 aspx pages and 20 ascx user controls. In most of these
pages/user controls i need the informations of this class.

First i created an instance of this class in every page/user control i
needed the information with the result that a page with 10
usercontrols calculated the same information 11 times until the
request is completed (=many redundant/identical calculations).

So i created a static public instance of this class in the global.asax
Application_PreRequestHandlerExecute event. The class is now created
just once per page request and i can access it from the page and
usercontrols like Global.MyClass.MyPoperties.

But i'm not happy with this because i'm getting "accidentally" errors
like "Object has been disposed" when i access properties of this
class. The errors occur on all thinkable usercontrols and pages.
There is no special code fragment which raise the error.
But this behavior occurs only if i the app has a very high load. (i
simulated this on my dev box with the application test center).

I searched for "global variables" to try another approach but i found
nothing really usefull.

Now i'm thinking of
a) using a session instead of a static to hold the instance of this
class or b) to create a instance of this class in the
page_load/prerender event of a all my pages and make this instance
accessable to the usercontrols with a property.

or c) i'm completly wrong all the time and there's another/better way
to access "global variables" accross a page and its usercontrols.

Any suggestions?

Thanks


One thing to remember when using static members, is that that same
value is available for the entire (web-)application, that is: for all users
that are requesting pages.

You could use "Session" to store it:
If I understand correctly, you can calculate the value in the page's
Page_Init (or Page_Load) and store it in Session, the controls can
then read it in the PreRender.

Hans Kesting
Nov 19 '05 #2
It's difficult to understand what your requirements for this class are, as
you haven't been very specific about them ("does some calculations for my
web application"). It SOUNDS like you may have a class which performs
process only ("calculations"). If that is the case, no instance of a class
is necessary. Static methods (not static classes) do not require an instance
of a class to execute. For example, the System.Math class has numerous
methods for performing calcuations. Note that you never have to create an
instance of this class to use its methods; they are static. So, what you
should be doing, if I understand you correctly, is simply to create a public
class with static members, and then simply use these static memebers without
an instance of the class.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
Hi,

i've written a class which does some calculations for my web application.
These informatinos are different for each page request - the current user
is
not important.

i have about 10 aspx pages and 20 ascx user controls. In most of these
pages/user controls i need the informations of this class.

First i created an instance of this class in every page/user control i
needed the information with the result that a page with 10 usercontrols
calculated the same information 11 times until the request is completed
(=many redundant/identical calculations).

So i created a static public instance of this class in the global.asax
Application_PreRequestHandlerExecute event. The class is now created just
once per page request and i can access it from the page and usercontrols
like
Global.MyClass.MyPoperties.

But i'm not happy with this because i'm getting "accidentally" errors like
"Object has been disposed" when i access properties of this class. The
errors
occur on all thinkable usercontrols and pages. There is no special code
fragment which raise the error.
But this behavior occurs only if i the app has a very high load. (i
simulated this on my dev box with the application test center).

I searched for "global variables" to try another approach but i found
nothing really usefull.

Now i'm thinking of
a) using a session instead of a static to hold the instance of this class
or
b) to create a instance of this class in the page_load/prerender event of
a
all my pages and make this instance accessable to the usercontrols with a
property.

or c) i'm completly wrong all the time and there's another/better way to
access "global variables" accross a page and its usercontrols.

Any suggestions?

Thanks

Nov 19 '05 #3
Hmm ok,

this class is calculating some informations i need to work with my (M)CMS;
lots of recursive stuff for navigation and multi language support, images and
so on. If i access for example www.mysite.com/page.htm i need a lot of basic
informations from my CMS in the aspx and ascx files to create this page.
If i access the same public static method 5 times in my aspx page and 3
times in 10 usercontrols within this aspx page i would calculate the same
information 35 times.
So i think its better to create one instance of this class which holds all
the needed informations to create page.htm.
"Kevin Spencer" wrote:
It's difficult to understand what your requirements for this class are, as
you haven't been very specific about them ("does some calculations for my
web application"). It SOUNDS like you may have a class which performs
process only ("calculations"). If that is the case, no instance of a class
is necessary. Static methods (not static classes) do not require an instance
of a class to execute. For example, the System.Math class has numerous
methods for performing calcuations. Note that you never have to create an
instance of this class to use its methods; they are static. So, what you
should be doing, if I understand you correctly, is simply to create a public
class with static members, and then simply use these static memebers without
an instance of the class.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
Hi,

i've written a class which does some calculations for my web application.
These informatinos are different for each page request - the current user
is
not important.

i have about 10 aspx pages and 20 ascx user controls. In most of these
pages/user controls i need the informations of this class.

First i created an instance of this class in every page/user control i
needed the information with the result that a page with 10 usercontrols
calculated the same information 11 times until the request is completed
(=many redundant/identical calculations).

So i created a static public instance of this class in the global.asax
Application_PreRequestHandlerExecute event. The class is now created just
once per page request and i can access it from the page and usercontrols
like
Global.MyClass.MyPoperties.

But i'm not happy with this because i'm getting "accidentally" errors like
"Object has been disposed" when i access properties of this class. The
errors
occur on all thinkable usercontrols and pages. There is no special code
fragment which raise the error.
But this behavior occurs only if i the app has a very high load. (i
simulated this on my dev box with the application test center).

I searched for "global variables" to try another approach but i found
nothing really usefull.

Now i'm thinking of
a) using a session instead of a static to hold the instance of this class
or
b) to create a instance of this class in the page_load/prerender event of
a
all my pages and make this instance accessable to the usercontrols with a
property.

or c) i'm completly wrong all the time and there's another/better way to
access "global variables" accross a page and its usercontrols.

Any suggestions?

Thanks


Nov 19 '05 #4
Well, again, I'm not sure what this "CMS" is, nor how it works. If you need
an instance of a class on a per page basis, It would be best to use a
(non-static) business class that you simply instantiate in the page. If you
want to cache the business class, cache it in Session or Application.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hmm ok,

this class is calculating some informations i need to work with my (M)CMS;
lots of recursive stuff for navigation and multi language support, images
and
so on. If i access for example www.mysite.com/page.htm i need a lot of
basic
informations from my CMS in the aspx and ascx files to create this page.
If i access the same public static method 5 times in my aspx page and 3
times in 10 usercontrols within this aspx page i would calculate the same
information 35 times.
So i think its better to create one instance of this class which holds all
the needed informations to create page.htm.
"Kevin Spencer" wrote:
It's difficult to understand what your requirements for this class are,
as
you haven't been very specific about them ("does some calculations for my
web application"). It SOUNDS like you may have a class which performs
process only ("calculations"). If that is the case, no instance of a
class
is necessary. Static methods (not static classes) do not require an
instance
of a class to execute. For example, the System.Math class has numerous
methods for performing calcuations. Note that you never have to create an
instance of this class to use its methods; they are static. So, what you
should be doing, if I understand you correctly, is simply to create a
public
class with static members, and then simply use these static memebers
without
an instance of the class.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
> Hi,
>
> i've written a class which does some calculations for my web
> application.
> These informatinos are different for each page request - the current
> user
> is
> not important.
>
> i have about 10 aspx pages and 20 ascx user controls. In most of these
> pages/user controls i need the informations of this class.
>
> First i created an instance of this class in every page/user control i
> needed the information with the result that a page with 10 usercontrols
> calculated the same information 11 times until the request is completed
> (=many redundant/identical calculations).
>
> So i created a static public instance of this class in the global.asax
> Application_PreRequestHandlerExecute event. The class is now created
> just
> once per page request and i can access it from the page and
> usercontrols
> like
> Global.MyClass.MyPoperties.
>
> But i'm not happy with this because i'm getting "accidentally" errors
> like
> "Object has been disposed" when i access properties of this class. The
> errors
> occur on all thinkable usercontrols and pages. There is no special code
> fragment which raise the error.
> But this behavior occurs only if i the app has a very high load. (i
> simulated this on my dev box with the application test center).
>
> I searched for "global variables" to try another approach but i found
> nothing really usefull.
>
> Now i'm thinking of
> a) using a session instead of a static to hold the instance of this
> class
> or
> b) to create a instance of this class in the page_load/prerender event
> of
> a
> all my pages and make this instance accessable to the usercontrols with
> a
> property.
>
> or c) i'm completly wrong all the time and there's another/better way
> to
> access "global variables" accross a page and its usercontrols.
>
> Any suggestions?
>
> Thanks


Nov 19 '05 #5
CMS = Content Management System

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

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Well, again, I'm not sure what this "CMS" is, nor how it works. If you need an instance
of a class on a per page basis, It would be best to use a (non-static) business class
that you simply instantiate in the page. If you want to cache the business class, cache
it in Session or Application.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hmm ok,

this class is calculating some informations i need to work with my (M)CMS;
lots of recursive stuff for navigation and multi language support, images and
so on. If i access for example www.mysite.com/page.htm i need a lot of basic
informations from my CMS in the aspx and ascx files to create this page.
If i access the same public static method 5 times in my aspx page and 3
times in 10 usercontrols within this aspx page i would calculate the same
information 35 times.
So i think its better to create one instance of this class which holds all
the needed informations to create page.htm.
"Kevin Spencer" wrote:
It's difficult to understand what your requirements for this class are, as
you haven't been very specific about them ("does some calculations for my
web application"). It SOUNDS like you may have a class which performs
process only ("calculations"). If that is the case, no instance of a class
is necessary. Static methods (not static classes) do not require an instance
of a class to execute. For example, the System.Math class has numerous
methods for performing calcuations. Note that you never have to create an
instance of this class to use its methods; they are static. So, what you
should be doing, if I understand you correctly, is simply to create a public
class with static members, and then simply use these static memebers without
an instance of the class.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
> Hi,
>
> i've written a class which does some calculations for my web application.
> These informatinos are different for each page request - the current user
> is
> not important.
>
> i have about 10 aspx pages and 20 ascx user controls. In most of these
> pages/user controls i need the informations of this class.
>
> First i created an instance of this class in every page/user control i
> needed the information with the result that a page with 10 usercontrols
> calculated the same information 11 times until the request is completed
> (=many redundant/identical calculations).
>
> So i created a static public instance of this class in the global.asax
> Application_PreRequestHandlerExecute event. The class is now created just
> once per page request and i can access it from the page and usercontrols
> like
> Global.MyClass.MyPoperties.
>
> But i'm not happy with this because i'm getting "accidentally" errors like
> "Object has been disposed" when i access properties of this class. The
> errors
> occur on all thinkable usercontrols and pages. There is no special code
> fragment which raise the error.
> But this behavior occurs only if i the app has a very high load. (i
> simulated this on my dev box with the application test center).
>
> I searched for "global variables" to try another approach but i found
> nothing really usefull.
>
> Now i'm thinking of
> a) using a session instead of a static to hold the instance of this class
> or
> b) to create a instance of this class in the page_load/prerender event of
> a
> all my pages and make this instance accessable to the usercontrols with a
> property.
>
> or c) i'm completly wrong all the time and there's another/better way to
> access "global variables" accross a page and its usercontrols.
>
> Any suggestions?
>
> Thanks


Nov 19 '05 #6
Hi Juan,
CMS = Content Management System
I know that much! However, the term is generic, and does not imply any real
information about how the particular CMS works. It only implies that some
application manages some content. And there are plenty of them around. They
come in all shapes and sizes.

--

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl... CMS = Content Management System

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

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Well, again, I'm not sure what this "CMS" is, nor how it works. If you
need an instance of a class on a per page basis, It would be best to use
a (non-static) business class that you simply instantiate in the page. If
you want to cache the business class, cache it in Session or Application.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hmm ok,

this class is calculating some informations i need to work with my
(M)CMS;
lots of recursive stuff for navigation and multi language support,
images and
so on. If i access for example www.mysite.com/page.htm i need a lot of
basic
informations from my CMS in the aspx and ascx files to create this page.
If i access the same public static method 5 times in my aspx page and 3
times in 10 usercontrols within this aspx page i would calculate the
same
information 35 times.
So i think its better to create one instance of this class which holds
all
the needed informations to create page.htm.
"Kevin Spencer" wrote:

It's difficult to understand what your requirements for this class are,
as
you haven't been very specific about them ("does some calculations for
my
web application"). It SOUNDS like you may have a class which performs
process only ("calculations"). If that is the case, no instance of a
class
is necessary. Static methods (not static classes) do not require an
instance
of a class to execute. For example, the System.Math class has numerous
methods for performing calcuations. Note that you never have to create
an
instance of this class to use its methods; they are static. So, what
you
should be doing, if I understand you correctly, is simply to create a
public
class with static members, and then simply use these static memebers
without
an instance of the class.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
> Hi,
>
> i've written a class which does some calculations for my web
> application.
> These informatinos are different for each page request - the current
> user
> is
> not important.
>
> i have about 10 aspx pages and 20 ascx user controls. In most of
> these
> pages/user controls i need the informations of this class.
>
> First i created an instance of this class in every page/user control
> i
> needed the information with the result that a page with 10
> usercontrols
> calculated the same information 11 times until the request is
> completed
> (=many redundant/identical calculations).
>
> So i created a static public instance of this class in the
> global.asax
> Application_PreRequestHandlerExecute event. The class is now created
> just
> once per page request and i can access it from the page and
> usercontrols
> like
> Global.MyClass.MyPoperties.
>
> But i'm not happy with this because i'm getting "accidentally" errors
> like
> "Object has been disposed" when i access properties of this class.
> The
> errors
> occur on all thinkable usercontrols and pages. There is no special
> code
> fragment which raise the error.
> But this behavior occurs only if i the app has a very high load. (i
> simulated this on my dev box with the application test center).
>
> I searched for "global variables" to try another approach but i found
> nothing really usefull.
>
> Now i'm thinking of
> a) using a session instead of a static to hold the instance of this
> class
> or
> b) to create a instance of this class in the page_load/prerender
> event of
> a
> all my pages and make this instance accessable to the usercontrols
> with a
> property.
>
> or c) i'm completly wrong all the time and there's another/better way
> to
> access "global variables" accross a page and its usercontrols.
>
> Any suggestions?
>
> Thanks



Nov 19 '05 #7
re:
there are plenty of them around
Most are overpriced, too... ;-)

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

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ee**************@TK2MSFTNGP15.phx.gbl... Hi Juan,
CMS = Content Management System


I know that much! However, the term is generic, and does not imply any real information
about how the particular CMS works. It only implies that some application manages some
content. And there are plenty of them around. They come in all shapes and sizes.

--

Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:OQ**************@tk2msftngp13.phx.gbl...
CMS = Content Management System

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

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Well, again, I'm not sure what this "CMS" is, nor how it works. If you need an
instance of a class on a per page basis, It would be best to use a (non-static)
business class that you simply instantiate in the page. If you want to cache the
business class, cache it in Session or Application.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
The sun never sets on
the Kingdom of Heaven

"Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
Hmm ok,

this class is calculating some informations i need to work with my (M)CMS;
lots of recursive stuff for navigation and multi language support, images and
so on. If i access for example www.mysite.com/page.htm i need a lot of basic
informations from my CMS in the aspx and ascx files to create this page.
If i access the same public static method 5 times in my aspx page and 3
times in 10 usercontrols within this aspx page i would calculate the same
information 35 times.
So i think its better to create one instance of this class which holds all
the needed informations to create page.htm.
"Kevin Spencer" wrote:

> It's difficult to understand what your requirements for this class are, as
> you haven't been very specific about them ("does some calculations for my
> web application"). It SOUNDS like you may have a class which performs
> process only ("calculations"). If that is the case, no instance of a class
> is necessary. Static methods (not static classes) do not require an instance
> of a class to execute. For example, the System.Math class has numerous
> methods for performing calcuations. Note that you never have to create an
> instance of this class to use its methods; they are static. So, what you
> should be doing, if I understand you correctly, is simply to create a public
> class with static members, and then simply use these static memebers without
> an instance of the class.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> ..Net Developer
> The sun never sets on
> the Kingdom of Heaven
>
> "Göran Tänzer" <Gr*******@discussions.microsoft.com> wrote in message
> news:96**********************************@microsof t.com...
> > Hi,
> >
> > i've written a class which does some calculations for my web application.
> > These informatinos are different for each page request - the current user
> > is
> > not important.
> >
> > i have about 10 aspx pages and 20 ascx user controls. In most of these
> > pages/user controls i need the informations of this class.
> >
> > First i created an instance of this class in every page/user control i
> > needed the information with the result that a page with 10 usercontrols
> > calculated the same information 11 times until the request is completed
> > (=many redundant/identical calculations).
> >
> > So i created a static public instance of this class in the global.asax
> > Application_PreRequestHandlerExecute event. The class is now created just
> > once per page request and i can access it from the page and usercontrols
> > like
> > Global.MyClass.MyPoperties.
> >
> > But i'm not happy with this because i'm getting "accidentally" errors like
> > "Object has been disposed" when i access properties of this class. The
> > errors
> > occur on all thinkable usercontrols and pages. There is no special code
> > fragment which raise the error.
> > But this behavior occurs only if i the app has a very high load. (i
> > simulated this on my dev box with the application test center).
> >
> > I searched for "global variables" to try another approach but i found
> > nothing really usefull.
> >
> > Now i'm thinking of
> > a) using a session instead of a static to hold the instance of this class
> > or
> > b) to create a instance of this class in the page_load/prerender event of
> > a
> > all my pages and make this instance accessable to the usercontrols with a
> > property.
> >
> > or c) i'm completly wrong all the time and there's another/better way to
> > access "global variables" accross a page and its usercontrols.
> >
> > Any suggestions?
> >
> > Thanks
>
>
>



Nov 19 '05 #8

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

Similar topics

2
by: Gabriel Genellina | last post by:
Hi In the following code sample, I have: - a Worker class, which could have a lot of methods and attributes. In particular, it has a 'bar' attribute. This class can be modified as needed. - a...
6
by: Andre Meyer | last post by:
Hi all I have been searching everywhere for this, but have not found a solution, yet. What I need is to create an object that is an instance of a class (NOT a class instance!) of which I only...
4
by: Neil Zanella | last post by:
Hello, I would like to know whether it is possible to define static class methods and data members in Python (similar to the way it can be done in C++ or Java). These do not seem to be mentioned...
50
by: Dan Perl | last post by:
There is something with initializing mutable class attributes that I am struggling with. I'll use an example to explain: class Father: attr1=None # this is OK attr2= # this is wrong...
18
by: John M. Gabriele | last post by:
I've done some C++ and Java in the past, and have recently learned a fair amount of Python. One thing I still really don't get though is the difference between class methods and instance methods. I...
166
by: Graham | last post by:
This has to do with class variables and instances variables. Given the following: <code> class _class: var = 0 #rest of the class
19
by: Jamey Shuemaker | last post by:
I'm in the process of expanding my knowledge and use of Class Modules. I've perused MSDN and this and other sites, and I'm pretty comfortable with my understanding of Class Modules with the...
12
by: titan nyquist | last post by:
I have a class with data and methods that use it. Everything is contained perfectly THE PROBLEM: A separate thread has to call a method in the current instantiation of this class. There is...
20
by: tshad | last post by:
Using VS 2003, I am trying to take a class that I created to create new variable types to handle nulls and track changes to standard variable types. This is for use with database variables. This...
44
by: Steven D'Aprano | last post by:
I have a class which is not intended to be instantiated. Instead of using the class to creating an instance and then operate on it, I use the class directly, with classmethods. Essentially, the...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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...
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.