By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,680 Members | 1,868 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,680 IT Pros & Developers. It's quick & easy.

Filling Drop-down list with Data in Com+

P: n/a
hi,
I am using Com+ in my application. It will have
InsertRecords,selectRecords,updateRecords function.
In the Web Form i have Drop-down list. I want to select
records from SQL and add it to this list. I know how to
fill the data in the drop-down list. But i don't know how
to pass this control to Com+. Do we need to pass like

private FillList(Object e)
{
e.DataSource = EmployeeSet;
e.DataMember = "Job";
e.DataTextField = "JobDescription";
e.DataValueField = "JobCode";

if (!IsPostBack)
{
e.DataBind();

}
}

Is it correct?

Thanks,
Ramesh
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Hi Ramesh,

Are you still monitoring this post?
Can you show me more information?

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| X-Tomcat-ID: 146625409
| References: <02****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: v-*****@online.microsoft.com (Jeffrey Tan[MSFT])
| Organization: Microsoft
| Date: Wed, 03 Sep 2003 06:28:36 GMT
| Subject: RE: Filling Drop-down list with Data in Com+
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| Message-ID: <nC**************@cpmsftngxa06.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Lines: 49
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:181770
| NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
|
|
| Hi Ramesh,
|
| I will do some research on your question.
| I will reply you after my research.
|
| I think in your code,the object e must be the drop-down list.
| Does your Filllist method in COM object?
| Do you select your record in COM object?
|
| Best regards,
| Jeffrey Tan
| Microsoft Online Partner Support
| Get Secure! - www.microsoft.com/security
| This posting is provided "as is" with no warranties and confers no rights.
|
| --------------------
| | Content-Class: urn:content-classes:message
| | From: "ramesh" <jr*****@hotmail.com>
| | Sender: "ramesh" <jr*****@hotmail.com>
| | Subject: Filling Drop-down list with Data in Com+
| | Date: Tue, 2 Sep 2003 01:47:00 -0700
| | Lines: 26
| | Message-ID: <02****************************@phx.gbl>
| | MIME-Version: 1.0
| | Content-Type: text/plain;
| | charset="iso-8859-1"
| | Content-Transfer-Encoding: 7bit
| | X-Newsreader: Microsoft CDO for Windows 2000
| | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| | Thread-Index: AcNxLsZsjOZhoSFaT+KKula4Fj8rvQ==
| | Newsgroups: microsoft.public.dotnet.languages.csharp
| | Path: cpmsftngxa06.phx.gbl
| | Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:181451
| | NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| | X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
| |
| | hi,
| | I am using Com+ in my application. It will have
| | InsertRecords,selectRecords,updateRecords function.
| | In the Web Form i have Drop-down list. I want to select
| | records from SQL and add it to this list. I know how to
| | fill the data in the drop-down list. But i don't know how
| | to pass this control to Com+. Do we need to pass like
| |
| | private FillList(Object e)
| | {
| | e.DataSource = EmployeeSet;
| | e.DataMember = "Job";
| | e.DataTextField = "JobDescription";
| | e.DataValueField = "JobCode";
| |
| | if (!IsPostBack)
| | {
| | e.DataBind();
| |
| | }
| | }
| |
| | Is it correct?
| |
| | Thanks,
| | Ramesh
| |
|
|

Nov 15 '05 #2

P: n/a
hi,
I have changed my logic. Instead of passing combo to
COM, I am returning dataset from COM, then i have used the
dataset values to fill the Combo.

Thanks,
Ramesh
-----Original Message-----

Hi Ramesh,

I will do some research on your question.
I will reply you after my research.

I think in your code,the object e must be the drop-down list.Does your Filllist method in COM object?
Do you select your record in COM object?

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "ramesh" <jr*****@hotmail.com>
| Sender: "ramesh" <jr*****@hotmail.com>
| Subject: Filling Drop-down list with Data in Com+
| Date: Tue, 2 Sep 2003 01:47:00 -0700
| Lines: 26
| Message-ID: <02****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNxLsZsjOZhoSFaT+KKula4Fj8rvQ==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:181451| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| hi,
| I am using Com+ in my application. It will have
| InsertRecords,selectRecords,updateRecords function.
| In the Web Form i have Drop-down list. I want to select
| records from SQL and add it to this list. I know how to
| fill the data in the drop-down list. But i don't know how| to pass this control to Com+. Do we need to pass like
|
| private FillList(Object e)
| {
| e.DataSource = EmployeeSet;
| e.DataMember = "Job";
| e.DataTextField = "JobDescription";
| e.DataValueField = "JobCode";
|
| if (!IsPostBack)
| {
| e.DataBind();
|
| }
| }
|
| Is it correct?
|
| Thanks,
| Ramesh
|

.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.