Wrox Programmer Forums
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 3rd, 2004, 04:02 AM
Authorized User
 
Join Date: Dec 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default combobox

Please I need information how to bind combobox to database:
*cmb - combobox
*txt - textbox
And I would like to have in one cmb all Profil_ID in second cmb all Prog_Id and when I choose first and second cmb in 6 txt I would like to retrive and be able to update Param_1,...,Param_6 ...
I couldn't do it for 2 days ... HELP me PLEASE

------database-------
CREATE DOMAIN For_Prog_ID AS VARCHAR(20);
CREATE DOMAIN For_SubProgs As VARCHAR(20);

CREATE TABLE Profile_Base(
Profil_ID For_SubProgs NOT NULL PRIMARY KEY,
Param_1 FLOAT,
Param_2 FLOAT,
Param_3 FLOAT,
Param_4 FLOAT,
Param_5 FLOAT,
Param_6 FLOAT
);

CREATE TABLE Progs (
Prog_ID For_Prog_ID NOT NULL PRIMARY KEY,
Profile_S1 For_SubProgs,
Profile_S2 For_SubProgs,
Tenon_S1_S1 For_SubProgs,
Tenon_S1_S2 For_SubProgs,
Tenon_S2_S1 For_SubProgs,
Tenon_S2_S2 For_SubProgs,
FOREIGN KEY (Profile_S1) REFERENCES Profile_Base (Profil_ID)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (Profile_S2) REFERENCES Profile_Base (Profil_ID)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (Tenon_S1_S1) REFERENCES Profile_Base (Profil_ID)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (Tenon_S1_S2) REFERENCES Profile_Base (Profil_ID)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (Tenon_S2_S1) REFERENCES Profile_Base (Profil_ID)
ON UPDATE CASCADE
ON DELETE CASCADE,
FOREIGN KEY (Tenon_S1_S2) REFERENCES Profile_Base (Profil_ID)
ON UPDATE CASCADE
ON DELETE CASCADE
);
-----end-----

 
Old February 8th, 2005, 05:37 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to i love shane
Default



<configuration>
       <system.web>
           <customErrors mode="off"/>
      <system.com/>
</configuration>






Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox nagarajuballa Java GUI 0 August 13th, 2008 03:49 AM
Filling Combobox with value from other Combobox ayazhoda Access VBA 6 June 5th, 2007 04:58 AM
Combobox stepdev Excel VBA 1 May 22nd, 2006 02:50 PM
New to ComboBox adriant42 Excel VBA 3 August 23rd, 2004 12:32 PM
ComboBox: HELP! ;) ashley_y ADO.NET 1 December 29th, 2003 10:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.