Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

TCHamilton

@TCHamilton
About
Posts
25
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • World's oldest man dies at age 114
    T TCHamilton

    Thank you Ravi

    Tom

    The Lounge csharp html com tools question

  • World's oldest man dies at age 114
    T TCHamilton

    Hi Ravi - I'd be interested in a specific citation for your comments - very interesting

    Tom

    The Lounge csharp html com tools question

  • Video conversions :o|
    T TCHamilton

    Well said dear brother in distress. I now work in this field having been self-inflicted/taught the joys of video edit and conversion. I do feel your pain X|

    Tom

    The Lounge security tools question workspace

  • Plasma TV (and the death of projectors)
    T TCHamilton

    I've had two bulbs fail, the first one went quietly, while the other was fairly loud but the projector unit contained the most of the fragments. The experience noted here sounds quite dangerous for the user and a real liability for the manufacturer.

    Tom

    The Lounge com question career

  • Wiki tool recommendations
    T TCHamilton

    Screwturn Wiki worked very well for my applications - I have installed at several sites now. Excellent project

    Tom

    The Lounge help question announcement

  • File downloader 'resume' problem
    T TCHamilton

    Well, mystery solved - response headers were being set, just not obvious with IIS 6, have to track them down via DEBUG/Watch with code that can enum the Custom Header array ((System.Web.HttpResponseHeader)((new System.Collections.ArrayList.ArrayListDebugView(Response._customHeaders)).Items[0])).Name "Accept-Ranges" ((System.Web.HttpResponseHeader)((new System.Collections.ArrayList.ArrayListDebugView(Response._customHeaders)).Items[0])).Value "bytes" Able to verify Header set, and respond to resume download 'Range' Thanks all

    Tom

    C# csharp help question career workspace

  • File downloader 'resume' problem
    T TCHamilton

    Still having problem - unable to set the Response Headers :

    Response.AddHeader("Content-Disposition", "attachment; filename=" + Convert.ToString(Server.UrlDecode(Request["FileName"])));

    Response.AddHeader("Content-Length", dlStream.Length.ToString());

    The system gives message that: Headers: 'Response.Headers' threw an exception of type 'System.PlatformNotSupportedException' The system is Win2k3 IIS6. VS2k5 Confused... Thank you for any help or suggestions

    Tom

    C# csharp help question career workspace

  • File downloader 'resume' problem
    T TCHamilton

    Hi Eddy, I'm not familiar yet with BITS - will explore now. The issue really is how/what's missing in my attempt to facilitate 'resume a paused download...' Web site is public facing that supports various browsers - I've been asked to make sure it can handle IE6 and Safari primarily, not sure if BITS is relevent in that context. I'm sure the target browser limitation will relax, but first I need to get 'resume' to work.

    Tom

    C# csharp help question career workspace

  • File downloader 'resume' problem
    T TCHamilton

    I have a VS2005 web project that provides file content download. Since some files are large I want to be able to pause/resume the download. I have added the 'Range' header and byte marker but am getting two problems: 1) File name is getting corrupted with a ',' comma character on the end of the file name (i.e. 'File.zip' shows in the save dialog as 'file.zip,' - could this be a cached file name suggestion? 2) The resume won't fire (possibly due to problem 1) Environment is IIS6, VS2k5/C#/ASPX. Have tried with FireFox (3.5.2) and Internet Download manager. Here's the code - TIA if (File.Exists(strFilePath)) { byte[] buffer = new byte[Int32.Parse(Config.Settings["bufferSize"])]; int length; long dataToRead, dataLength, bytesDownloaded; long start = 0; string range = Request.Headers["Range"]; if (range != null) { range = range.Replace("bytes=", ""); range = range.Substring(0, range.IndexOf("-")); start = Int64.Parse(range); } Response.Expires = 0; bytesDownloaded = 0; using (FileStream dlStream = new FileStream(strFilePath, FileMode.Open, FileAccess.Read, FileShare.Read)) { if (start > 0) { dlStream.Seek(start, SeekOrigin.Begin); dataToRead = dlStream.Length - start; } else { dataToRead = dlStream.Length; } dataLength = dataToRead; Response.AddHeader("Content-Disposition", "attachment; filename=\"" + dlStream.Name.Substring(dlStream.Name.LastIndexOf(@"\") + 1) + "\""); Response.AddHeader("Content-Length", dlStream.Length.ToString()); length = dlStream.Read(buffer, 0, Int32.Parse(Config.Settings["bufferSize"])); while (dataToRead > 0) { if (Response.IsClientConnected) { Response.OutputStream.Write(buffer, 0, length); bytesDownloaded += length; Response.Flush(); buffer = new byte[Int32.Parse(Config.Settings["bufferSize"])]; data

    C# csharp help question career workspace

  • Creating the equivalent of a 10ms interrupt timer
    T TCHamilton

    You'll need to add a reference at the top of your code for using System.Threading; Then in your code just add a sleep with: Thread.Sleep(10); // Time in milliseconds Hope this helps

    Tom

    C# hardware question csharp data-structures

  • Using external app on server
    T TCHamilton

    I have an ASP.NET that needs to create PDFs files on the server, then zip them up and send them to the client. Do you have any suggestions? The idea is to gather a list of component drawings (the PDF's), an XLS file that lists each component, zip the PDFs and XLS together and offer to user with a 'Save As'. No problem generating a PDF, but having problems saving the PDF file, - using response.redirect and it's not releasing the resource(?) so I can move to get the next file... Environment: VS2008, ASP.NET, IIS6, Win2k3 Thank you in advance

    Tom

    Web Development csharp asp-net sysadmin help question

  • IIS - executing an external application
    T TCHamilton

    Did you ever get this solved? I have an ASP.NET that needs to create some files on the server, then zip them up and send them to the client. Do you have any suggestions? Thank you

    Tom

    Web Development help csharp asp-net windows-admin debugging

  • Do do I Print Avery Address Labels, C#
    T TCHamilton

    I'm porting an Access 97 app to SQL Server C# - the original used Mail Merge via some sort of RTF process. Should I just mimic the Access process? Sounds like printing labels from within a dot.net app using just code is the long way/bad idea.

    Tom

    C# csharp

  • Do do I Print Avery Address Labels, C#
    T TCHamilton

    Any experience or ideas printing labels from Dot.net (C#) - what's the best way Current project uses 2 column/5 row and 3 column/10 rows labels. TIA :cool:

    Tom

    C# csharp

  • VS2008 stability [modified]
    T TCHamilton

    I've had problems with both 2005 and 2008. 2005 when I bring on WCF/WPF extensions, and especially when using the MS C# Source Code Analyzer. I landed up abandoning the Code Analyser( FxCop seems to not be a problem, though). Vanilla versions were pretty stable on a clean install, but if there were beta's then things seem to get flaky / poof!/gone. Weird things happen with WF extensions and you really need Aaron Stebner's advice when things go bad.

    Tom Hamilton Sacramento, CA

    The Lounge csharp c++ html asp-net visual-studio

  • iPod or Zune
    T TCHamilton

    Hey Chris - I've been using a 30Gb Zune for several months now and I'm well pleased with it. The sound is excellent, the format choices are a little restrictive. The unit is a little larger than I'd like, but when watching video the screen is good. One thing I'd change would be for it to use a standard USB cable which can be a hassle when you want to add some content but don't have the special Zune cable. I also have a Sansa 2Gb and I like it a lot also, no video, but very small form factor, generous formats, and uses a standard usb cable, good sound and has a radio and a recorder (up to 2 hours rec time) built in. Price is very good too.

    Tom Hamilton Sacramento, CA

    The Lounge c++ com architecture question

  • The code monkeys are invading!
    T TCHamilton

    Thank you for a very inciteful contribution. You have obviously given this considerable thought, we share the same perspective and conclusion. Thank you for articulating so well.

    Tom Hamilton Sacramento, CA

    The Lounge csharp html com tutorial question

  • User Control Problem
    T TCHamilton

    I have hierarchical data that the user can make one of four choices about. The primary treeview manages @900 rows of data that collapsed to @100 groups. I need to draw a tree view with a 'radio button group' where the radio buttons are related to the treeview node index. I have made a User Control for the 4 radio button but can't quite figure out: 1) How to Position the radiobuttons to align with the tree view node 2) Linkage to connect the button data to the treeview node i.e. [a,b,c,d] tvNode1 [a,b,c,d] tvNode2 Each control is located on separate panels, panel 1 is for the radio buttons, panel 2 is for the Treeview. - Is there may be a better way??? TIA

    Tom Hamilton Sacramento, CA

    Visual Basic

  • Correlated Treeview/Option group Scrolling
    T TCHamilton

    I have hierarchical data that the user can make one of four choices about. The primary treeview manages @900 rows of data that collapsed to @100 groups. I need to draw a tree view with a 'radio button group' where the radio buttons are related to the treeview node index. I have made a User Control for the 4 radio button but can't quite figure out: 1) How to Position the radiobuttonControl to align with the tree view node 2) Linkage to connect the option group data to the index appropriate treeview node i.e. [a,b,c,d] tvNode1 [a,b,c,d] tvNode2 Each control is located on separate panels, panel 1 is for the radio buttons, panel 2 is for the Treeview. - Is there may be a better way??? TIA

    Tom Hamilton Sacramento, CA

    Visual Basic database data-structures tutorial question

  • Positioning controls on n Physical Screens [modified]
    T TCHamilton

    Thank you Luc. By setting the Drawing point I can control the location of the control.

    Tom Hamilton

    C# question help tutorial workspace
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups