473,772 Members | 2,564 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Filling Drop-down list with Data in Com+

hi,
I am using Com+ in my application. It will have
InsertRecords,s electRecords,up dateRecords 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.DataValueFiel d = "JobCode";

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

}
}

Is it correct?

Thanks,
Ramesh
Nov 15 '05 #1
2 2377

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.mi crosoft.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.publi c.dotnet.langua ges.csharp
| Message-ID: <nC************ **@cpmsftngxa06 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Lines: 49
| Path: cpmsftngxa06.ph x.gbl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1817 70
| 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*****@hotmai l.com>
| | Sender: "ramesh" <jr*****@hotmai l.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: AcNxLsZsjOZhoSF aT+KKula4Fj8rvQ ==
| | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| | Path: cpmsftngxa06.ph x.gbl
| | Xref: cpmsftngxa06.ph x.gbl
microsoft.publi c.dotnet.langua ges.csharp:1814 51
| | NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
| |
| | hi,
| | I am using Com+ in my application. It will have
| | InsertRecords,s electRecords,up dateRecords 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.DataValueFiel d = "JobCode";
| |
| | if (!IsPostBack)
| | {
| | e.DataBind();
| |
| | }
| | }
| |
| | Is it correct?
| |
| | Thanks,
| | Ramesh
| |
|
|

Nov 15 '05 #2
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*****@hotmai l.com>
| Sender: "ramesh" <jr*****@hotmai l.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: AcNxLsZsjOZhoSF aT+KKula4Fj8rvQ ==
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Path: cpmsftngxa06.ph x.gbl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1814 51| NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| hi,
| I am using Com+ in my application. It will have
| InsertRecords,s electRecords,up dateRecords 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.DataValueFiel d = "JobCode";
|
| if (!IsPostBack)
| {
| e.DataBind();
|
| }
| }
|
| Is it correct?
|
| Thanks,
| Ramesh
|

.

Nov 15 '05 #3

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

Similar topics

0
2235
by: zelnaga | last post by:
i'm connecting to the internet via a proxy, and am having problems filling out forms... below is the code i have, and below that is the http request i am trying to make it look like. they look the same to me, but it isn't working, so i guess they aren't... $proxy = fsockopen("tcp://someaddresshere", 80, $errno, $errstr); $temp = "somethingelse=blablabla"; fputs($proxy,"GET somesite HTTP/1.0\r\n"); fputs($proxy,"Accept: */*\r\n");
2
1869
by: George | last post by:
How can I do the following in python: given two strings: form=""" <html> <head> <title> My Sample Web Page </title> </head> <body bgcolor="white"> <p> What are the weekdays? <ol>
1
2103
by: jobi.joy | last post by:
I have a requirement of having the capability of offline form filling for my website.So users can some way download the form and can fill out in offline mode. Any standard way to do this. I am not interested to write a webservices or complex Smart client for this. Any simple way like manipulating it in HTML applications(HTA). Any thoughts on it? Regards
1
2961
by: gaucho | last post by:
Hi all, I'm experiencing some problems when filling in bookmarks in word. With my first query (single row returned), no problem at all. Yet, with my new query (which now return 2 rows), i get some error message. --> "Too few parameters, expected 1). I'm having a table which describes what bookmark fits to what field. I query this table to generically fill out my word-document.
5
7033
by: Cybertof | last post by:
Hello, Is it necessary to initially fill a dataset to be able to add a new row to the dataset and then update the undercover database ? (In the case of a very large database, this would mean that all the database content should be loaded before beeing able to add a new row, and i don't want to load anything...) Is it possible in the following code to remove the "// CAN THIS BE REMOVED ?"
3
3671
by: MSDousti | last post by:
Hello I want to write a C# (or VB.NET) program which reads the structure of a PE (odinary win32 executable) file. These files have a long header (512 bytes or so). The definition of the header exists in WINNT.h file (you can see many "struct"s there). Here comes my problem: how can I read a file and "fill" the structs?
1
1674
by: utkuozan | last post by:
I want to fill an existing ListView with colors and color codes. All color codes are held in an ArrayList as RGB. I have two columns in ListView. I want to fill the ListView with items as the color index as text and having a small thumbnail of the color as Image. Filling the text is quite easy. ( ColorIndexArray .ToString ( ) ) But how can I add the color, for example {123,23,41} as the image in front of the text? Is it possible to...
1
2126
by: thegame | last post by:
Filling One DataGrid Based on Selection from Another DataGrid - Both in Separate User Controls Hello, I have an interesting dilemma. I have an ASPX page with two user controls (two ASCXs). Both ASCXs have DataGrids on them. The first user control's DataGrid is populated from our database on page load. The DataGrid also has a Select LinkButton.
2
2273
by: Parveen | last post by:
When I fill the same dataset table with new information from the database, instead of writing over any previous data, the fill method appends to existing records in this dataset table. Is there a way by which I can overwrite existing data in the dataset instead of appending to it? Thanks, Parveen
18
5155
by: Joe Lester | last post by:
This thread was renamed. It used to be: "shared_buffers Question". The old thread kind of died out. I'm hoping to get some more direction by rephrasing the problem, along with some extra observations I've recently made. The core of the problem is that Postgres is filling up my hard drive with swap files at the rate of around 3 to 7 GB per week (that's Gigabytes not Megabytes) . At this rate it takes roughly two months to fill up my 40...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10039
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8937
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7461
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2851
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.