473,322 Members | 1,398 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,322 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 2253
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.