Wednesday, August 15, 2012

Binding Datetime to Textbox in Silverlight

Binding Datetime to Textbox in Silverlight

I have couple of tables in database with Datatype DateTime and default value getdate() in sql server. while I am binding this to textbox it is displaying 1/1/0001 as default. I am using Silverlight Ria services.

<TextBox Text="{Binding Mode=TwoWay, Path=LST_UPDT_TS, StringFormat=\{0:D\}}"/> 

Thank you for helping and for ur time..

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog