Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
AnswerRe: ContextMenu Pin
Wjousts21-Sep-05 9:42
Wjousts21-Sep-05 9:42 
QuestionEncoding Problem Pin
Meysam Mahfouzi21-Sep-05 8:13
Meysam Mahfouzi21-Sep-05 8:13 
AnswerRe: Encoding Problem Pin
David Stone21-Sep-05 10:55
sitebuilderDavid Stone21-Sep-05 10:55 
GeneralRe: Encoding Problem Pin
Meysam Mahfouzi21-Sep-05 18:27
Meysam Mahfouzi21-Sep-05 18:27 
Questionconfusion with datatable sorting/finding Pin
melanieab21-Sep-05 7:49
melanieab21-Sep-05 7:49 
AnswerRe: confusion with datatable sorting/finding Pin
Wjousts21-Sep-05 9:52
Wjousts21-Sep-05 9:52 
GeneralRe: confusion with datatable sorting/finding Pin
melanieab21-Sep-05 10:23
melanieab21-Sep-05 10:23 
QuestionHelp! C#/ASP.NET/Dreamweaver Pin
Cpen21-Sep-05 7:29
Cpen21-Sep-05 7:29 
Hello im very new here and thought this was a great website/forum to help me with my very fustrating question. I have 3 drop down boxes (example,stage1,stage2 ID's) a Add button(btnadd) and a label(lbldesc). The drop down box are arrays with multiple selections.. example...

The dropdown boxes and selection:
[example] [stage1] [stage2]
1st selection [nike] [$100]
[shoe] [shoe 2] [$200] [Add]
[shoe 3] [300]

so on and so forth..


let say I choose Shoe Nike that cost 100.00

I have the Add button(btnadd) to post to the label on a form on the SAME page.

Form below the dropdownbox

description | Price
---------------------------------------------------
Shoe Nike | 100.00
(cmbostate + stage 2) | (stage 3)
---------------------------------------------------
Total |100.00


what is the easiest way to do this?
here is some snippets of code that i took off my source.

the event:

public void Page_Load(Object sender, EventArgs E) {
}
void btnAdd_Click(object sender, EventArgs e) {
lbldesc.Text = cmbostate.Text; (Ill put the rest of the code was just trying to see if it worked with the first dropdownbox)
}


my "add button":

<asp:button id="btnAdd" text="Add" runat="server" onclick="btnadd_Click">

my "label":
<asp:label id="lbldesc" runat="server">

my combo box:
cmbostate, stage 2, stage 3

i get a strange error telling me that:
error CS0246: The type or namespace name 'cmbostate' could not be found.


Anyone who can help me is greatly appreciated. Thanks!
QuestionChange Font for DataGrid Column Pin
zaboboa21-Sep-05 6:27
zaboboa21-Sep-05 6:27 
AnswerRe: Change Font for DataGrid Column Pin
deep721-Sep-05 19:30
deep721-Sep-05 19:30 
GeneralRe: Change Font for DataGrid Column Pin
zaboboa22-Sep-05 2:56
zaboboa22-Sep-05 2:56 
QuestionUpdate MySQL databases Pin
Ming Luo21-Sep-05 6:19
Ming Luo21-Sep-05 6:19 
QuestionEditable tab page title Pin
MotherNuBBeR21-Sep-05 6:06
MotherNuBBeR21-Sep-05 6:06 
AnswerRe: Editable tab page title Pin
Dario Solera21-Sep-05 6:25
Dario Solera21-Sep-05 6:25 
QuestionHow to read text from the interface of another application? Pin
AndyH7021-Sep-05 5:38
AndyH7021-Sep-05 5:38 
QuestionMultiline Crystal Reports (Wrap Word) Pin
| Muhammad Waqas Butt |21-Sep-05 5:17
professional| Muhammad Waqas Butt |21-Sep-05 5:17 
Questioninstalled applications Pin
Mridang Agarwalla21-Sep-05 4:18
Mridang Agarwalla21-Sep-05 4:18 
AnswerRe: installed applications Pin
David Stone21-Sep-05 10:38
sitebuilderDavid Stone21-Sep-05 10:38 
QuestionActive X Control In C# Web App Pin
Adrian Metcalfe21-Sep-05 4:16
Adrian Metcalfe21-Sep-05 4:16 
AnswerRe: Active X Control In C# Web App Pin
Judah Gabriel Himango21-Sep-05 4:41
sponsorJudah Gabriel Himango21-Sep-05 4:41 
GeneralRe: Active X Control In C# Web App Pin
Adrian Metcalfe21-Sep-05 5:11
Adrian Metcalfe21-Sep-05 5:11 
GeneralRe: Active X Control In C# Web App Pin
Judah Gabriel Himango21-Sep-05 5:47
sponsorJudah Gabriel Himango21-Sep-05 5:47 
GeneralRe: Active X Control In C# Web App Pin
Adrian Metcalfe21-Sep-05 21:22
Adrian Metcalfe21-Sep-05 21:22 
GeneralRe: Active X Control In C# Web App Pin
Judah Gabriel Himango22-Sep-05 4:04
sponsorJudah Gabriel Himango22-Sep-05 4:04 
GeneralRe: Active X Control In C# Web App Pin
Adrian Metcalfe22-Sep-05 4:35
Adrian Metcalfe22-Sep-05 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.