c# - Datepicker problem -
i'm trying edit entry in xml. when page loads setting fields value in element. eg.
titletxt.text = (string)assignment.element("title");
the problem when use date picker try , change value, on return edit page, page reloaded , of values reset saved ones including datepicker (the value picked overwritten). datepicker im using:
datetxt.value = ((datetime)assignment.element("date"));
i have tried using on navigated , many more things unfortunatly, these make impossible different entry loaded.
thanks!
try using datetime.parse() parse element value:
datetime.parse(assignment.element("date").value);
Comments
Post a Comment