472,958 Members | 2,524 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

code sample wanted: creating and populating a collection of objects from a datasource?

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 Person.FirstName,
Person.LastName, Person.ID with data, iterate to the next item in the
datasource, instantiate another person, fill Person.FirstName,
Person.LastName...

Any help out there?

Thanks very much.

-KF
Nov 19 '05 #1
5 2217
This BarGraph web control contains a collection of Bar objects.
Full source code is included:
http://www.SteveOrr.net/articles/BarGraphs.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ke*****@nospam.nospam> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
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 Person.FirstName,
Person.LastName, Person.ID with data, iterate to the next item in the
datasource, instantiate another person, fill Person.FirstName,
Person.LastName...

Any help out there?

Thanks very much.

-KF

Nov 19 '05 #2
Thank you very much, Steve, that's quite helpful.

Does anyone have additional examples, or a C# example that I could look at?

Thanks
-KF
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O0*************@TK2MSFTNGP09.phx.gbl...
This BarGraph web control contains a collection of Bar objects.
Full source code is included:
http://www.SteveOrr.net/articles/BarGraphs.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ke*****@nospam.nospam> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
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 Person.FirstName,
Person.LastName, Person.ID with data, iterate to the next item in the
datasource, instantiate another person, fill Person.FirstName,
Person.LastName...

Any help out there?

Thanks very much.

-KF


Nov 19 '05 #3
Hi KF,

Since the question you mentioned is a very specific one, instead of
searching some separate articles, I've made a simple test page which build
a dummy datatable and populate a "person" class's instance collection from
the datatable and bind it to a datagrid for displaying, below is the
completet code. Also, I think you can try have a look in the www. asp.net
or codeproject site to see whether there are any good examples or articles
there.

Hope helps,

========aspx============
<HTML>
<HEAD>
<title>objectPopulate</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid>
</form>
</body>
</HTML>
========code behind============
namespace DemoWebApp
{
public class objectPopulate : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DataGrid DataGrid1;

private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
DataGrid1.DataSource = GetPersons();
DataGrid1.DataBind();
}
}
private DataTable GetDataSource()
{
DataTable dt = new DataTable();

dt.Columns.Add("id",typeof(long));
dt.Columns.Add("name",typeof(string));
dt.Columns.Add("age",typeof(int));
dt.Columns.Add("email",typeof(string));

for(int i=0;i<10;i++)
{
DataRow dr = dt.NewRow();
dr[0] = i+1;
dr[1] = "Name_" + dr[0];
dr[2] = 25 + i;
dr[3] = dr[1] + "@test.org";

dt.Rows.Add(dr);
}

return dt;
}

private Person[] GetPersons()
{
DataTable dt = GetDataSource();

Person[] persons = new Person[dt.Rows.Count];

for(int i=0;i<persons.Length;i++)
{
Person person = new Person();
person.Id = (long)dt.Rows[i][0];
person.Name = (string)dt.Rows[i][1];
person.Age = (int)dt.Rows[i][2];
person.Email = (string)dt.Rows[i][3];

persons[i] = person;
}

return persons;
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}

private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion
}
public class Person
{
long _id;
string _name;
int _age;
string _email;

public long Id
{
get
{
return _id;
}
set
{
_id = value;
}
}

public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}

public int Age
{
get
{
return _age;
}
set
{
_age = value;
}
}

public string Email
{
get
{
return _email;
}
set
{
_email = value;
}
}
public Person():this(0,"",20,"")
{
}

public Person(long id, string name, int age, string email)
{
_id = id;
_name = name;
_age = age;
_email = email;
}
}
}

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Reply-To: "ke*****@nospam.nospam" <ke*****@u.washington.edu>
| From: <ke*****@nospam.nospam>
| References: <uH**************@tk2msftngp13.phx.gbl>
<O0*************@TK2MSFTNGP09.phx.gbl>
| Subject: Re: code sample wanted: creating and populating a collection of
objects from a datasource?
| Date: Wed, 17 Aug 2005 15:17:19 -0700
| Lines: 44
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| Message-ID: <#m**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: idea.urel.washington.edu 128.95.9.12
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118752
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thank you very much, Steve, that's quite helpful.
|
| Does anyone have additional examples, or a C# example that I could look
at?
|
| Thanks
| -KF
|
|
| "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
| news:O0*************@TK2MSFTNGP09.phx.gbl...
| > This BarGraph web control contains a collection of Bar objects.
| > Full source code is included:
| > http://www.SteveOrr.net/articles/BarGraphs.aspx
| >
| > --
| > I hope this helps,
| > Steve C. Orr, MCSD, MVP
| > http://SteveOrr.net
| >
| >
| > <ke*****@nospam.nospam> wrote in message
| > news:uH**************@tk2msftngp13.phx.gbl...
| >> 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
Person.FirstName,
| >> Person.LastName, Person.ID with data, iterate to the next item in the
| >> datasource, instantiate another person, fill Person.FirstName,
| >> Person.LastName...
| >>
| >> Any help out there?
| >>
| >> Thanks very much.
| >>
| >> -KF
| >>
| >
| >
|
|
|

