473,406 Members | 2,336 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,406 software developers and data experts.

How to make an object instance available to all members of a page?

I have an instance of an object that needs to be accessed by all members of
a page like page_load, button_click events and so on. Where in the
codebehind would I put the creation of the object instance?

Jun 27 '08 #1
7 1286
VB or C#?

in C# it's called member variable.

class MyClass
{
int _iCounter = 0;
...page_Load(....)
{
_iCounter = 0;
}
.... page_Render(...)
{
_iCounter = 5;
}
}

George.
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl...
>I have an instance of an object that needs to be accessed by all members of
a page like page_load, button_click events and so on. Where in the
codebehind would I put the creation of the object instance?

Jun 27 '08 #2
You can create the object in the constructor, if you have enough
information. If this object is dynamic, you will have to go back to
something like PreInit.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl...
>I have an instance of an object that needs to be accessed by all members of
a page like page_load, button_click events and so on. Where in the
codebehind would I put the creation of the object instance?

Jun 27 '08 #3
It is dynamic in the sense that there is a wizard control feeding it all of
its values, otherise it is always there. This is done in c#. I tried all
sorts of things like putting it just in the page class, but the compiler
tells me that it doesn't like that idea. I keep getting some invalid token
problems or something. Here is the errors I get along with the page
codebehind.

Error 1 Invalid token '=' in class, struct, or interface member declaration
C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
18 26 Main
Error 2 Method must have a return type C:\Documents and Settings\Andy\My
Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
18 32 Main
Error 3 Invalid token '=' in class, struct, or interface member declaration
C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
19 27 Main
Error 4 Invalid token '(' in class, struct, or interface member declaration
C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
19 65 Main

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Xml.Linq;

using ContractServiceProvider.ContractModel;

namespace Main.Admin.Contracts.Stock {

public partial class Add : System.Web.UI.Page {

Contract StockContract = new Contract();

StockContract.Dictionary = new ContractDictionary();

StockContract.Sections = new ContractSections<string, string>();
protected void Page_Load(object sender, EventArgs e) {

}

protected void AddStockContractWizard_ActiveStepChanged1(object sender,
EventArgs e) {

AddStockContractWizard.HeaderText = AddStockContractWizard.ActiveStep.Title;

}

protected void AddDefinitionButton_Click(object sender, EventArgs e) {

StockContract.Dictionary.Add(WordTextBox.Text, DefinitionTextBox.Text);

}

}

}

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OM**************@TK2MSFTNGP02.phx.gbl...
You can create the object in the constructor, if you have enough
information. If this object is dynamic, you will have to go back to
something like PreInit.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box! |
*************************************************
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl...
>>I have an instance of an object that needs to be accessed by all members
of a page like page_load, button_click events and so on. Where in the
codebehind would I put the creation of the object instance?


Jun 27 '08 #4
You have a problem in your code
Contract StockContract = new Contract(); -- correct
---incorrect-----
StockContract.Dictionary = new ContractDictionary(); ---incorrect
StockContract.Sections = new ContractSections<string,
tring>(); ---incorrect
---You can only declare variables here and set their default values.
StockContract.Dictionary = new ContractDictionary();
is actually a code that needs to be moved to "code execution" portion of
your program. I.E method or constructor.
You need to move incorrect lines to constructor.
So it will be
public partial class Add : System.Web.UI.Page {
Contract StockContract = new Contract();

public Add ()
{
StockContract.Dictionary = new ContractDictionary();
StockContract.Sections = new ContractSections<string, string>();
}
.....
}
George.
"Andy B" <a_*****@sbcglobal.netwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
It is dynamic in the sense that there is a wizard control feeding it all
of its values, otherise it is always there. This is done in c#. I tried
all sorts of things like putting it just in the page class, but the
compiler tells me that it doesn't like that idea. I keep getting some
invalid token problems or something. Here is the errors I get along with
the page codebehind.

Error 1 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
18 26 Main
Error 2 Method must have a return type C:\Documents and Settings\Andy\My
Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
18 32 Main
Error 3 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
19 27 Main
Error 4 Invalid token '(' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\Co ntracts\Stock\Add.aspx.cs
19 65 Main

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Xml.Linq;

using ContractServiceProvider.ContractModel;

namespace Main.Admin.Contracts.Stock {

public partial class Add : System.Web.UI.Page {

Contract StockContract = new Contract();

StockContract.Dictionary = new ContractDictionary();

StockContract.Sections = new ContractSections<string, string>();
protected void Page_Load(object sender, EventArgs e) {

}

protected void AddStockContractWizard_ActiveStepChanged1(object sender,
EventArgs e) {

AddStockContractWizard.HeaderText =
AddStockContractWizard.ActiveStep.Title;

}

protected void AddDefinitionButton_Click(object sender, EventArgs e) {

StockContract.Dictionary.Add(WordTextBox.Text, DefinitionTextBox.Text);

}

}

}

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OM**************@TK2MSFTNGP02.phx.gbl...
>You can create the object in the constructor, if you have enough
information. If this object is dynamic, you will have to go back to
something like PreInit.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*********************************************** **
| Think outside the box! |
*********************************************** **
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl...
>>>I have an instance of an object that needs to be accessed by all members
of a page like page_load, button_click events and so on. Where in the
codebehind would I put the creation of the object instance?



Jun 27 '08 #5
At that rate, wouldn't it be even better to move the Contract StockContract
= new Contract() line to the constructer?
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
You have a problem in your code
Contract StockContract = new Contract(); -- correct
---incorrect-----
StockContract.Dictionary = new ContractDictionary(); ---incorrect
StockContract.Sections = new ContractSections<string,
ring>(); ---incorrect
---You can only declare variables here and set their default values.
StockContract.Dictionary = new ContractDictionary();
is actually a code that needs to be moved to "code execution" portion of
your program. I.E method or constructor.
You need to move incorrect lines to constructor.
So it will be
public partial class Add : System.Web.UI.Page {
Contract StockContract = new Contract();

public Add ()
{
StockContract.Dictionary = new ContractDictionary();
StockContract.Sections = new ContractSections<string, string>();
}
....
}
George.
"Andy B" <a_*****@sbcglobal.netwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
>It is dynamic in the sense that there is a wizard control feeding it all
of its values, otherise it is always there. This is done in c#. I tried
all sorts of things like putting it just in the page class, but the
compiler tells me that it doesn't like that idea. I keep getting some
invalid token problems or something. Here is the errors I get along with
the page codebehind.

Error 1 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\C ontracts\Stock\Add.aspx.cs
18 26 Main
Error 2 Method must have a return type C:\Documents and Settings\Andy\My
Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\C ontracts\Stock\Add.aspx.cs
18 32 Main
Error 3 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\C ontracts\Stock\Add.aspx.cs
19 27 Main
Error 4 Invalid token '(' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\C ontracts\Stock\Add.aspx.cs
19 65 Main

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Xml.Linq;

using ContractServiceProvider.ContractModel;

namespace Main.Admin.Contracts.Stock {

public partial class Add : System.Web.UI.Page {

Contract StockContract = new Contract();

StockContract.Dictionary = new ContractDictionary();

StockContract.Sections = new ContractSections<string, string>();
protected void Page_Load(object sender, EventArgs e) {

}

protected void AddStockContractWizard_ActiveStepChanged1(object sender,
EventArgs e) {

AddStockContractWizard.HeaderText =
AddStockContractWizard.ActiveStep.Title;

}

protected void AddDefinitionButton_Click(object sender, EventArgs e) {

StockContract.Dictionary.Add(WordTextBox.Text, DefinitionTextBox.Text);

}

}

}

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:OM**************@TK2MSFTNGP02.phx.gbl...
>>You can create the object in the constructor, if you have enough
information. If this object is dynamic, you will have to go back to
something like PreInit.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

************************************************ *
| Think outside the box! |
************************************************ *
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl...
I have an instance of an object that needs to be accessed by all members
of a page like page_load, button_click events and so on. Where in the
codebehind would I put the creation of the object instance?





Jun 27 '08 #6
Yes, and no....
Contract StockContract = new Contract()
This line defines a default value.

If you move it to constructor then default value will become null... So you
will lose some runtime because first compiler will assign null to
StockContract and only then execute constructor which will execute "new" and
override null.

Obviously assigning null is very fast and it becomes more theoretical than
practical concern :)

For example I always prefer to define my default values. So I always know
what to expect.

PS. You might have more than one constructor and then you forced to have
that line in every constructor. As opposed to just define it as a default
value once.
George.

"Andy B" <a_*****@sbcglobal.netwrote in message
news:Om**************@TK2MSFTNGP02.phx.gbl...
At that rate, wouldn't it be even better to move the Contract
StockContract = new Contract() line to the constructer?
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
>You have a problem in your code
Contract StockContract = new Contract(); -- correct
---incorrect-----
StockContract.Dictionary = new ContractDictionary(); ---incorrect
StockContract.Sections = new ContractSections<string,
ing>(); ---incorrect
---You can only declare variables here and set their default values.
StockContract.Dictionary = new ContractDictionary();
is actually a code that needs to be moved to "code execution" portion of
your program. I.E method or constructor.
You need to move incorrect lines to constructor.
So it will be
public partial class Add : System.Web.UI.Page {
Contract StockContract = new Contract();

public Add ()
{
StockContract.Dictionary = new ContractDictionary();
StockContract.Sections = new ContractSections<string, string>();
}
....
}
George.
"Andy B" <a_*****@sbcglobal.netwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
>>It is dynamic in the sense that there is a wizard control feeding it all
of its values, otherise it is always there. This is done in c#. I tried
all sorts of things like putting it just in the page class, but the
compiler tells me that it doesn't like that idea. I keep getting some
invalid token problems or something. Here is the errors I get along with
the page codebehind.

Error 1 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\ Contracts\Stock\Add.aspx.cs
18 26 Main
Error 2 Method must have a return type C:\Documents and Settings\Andy\My
Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\ Contracts\Stock\Add.aspx.cs
18 32 Main
Error 3 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\ Contracts\Stock\Add.aspx.cs
19 27 Main
Error 4 Invalid token '(' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin\ Contracts\Stock\Add.aspx.cs
19 65 Main

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Xml.Linq;

using ContractServiceProvider.ContractModel;

namespace Main.Admin.Contracts.Stock {

public partial class Add : System.Web.UI.Page {

Contract StockContract = new Contract();

StockContract.Dictionary = new ContractDictionary();

StockContract.Sections = new ContractSections<string, string>();
protected void Page_Load(object sender, EventArgs e) {

}

protected void AddStockContractWizard_ActiveStepChanged1(object sender,
EventArgs e) {

AddStockContractWizard.HeaderText =
AddStockContractWizard.ActiveStep.Title;

}

protected void AddDefinitionButton_Click(object sender, EventArgs e) {

StockContract.Dictionary.Add(WordTextBox.Text, DefinitionTextBox.Text);

}

}

}

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote
in message news:OM**************@TK2MSFTNGP02.phx.gbl...
You can create the object in the constructor, if you have enough
information. If this object is dynamic, you will have to go back to
something like PreInit.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*********************************************** **
| Think outside the box! |
*********************************************** **
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl...
>I have an instance of an object that needs to be accessed by all
>members of a page like page_load, button_click events and so on. Where
>in the codebehind would I put the creation of the object instance?
>
>
>




Jun 27 '08 #7
This makes sense as far as having:
Contract StockContract = new Contract();

Being a default value. But if the above line is an assignment of a default
value, then why is the 2 lines below illegal outside of a constructer or
method? Don't they assign default values as well?

StockContract.Dictionary = new ContractDictionary<string, string>();
StockContract.Sections = new ContractSections<string, string();

I don't see much difference in the 3 lines unless the difference comes into
play because of the Dictionary/Sections properties. Is this the case? And if
Dictionary/Sections properties are assigned their values in a Button_Click
event, will those assigned properties be available inside of another method?
I.e. another button_Click event? In my original posted example, the
Dictionary property was assigned its values in a AddDictionaryButton_Click
event. Will they be available to the WizardFinishButton_Click event where
the whole StockContract object gets serialized into an xml file? or is there
other things that need to be done to make them available elsewhere?
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:e3**************@TK2MSFTNGP03.phx.gbl...
Yes, and no....
Contract StockContract = new Contract()
This line defines a default value.

If you move it to constructor then default value will become null... So
you will lose some runtime because first compiler will assign null to
StockContract and only then execute constructor which will execute "new"
and override null.

Obviously assigning null is very fast and it becomes more theoretical than
practical concern :)

For example I always prefer to define my default values. So I always know
what to expect.

PS. You might have more than one constructor and then you forced to have
that line in every constructor. As opposed to just define it as a default
value once.
George.

