4
Answers

Use of DateTimePicker

Navneet Nayak

Navneet Nayak

8y
247
1
I am making a form where i am adding DateTimePicker....
but after adding it is showing a default value as a date, i want it to be empty or <enter date> should be the default string...
after that i can click on the datetimepicker and select the date...
 
please suggest some code....!!!
thank u.. 
Answers (4)
0
Iftikar Hussain
NA 18.9k 275.5k 11y
Hi,
        Try like this, use unadorned:yes;

ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "javascript:var ans = window.showModalDialog('TransactionHistoryDetail.aspx?' + '&rowID=" + rowID + "&Type=" + OrderType + "&OrderNo=" + OrderNo + "', 'unadorned:yes;dialogWidth=1000px;dialogHeight=700px;resizable: yes;dialogLeft=' + ((screen.width - 1000) / 2) + ';dialogTop=' + (screen.height - 700) / 2 + ''); ", true);

Regards,
Iftikar