Nov 19 '05 #4
Super. Awesome. This is great. Thank you so much, Steven.

Examples of this sort are surprisingly scarce: most online examples seem
work directly against the data objects rather than dyamically populating
custom objects as you've done here.

Thanks again.
-KF

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:5l**************@TK2MSFTNGXA01.phx.gbl...
Hi KF,

Since the question you mentioned is a very specific one, instead of
searching some separate articles, I've made a simple test page which build
a dummy datatable and populate a "person" class's instance collection from
the datatable and bind it to a datagrid for displaying, below is the
completet code. Also, I think you can try have a look in the www. asp.net
or codeproject site to see whether there are any good examples or articles
there.

Hope helps,

========aspx============
<HTML>
<HEAD>
<title>objectPopulate</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid>
</form>
</body>
</HTML>
========code behind============
namespace DemoWebApp
{
public class objectPopulate : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DataGrid DataGrid1;

private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{
DataGrid1.DataSource = GetPersons();
DataGrid1.DataBind();
}
}
private DataTable GetDataSource()
{
DataTable dt = new DataTable();

dt.Columns.Add("id",typeof(long));
dt.Columns.Add("name",typeof(string));
dt.Columns.Add("age",typeof(int));
dt.Columns.Add("email",typeof(string));

for(int i=0;i<10;i++)
{
DataRow dr = dt.NewRow();
dr[0] = i+1;
dr[1] = "Name_" + dr[0];
dr[2] = 25 + i;
dr[3] = dr[1] + "@test.org";

dt.Rows.Add(dr);
}

return dt;
}

private Person[] GetPersons()
{
DataTable dt = GetDataSource();

Person[] persons = new Person[dt.Rows.Count];

for(int i=0;i<persons.Length;i++)
{
Person person = new Person();
person.Id = (long)dt.Rows[i][0];
person.Name = (string)dt.Rows[i][1];
person.Age = (int)dt.Rows[i][2];
person.Email = (string)dt.Rows[i][3];

persons[i] = person;
}

return persons;
}

#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
InitializeComponent();
base.OnInit(e);
}

private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);

}
#endregion
}
public class Person
{
long _id;
string _name;
int _age;
string _email;

public long Id
{
get
{
return _id;
}
set
{
_id = value;
}
}

public string Name
{
get
{
return _name;
}
set
{
_name = value;
}
}

public int Age
{
get
{
return _age;
}
set
{
_age = value;
}
}

public string Email
{
get
{
return _email;
}
set
{
_email = value;
}
}
public Person():this(0,"",20,"")
{
}

public Person(long id, string name, int age, string email)
{
_id = id;
_name = name;
_age = age;
_email = email;
}
}
}

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Reply-To: "ke*****@nospam.nospam" <ke*****@u.washington.edu>
| From: <ke*****@nospam.nospam>
| References: <uH**************@tk2msftngp13.phx.gbl>
<O0*************@TK2MSFTNGP09.phx.gbl>
| Subject: Re: code sample wanted: creating and populating a collection of
objects from a datasource?
| Date: Wed, 17 Aug 2005 15:17:19 -0700
| Lines: 44
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Response
| Message-ID: <#m**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: idea.urel.washington.edu 128.95.9.12
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118752
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Thank you very much, Steve, that's quite helpful.
|
| Does anyone have additional examples, or a C# example that I could look
at?
|
| Thanks
| -KF
|
|
| "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
| news:O0*************@TK2MSFTNGP09.phx.gbl...
| > This BarGraph web control contains a collection of Bar objects.
| > Full source code is included:
| > http://www.SteveOrr.net/articles/BarGraphs.aspx
| >
| > --
| > I hope this helps,
| > Steve C. Orr, MCSD, MVP
| > http://SteveOrr.net
| >
| >
| > <ke*****@nospam.nospam> wrote in message
| > news:uH**************@tk2msftngp13.phx.gbl...
| >> 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
Person.FirstName,
| >> Person.LastName, Person.ID with data, iterate to the next item in the
| >> datasource, instantiate another person, fill Person.FirstName,
| >> Person.LastName...
| >>
| >> Any help out there?
| >>
| >> Thanks very much.
| >>
| >> -KF
| >>
| >
| >
|
|
|

