How can I to divide the .aspx page to different parts with different functionality in a neat and organized manner. Is there any control that can do that?
You can use Panel controls, which render as HTML div elements. You can then show or hide the panels by enabling/disabling them. In addition, you can specify different formatting options for different Panels/divs using manual formatting or CSS styles.
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();