How can I to get the path to the system area that holds temporary files?

Use System.IO namespace VB.NET Dim filePath As String = Path.GetTempPath() Dim fileName As String = Path.GetTempFileName() Response.Write((filePath + ‘ ‘)) Response.Write(fileName) C# string filePath =Path.GetTempPath (); string fileName = Path.GetTempFileName(); Response.Write (filePath + ‘ ‘ ); Response.Write (fileName );

How to format a Telephone number in the xxx-xxx-xxxx format

VB.NET Dim Telno As Double = Double.Parse(ds.Tables(0).Rows(0)(‘TelNo’).ToString()) Response.Write(Telno.ToString(‘###-###-####’)) C# double Telno= double.Parse(ds.Tables[0].Rows[0][‘TelNo’].ToString()); Response.Write(Telno.ToString(‘###-###-####’));

How to bind an ArrayList to a DropDownList

VB.NET Dim arrList As ArrayList = New ArrayList arrList.Add(‘Faq’) arrList.Add(‘Tips’) arrList.Add(‘Tricks’) DropDownList1.DataSource = arrList DropDownList1.DataBind() C# ArrayList arrList = new ArrayList(); arrList.Add(‘Faq’); arrList.Add(‘Tips’); arrList.Add(‘Tricks’); DropDownList1.DataSource = arrList; DropDownList1.DataBind();