Nov 19 '05 #5
You're welcome KF,

Glad that it is of assistance. :-)

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Reply-To: "ke*****@nospam.nospam" <ke*****@u.washington.edu>
| From: <ke*****@nospam.nospam>
| References: <uH**************@tk2msftngp13.phx.gbl>
<O0*************@TK2MSFTNGP09.phx.gbl>
<#m**************@tk2msftngp13.phx.gbl>
<5l**************@TK2MSFTNGXA01.phx.gbl>
| Subject: Re: code sample wanted: creating and populating a collection of
objects from a datasource?
| Date: Wed, 17 Aug 2005 20:45:54 -0700
| Lines: 268
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <O2**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: idea.urel.washington.edu 128.95.9.12
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:118790
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Super. Awesome. This is great. Thank you so much, Steven.
|
| Examples of this sort are surprisingly scarce: most online examples seem
| work directly against the data objects rather than dyamically populating
| custom objects as you've done here.
|
| Thanks again.
| -KF
|
| "Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
| news:5l**************@TK2MSFTNGXA01.phx.gbl...
| > Hi KF,
| >
| > Since the question you mentioned is a very specific one, instead of
| > searching some separate articles, I've made a simple test page which
build
| > a dummy datatable and populate a "person" class's instance collection
from
| > the datatable and bind it to a datagrid for displaying, below is the
| > completet code. Also, I think you can try have a look in the www.
asp.net
| > or codeproject site to see whether there are any good examples or
articles
| > there.
| >
| > Hope helps,
| >
| > ========aspx============
| > <HTML>
| > <HEAD>
| > <title>objectPopulate</title>
| > <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
| > <meta name="CODE_LANGUAGE" Content="C#">
| > <meta name="vs_defaultClientScript" content="JavaScript">
| > <meta name="vs_targetSchema"
| > content="http://schemas.microsoft.com/intellisense/ie5">
| > </HEAD>
| > <body>
| > <form id="Form1" method="post" runat="server">
| > <asp:DataGrid id="DataGrid1" runat="server"></asp:DataGrid>
| > </form>
| > </body>
| > </HTML>
| >
| >
| > ========code behind============
| > namespace DemoWebApp
| > {
| > public class objectPopulate : System.Web.UI.Page
| > {
| > protected System.Web.UI.WebControls.DataGrid DataGrid1;
| >
| > private void Page_Load(object sender, System.EventArgs e)
| > {
| > if(!IsPostBack)
| > {
| > DataGrid1.DataSource = GetPersons();
| > DataGrid1.DataBind();
| > }
| > }
| >
| >
| > private DataTable GetDataSource()
| > {
| > DataTable dt = new DataTable();
| >
| > dt.Columns.Add("id",typeof(long));
| > dt.Columns.Add("name",typeof(string));
| > dt.Columns.Add("age",typeof(int));
| > dt.Columns.Add("email",typeof(string));
| >
| > for(int i=0;i<10;i++)
| > {
| > DataRow dr = dt.NewRow();
| > dr[0] = i+1;
| > dr[1] = "Name_" + dr[0];
| > dr[2] = 25 + i;
| > dr[3] = dr[1] + "@test.org";
| >
| > dt.Rows.Add(dr);
| > }
| >
| > return dt;
| > }
| >
| > private Person[] GetPersons()
| > {
| > DataTable dt = GetDataSource();
| >
| > Person[] persons = new Person[dt.Rows.Count];
| >
| > for(int i=0;i<persons.Length;i++)
| > {
| > Person person = new Person();
| > person.Id = (long)dt.Rows[i][0];
| > person.Name = (string)dt.Rows[i][1];
| > person.Age = (int)dt.Rows[i][2];
| > person.Email = (string)dt.Rows[i][3];
| >
| > persons[i] = person;
| > }
| >
| > return persons;
| > }
| >
| > #region Web Form Designer generated code
| > override protected void OnInit(EventArgs e)
| > {
| > InitializeComponent();
| > base.OnInit(e);
| > }
| >
| > private void InitializeComponent()
| > {
| > this.Load += new System.EventHandler(this.Page_Load);
| >
| > }
| > #endregion
| > }
| >
| >
| > public class Person
| > {
| > long _id;
| > string _name;
| > int _age;
| > string _email;
| >
| > public long Id
| > {
| > get
| > {
| > return _id;
| > }
| > set
| > {
| > _id = value;
| > }
| > }
| >
| > public string Name
| > {
| > get
| > {
| > return _name;
| > }
| > set
| > {
| > _name = value;
| > }
| > }
| >
| > public int Age
| > {
| > get
| > {
| > return _age;
| > }
| > set
| > {
| > _age = value;
| > }
| > }
| >
| > public string Email
| > {
| > get
| > {
| > return _email;
| > }
| > set
| > {
| > _email = value;
| > }
| > }
| >
| >
| > public Person():this(0,"",20,"")
| > {
| > }
| >
| > public Person(long id, string name, int age, string email)
| > {
| > _id = id;
| > _name = name;
| > _age = age;
| > _email = email;
| > }
| > }
| > }
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | Reply-To: "ke*****@nospam.nospam" <ke*****@u.washington.edu>
| > | From: <ke*****@nospam.nospam>
| > | References: <uH**************@tk2msftngp13.phx.gbl>
| > <O0*************@TK2MSFTNGP09.phx.gbl>
| > | Subject: Re: code sample wanted: creating and populating a collection
of
| > objects from a datasource?
| > | Date: Wed, 17 Aug 2005 15:17:19 -0700
| > | Lines: 44
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Response
| > | Message-ID: <#m**************@tk2msftngp13.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet
| > | NNTP-Posting-Host: idea.urel.washington.edu 128.95.9.12
| > | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msft ngp13.phx.gbl
| > | Xref: TK2MSFTNGXA01.phx.gbl
| > microsoft.public.dotnet.framework.aspnet:118752
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| > |
| > | Thank you very much, Steve, that's quite helpful.
| > |
| > | Does anyone have additional examples, or a C# example that I could
look
| > at?
| > |
| > | Thanks
| > | -KF
| > |
| > |
| > | "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
| > | news:O0*************@TK2MSFTNGP09.phx.gbl...
| > | > This BarGraph web control contains a collection of Bar objects.
| > | > Full source code is included:
| > | > http://www.SteveOrr.net/articles/BarGraphs.aspx
| > | >
| > | > --
| > | > I hope this helps,
| > | > Steve C. Orr, MCSD, MVP
| > | > http://SteveOrr.net
| > | >
| > | >
| > | > <ke*****@nospam.nospam> wrote in message
| > | > news:uH**************@tk2msftngp13.phx.gbl...
| > | >> 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
| > Person.FirstName,
| > | >> Person.LastName, Person.ID with data, iterate to the next item in
the
| > | >> datasource, instantiate another person, fill Person.FirstName,
| > | >> Person.LastName...
| > | >>
| > | >> Any help out there?
| > | >>
| > | >> Thanks very much.
| > | >>
| > | >> -KF
| > | >>
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 19 '05 #6

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

Similar topics

242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
14
by: Ian Richardson | last post by:
I'm writing a large Javascript application (uncompressed source around 400K) which is doing almost all the initialisation it needs to in a just-in-time manner. However, I have included an option...
9
by: Steve Jorgensen | last post by:
First, an example - today, I wanted to print out the parameter values in a querydef object at a break point in the code for subsequent manual debugging of the query. In the past, I would have had...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
3
by: MattC | last post by:
Hi, I have a collection class derived from ArrayList, it stores colletions of objects from my objet model. I Didn't want to have to create a specialised collection for each object type so I...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
4
by: Larry Grady | last post by:
Anyone up for a challenge? I've been struggling with this for a few days and was hoping someone could help me. Pouring through all the messageboards I just can't find the solution. We have a...
13
by: Woody Splawn | last post by:
From a Winform I am calling the sub routine that follows in a module Public Sub PopulateWithStates(ByVal myform As Contracts, ByVal FieldName As String) Select Case FieldName Case "txtST"...
15
by: CR | last post by:
I've noticed that the trend these days is to declare variables in the middle of code instead of at the top. What is the advantage of this? It seems like it makes it hard to reuse variables. Here...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.