c# - date and time control format -
I have used the Ajax Calendar Amplifier to display the date in Date_Box, and then select the time to expand the numeric expander. ..
Here is my code:
& lt; Td bgcolor = "# 969ECD" & gt; & Amp; Nbsp; & Nbsp; & Nbsp; & Lt; ASP: Text Box ID = "Deadbox" Runat = "Server" width = "85px" & gt; & Lt; / Asp: text box & gt; & Amp; Nbsp; & Lt; Br / & gt; & Lt; Div style = "height: 4px" & gt; & Lt; / Div & gt; & Amp; Nbsp; & Nbsp; & Nbsp; & Lt; ASP: Text Box ID = "TextTure" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; AjaxToolkit: NumericUpDownExtender id = "txtHour_NumericUpDownExtender" runat = "server" enabled = "true" max = "12" min = "1" target control = "1x" width = "70" & gt; & Lt; / AjaxToolkit: NumericUpDownExtender & gt; & Lt; ASP: Textbox ID = "TextMinute" Run = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; AjaxToolkit: NumericUpDownExtender id = "txtMinute_NumericUpDownExtender" runat = "server" enabled = "true" max = "59" min = "1" target ControlID = "txtMinute" width = "70" & gt; & Lt; / AjaxToolkit: NumericUpDownExtender & gt; & Lt; ASP: Text Box ID = "TextType" Run = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; AjaxToolkit: NumericUpDownExtender id = "txtDayPart_NumericUpDownExtender" runat = "server" enabled = "true" ref = "AM; PM" targetControlID = "tttdpart" width = "70" & gt; & Lt; / AjaxToolkit: NumericUpDownExtender & gt; & Lt; Asp: button id = "update" runat = "server" text = "update" onclick = "update_Click1" /> & Lt; Br / & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt; & Lt; / Div & gt; & Lt; AjaxToolkit: CalendarAdditional id = "CalendarExtender1" runat = "server" targetcontrol idid = "datebox" popupposition = "topwrite" & gt; & Lt; / AjaxToolkit: CalendarExtender & gt; Now the only problem is that when I write something in the text box and click on the update button, instead of accepting the values, it's something more No other examples from the date format should be typed ... There is no alphabet in the text box. This can still use some exception message ...
But The main problem now is that the look of control is numeric Extra buttons are very large and the line format is not good, there is a lot of space between the text box three times here ... there is a way to look clear in this way >>>
how can I solve this problem ... any suggestions ???!
There is an image link
The easiest thing is that your numerical expander Assign a CssClass
and use CSS to fix layout problems.
Comments
Post a Comment