Solved

getting a value of combo box?

Posted on 2006-10-26
2
226 Views
Last Modified: 2010-04-16
       datePeriod.Update(edtDatePeriodName.Text.Trim(), (int)cboDateTimeUnit.SelectedItem.DataValue, edtDatePeriodNumber.Value, (int)cboDatePeriodType.SelectedItem.DataValue);
     

cboDatePeriodType how do I get the value(contents) from this.
       
0
Comment
Question by:mathieu_cupryk
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
brazzle earned 250 total points
ID: 17814221
hi Mathieu,

here is a way to do it (looks like you want an int out of it):

int x = int.Parse(cboDatePeriodType.Text);
0
 
LVL 2

Expert Comment

by:brazzle
ID: 17816972
thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Diagnostics with Net and Net.Sockets 2 31
Hey Audio! 9 44
Hey!!!! 1 24
Winform Module - What is the ASP.Net equiv 2 28
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question