"Andy B" <a_*****@sbcglobal.netwrote in message
news:Om**************@TK2MSFTNGP02.phx.gbl...
>At that rate, wouldn't it be even better to move the Contract
StockContract = new Contract() line to the constructer?
"George Ter-Saakov" <gt****@cardone.comwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
>>You have a problem in your code
Contract StockContract = new Contract(); -- correct
---incorrect-----
StockContract.Dictionary = new ContractDictionary(); ---incorrect
StockContract.Sections = new ContractSections<string,
ng>(); ---incorrect
---You can only declare variables here and set their default values.
StockContract.Dictionary = new ContractDictionary();
is actually a code that needs to be moved to "code execution" portion of
your program. I.E method or constructor.
You need to move incorrect lines to constructor.
So it will be
public partial class Add : System.Web.UI.Page {
Contract StockContract = new Contract();

public Add ()
{
StockContract.Dictionary = new ContractDictionary();
StockContract.Sections = new ContractSections<string, string>();
}
....
}
George.
"Andy B" <a_*****@sbcglobal.netwrote in message
news:uw**************@TK2MSFTNGP06.phx.gbl...
It is dynamic in the sense that there is a wizard control feeding it
all of its values, otherise it is always there. This is done in c#. I
tried all sorts of things like putting it just in the page class, but
the compiler tells me that it doesn't like that idea. I keep getting
some invalid token problems or something. Here is the errors I get
along with the page codebehind.

Error 1 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin \Contracts\Stock\Add.aspx.cs
18 26 Main
Error 2 Method must have a return type C:\Documents and
Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin \Contracts\Stock\Add.aspx.cs
18 32 Main
Error 3 Invalid token '=' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin \Contracts\Stock\Add.aspx.cs
19 27 Main
Error 4 Invalid token '(' in class, struct, or interface member
declaration C:\Documents and Settings\Andy\My Documents\Visual Studio
2008\Projects\EternityRecordsWebsite\Main\Admin \Contracts\Stock\Add.aspx.cs
19 65 Main

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

using System.Xml.Linq;

using ContractServiceProvider.ContractModel;

namespace Main.Admin.Contracts.Stock {

public partial class Add : System.Web.UI.Page {

Contract StockContract = new Contract();

StockContract.Dictionary = new ContractDictionary();

StockContract.Sections = new ContractSections<string, string>();
protected void Page_Load(object sender, EventArgs e) {

}

protected void AddStockContractWizard_ActiveStepChanged1(object sender,
EventArgs e) {

AddStockContractWizard.HeaderText =
AddStockContractWizard.ActiveStep.Title;

}

protected void AddDefinitionButton_Click(object sender, EventArgs e) {

StockContract.Dictionary.Add(WordTextBox.Text , DefinitionTextBox.Text);

}

}

}

"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote
in message news:OM**************@TK2MSFTNGP02.phx.gbl...
You can create the object in the constructor, if you have enough
information. If this object is dynamic, you will have to go back to
something like PreInit.
>
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
>
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
>
or just read it:
http://gregorybeamer.spaces.live.com/
>
********************************************** ***
| Think outside the box! |
********************************************** ***
"Andy B" <a_*****@sbcglobal.netwrote in message
news:Oa**************@TK2MSFTNGP02.phx.gbl.. .
>>I have an instance of an object that needs to be accessed by all
>>members of a page like page_load, button_click events and so on. Where
>>in the codebehind would I put the creation of the object instance?
>>
>>
>>
>
>




Jun 27 '08 #8

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

Similar topics

0
by: Rob Long | last post by:
Hey I'm building a webapp with tons of objects all over the place, a lot of which are quite complex, meaning they could have many subclasses and many nested object members. I'm implementing a...
28
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
11
by: Vani Murarka | last post by:
Hi Everyone, Does .NET offer any collection class which will give me objects last *accessed* such that I may build a least-recently-used cache that kills off objects that haven't been used for...
6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
4
by: Luke Matuszewski | last post by:
Here are some questions that i am interested about and wanted to here an explanation/discussion: 1. (general) Is the objectness in JavaScript was supported from the very first version of it (in...
11
by: Kevin Prichard | last post by:
Hi all, I've recently been following the object-oriented techiques discussed here and have been testing them for use in a web application. There is problem that I'd like to discuss with you...
8
by: a | last post by:
I'm trying to save data from a custom object into the profile object, but it is not structured the way that I want. I'm trying to get the custom object to serialize as xml to a Profile object...
0
by: a | last post by:
I need to create an instance of a custom object 'School.Teacher' and use it in a Profile object. I'm developing a bad case of "Pretzel Logic" thinking about this. Filling the custom object ...
6
by: burningodzilla | last post by:
Hi all - I'm preparing to dive in to more complex application development using javascript, and among other things, I'm having a hard time wrapping my head around an issues regarding "inheritance"...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
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...

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.