Skip to content Skip to sidebar Skip to footer

Button Clicked Function Error In Xamarin

I have a simple dialog fragment with a cancel and save button. When cancel is clicked dialog is dismissed. And when I clicked save button an error occur saying. 'object reference n

Solution 1:

Your EditText is named numOfdays (small 'd'). I don't know where and how numOfDays (with capital 'D') is defined and why don't you get a compiler error, but anyway I think it is always null, since you never assign a value to it. Sometimes these errors just need another eyes to be seen :-)


Post a Comment for "Button Clicked Function Error In Xamarin"