TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Manu xaml
NA
19
0
trying to get 2 separate values in alert box
Apr 24 2009 5:58 PM
On my error message both inspStartTime.StartTime & inspEndTime.EndTime end up being the same values returned. Although they each belogn to a different textbox. Any clues?
[CODE]
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(myVisual); i++)
{
// Retrieve child visual at specified index value.
Visual childVisual = (Visual)VisualTreeHelper.GetChild(myVisual, i);
// Do processing of the child visual object.
if (childVisual is TextBox)
{
MaskedTextBox btn = (MaskedTextBox)childVisual;
//Check first to see if the element is null
if (btn.Tag != null)
{
inspStartTime = new InspectionTime();
inspStartTime.TimeID = Convert.ToInt32(btn.Uid);
inspStartTime.StartTime = btn.Text;
inspEndTime = new InspectionTime();
inspEndTime.TimeID = Convert.ToInt32(btn.Uid);
inspEndTime.EndTime = btn.Text;
// updateMileage = Convert.ToInt32(StartTime.Text.Trim());
// updateMileage = Convert.ToInt32(EndTime.Text.Trim());
{
control.ShowErrorMessage("Litte Test." + inspStartTime.StartTime + " " + inspEndTime.EndTime, MessageBoxImage.Exclamation);
}
[/CODE]
Reply
Answers (
0
)
validate between time start and time end
Set SelectedIndex dynamically from datagrid