ericjgagnon / wickedpicker

A simple jQuery timepicker
http://ericjgagnon.github.io/wickedpicker/
MIT License
93 stars 78 forks source link

Display time from variable in database and edit using wickedpicker #80

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello, I would like to display a time variable in a textbox that is populated from a database using an ASP textbox control. Can I use wickedpicker to edit the time from the populated value?

Any ideas with examples would be helpful.

Thanks in advance!

kamalshalaby commented 4 years ago

hi you need to read time from client side using hidden field. This hidden field value will be set at server side. For example: create hidden field on page

now on server side

hd_Time.Value = reg.PickupDateTime.ToString().Replace("AM", "").Replace("PM", "");

in js script on the page