none
Deleted RRS feed

Answers

  • Hi SriniSrinivas,

    As Viorel saild dropdown.SelectedValue is not a valid integer number, I would suggest you could use int.Trypse

    int number;
    bool result = Int32.TryParse(dropdown.selectedvalue.ToString().Trim(), out number);
    

    For more information, please refer to:

    https://msdn.microsoft.com/en-us/library/f02979c7%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 3, 2016 5:15 AM
    Moderator

All replies

  • For some reasons, dropdown.SelectedValue is not a valid integer number. Maybe it is empty, or contains non-digits. Try investigating the causes, starting by determining the actual value. For example, put a breakpoint here and watch the value in Visual Studio. Show the results of your investigations.

    As a suggestion, visit https://forums.asp.net/ too, which is a resource specialised on ASP.


    • Edited by Viorel_MVP Friday, September 30, 2016 7:08 PM
    Friday, September 30, 2016 7:08 PM
  • Hi SriniSrinivas,

    As Viorel saild dropdown.SelectedValue is not a valid integer number, I would suggest you could use int.Trypse

    int number;
    bool result = Int32.TryParse(dropdown.selectedvalue.ToString().Trim(), out number);
    

    For more information, please refer to:

    https://msdn.microsoft.com/en-us/library/f02979c7%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, October 3, 2016 5:15 AM
    Moderator