How to write date-time values of fields in a dataset into xml in a specific format?
Refer Format DateTime Values in XML extracted from Dataset
How to display hierarchical data in a DataGrid
Check out Denis Bauer’s custom control HierarGrid
How to Compare time
VB.NET Dim t1 As String = DateTime.Parse(‘3:30 PM’).ToString(‘t’) Dim t2 As String = DateTime.Now.ToString(‘t’) If DateTime.Compare(DateTime.Parse(t1), DateTime.Parse(t2)) < 0 Then Response.Write(t1.ToString() & ‘ is < than ‘ & t2.ToString()) Else Response.Write(t1.ToString() & ‘ is > than ‘ & t2.ToString()) End If C# string t1 = DateTime.Parse(‘3:30 PM’).ToString(‘t’); string t2 = DateTime.Now.ToString(‘t’); if (DateTime.Compare(DateTime.Parse (t1), DateTime.Parse (t2)) < 0 ) { Response.Write(t1.ToString() + ‘ is < than ‘ + t2.ToString()); } else { Response.Write(t1.ToString() + ‘ is > than ‘ + t2.ToString()); }
I am running the query SQL=’Select name from profile where proID=1′; and I am getting the result in Dataset dsdata. How can I read the text from the dataset and assign it to textbox1.text ?
VB.NET Textbox1.Text= dsData.Tables(0).Rows(0)(‘FieldName’).ToString() C# TextBox1.Text=dsData.Tables[0].Rows[0][‘FieldName’].ToString();
Is there any control that allows user to select a time from a clock – in other words is there a clock control?
Peter Blum has developed some controls. Check out Peter’s Date Package: TimeOfDayTextBox and DurationTextBox Controls