I want slove this problum ???????
ERROR Message
String was not recognized as a valid TimeSpan.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: String was not recognized as a valid TimeSpan.
Source Error:
Line 178: dropdowncourier.SelectedItem.Text= phoneGridView.SelectedRow.Cells[2].Text;
Line 179: dropdowngetphone.SelectedItem.Text = phoneGridView.SelectedRow.Cells[3].Text;
Line 180: TimeSpan PKTime = TimeSpan.Parse(phoneGridView.SelectedRow.Cells[4].Text);
Line 181: int hours = PKTime.Hours;
Line 182: int Minutes = PKTime.Minutes;
MY CODE
dropdowncourier.SelectedItem.Text= phoneGridView.SelectedRow.Cells[2].Text;
dropdowngetphone.SelectedItem.Text = phoneGridView.SelectedRow.Cells[3].Text;
TimeSpan PKTime = TimeSpan.Parse(phoneGridView.SelectedRow.Cells[4].Text);
int hours = PKTime.Hours;
int Minutes = PKTime.Minutes;
TimeSelector1.SetTime(hours, Minutes, TimeSelector1.AmPm);
txtremarks .Text = phoneGridView.SelectedRow.Cells[6].Text;