How to save a file in the client machine

The browser will not allow you to save a file directly to a client machine. You could however do a Response.Redirect(‘http://server/filename’); which would send the file back to the browser, at which point the user would be prompted to save / open the file.

How to store SortedList in Session or Cache

VB.NET Dim x As New SortedList() x.Add(‘Key1’, ‘ValueA’) x.Add(‘Key2’, ‘ValueB’) To store in Session: Session(‘SortedList1’) = x and to retrieve Dim y As SortedList = CType(Session(‘SortedList1’), SortedList) C# SortedList x = new SortedList(); x.Add(‘Key1’, ‘ValueA’); x.Add(‘Key2’, ‘ValueB’); To store in Session: Session[‘SortedList1’] = x; and to retrieve SortedList y = (SortedList) Session[‘SortedList1’];