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
S

stephen woolhead

@stephen woolhead
About
Posts
52
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Stored Procs, parameters and IN Clause
    S stephen woolhead

    This question relates to MS-SQL 2000 I would like to write a query such as.. SELECT * FROM Users WHERE id IN @UserIDs Where @UserIDs is a list of integers passed into the stored proc. Is this possible? The list of ID's is generated by a user, so I cant use a sub query to get the required list of ID's. If it is possible, what type do I define the parameter as? Thanks Stephen

    Database database question

  • Single Logon
    S stephen woolhead

    Just enable Windows Intergrated Authententication on the IIS web server and windows authentication in the ASP.NET app's web.config, then you can use WindowsPriciple.GetCurrent () to get the current users info. Stephen.

    ASP.NET csharp asp-net sysadmin windows-admin question

  • Windows Update is so sllooooowwwww...
    S stephen woolhead

    SUS = Software Update Services http://www.microsoft.com/windows2000/windowsupdate/sus/default.asp Will not handle things like IE or MediaPlayer, but will deal with most other patches for you, and is a bargin at the price (free). Windows OS only, for things like Exchange and SQL Server look at UpdateExpert or Hfnetchk Stephen

    The Lounge performance help question announcement

  • Windows Update is so sllooooowwwww...
    S stephen woolhead

    Get your IT people to install a SUS server, it will cache the updates localy for you, much faster. Stephen

    The Lounge performance help question announcement

  • MS OpenLicense - media??
    S stephen woolhead

    You do not get media with the Open Licence, you have to order it separately. I pay £29 for a set of media, be that the 1 CD for Windows XP or the > 10 CDs for visual Studio .NET. Your supplier should be able to order it for you. Stephen.

    The Lounge business html com design game-dev

  • Weird exception
    S stephen woolhead

    Your mail server is not allowing you to relay messages. What is the remote server? is it your ISP's or you corporate one? I assume that 64.79.161.35 is your IP address? or atleast the address of the firewall/proxy you are using. Looks like the remote server is trying to a look up on your IP and match it against the email's from address. This is standard anti-spam practice. You need to either get your IP added to a list of trusted machines on the mail server or use another mail server. Stephen.

    ASP.NET csharp c++ asp-net sysadmin data-structures

  • Uploading files
    S stephen woolhead

    I do something like this, add one of these to your form (looks like you already have)

    protected System.Web.UI.HtmlControls.HtmlInputFile filMyFile;
    

    Then when the page is posted back do something like...

       Bitmap myBitmap = new Bitmap(filMyFile.PostedFile.InputStream);
    
       if (myBitmap.Height)
       {
           ........
    

    Remember to put a check in there to make sure that a file has been posted etc... Stephen.

    ASP.NET csharp question c++ asp-net sysadmin

  • Uploading files
    S stephen woolhead

    Rickard Andersson wrote: Okay, but then I need to delete this file if it doesn't have the right width and height? Can I do it with the Fileclass? Of course I it would be possible... hm... You can do the whole process in memory if you want, even resize it if you feel like it with only a few lines of code. Stephen.

    ASP.NET csharp question c++ asp-net sysadmin

  • UserControls and Control Designers
    S stephen woolhead

    Can a UserControl be configured to use a ControlDesigner? I have a UserControl that exposes several properties and I would like them to show in the IDE when I add the control to a webform. At the moment all the controls that I add show the standard grey box and the designer thinks that it is a UserControl, not my derived class. I have implemeted a class derived from ControlDesigner and added the attribute to my control classes code behind file Designer(typeof (ProductCatalog.Design.CategoryDesigner))] In the Designer I have implement proxies for my controls properties like this public int TargetID { get { return ((Category)this.Component).TargetID; } set { ((Category)this.Component).TargetID = value; } } But it does not make any difference, what an I missing? Thanks Stephen.

    ASP.NET visual-studio design question

  • Namespaces..
    S stephen woolhead

    if you do not have msdn installed http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconnamespacenamingguidelines.asp[^] Stephen

    .NET (Core and Framework) sharepoint algorithms question

  • Socket Question
    S stephen woolhead

    You need to add some control protocol to the stream. Very simple would be send a fixed number of bytes that contain the size of the object first, let the reciver read that, then read that number of bytes from the stream, then repeat. I do not suggest that you do something this simple in real life though, buu you get the picture? Stephen.

    C# question sysadmin help

  • Geting the Row count in response to RowDeleted
    S stephen woolhead

    Thanks for that, I had come to the same conclusion, but it's good to hear it from someone else. I wounder if any of this behaviour has changed in V1.1 of the framework? Stephen.

    C# csharp css question announcement

  • Geting the Row count in response to RowDeleted
    S stephen woolhead

    I am sure that .Net was sent to drive us all insane. I have a data grid bound to a datatable in a dataset. I have a label that displays the number of items in the grid, or shall we say it should ;-) I wanted to update the row count in response to RowChanged and RowDeleted, just set the label equal to DataTable.Rows.Count. But no, thats not updated until after the event has fired. Are there any events in DataTable, DataSet, DataView or anything else that fires _after_ the row count has been updated? Looks like I have to put some convulted logic in there to work out what the user is doing :-( Thanks Stephen.

    C# csharp css question announcement

  • Databinding Web User Controls in a Data Repeater
    S stephen woolhead

    Does anyone have an example of how to data bind a web user control (ascx) in a repeater control? Thanks Stephen.

    ASP.NET tutorial winforms question

  • Rosetta comet mission on hold
    S stephen woolhead

    Tim Smith wrote: A path can be complex and still require little time. 'Little time' is not a phrase often heard when when talking about orbital dynamics :-) No propulsion system avaiable could put the probe directly into the correct orbit, so a longer more complex route has to be taken (with the benefit of a bit of extra science on the way). Should have stuck with the original idea of Lauching it on a Russian Proton. Offical Astrium management putdown of Arianespace today went along the lines of "every sucessful launch has been a fluke." It'll be a Proton launch if it goes at all, I suspect. Stephen.

    The Lounge announcement

  • Rosetta comet mission on hold
    S stephen woolhead

    They meant complex as in the orbital path the satelite must take to intercept the comet. After launch in January, 2003 (the launch window opens 15 January), Rosetta will fly out to Mars for a gravity assist on 26 August 2005 and return for an Earth flyby on 21 November 2005. A flyby of the main belt asteroid 4979 Otawara (diameter 19 km) will occur on 11 July 2006 at a distance of about 1000 km on the sunward side, followed by a second gravity-assist Earth flyby on 28 November 2007. A flyby of the 110 km diameter main belt asteroid 140 Siwa at a distance greater than 1000 km will take place on 24 July 2008. After the asteroid flyby the spacecraft enters a heliocentric drift phase to intercept the comet at a point close enough to allow communication with the Earth. A rendezvous maneuver on 29 November 2011 will lower the spacecraft velocity relative to that of Comet P/Wirtanen to about 25 m/s and put it into the near comet drift phase. Some time after the comet is within 4.2 AU of the Sun, observations of the comet and the far approach trajectory phase will start. At the end of this ~90 day phase, the relative velocity between Rosetta and Wirtanen will have been reduced to 2 m/s, at a distance of about 300 comet nucleus radii. At this point landmarks and radiometric measurements are used to make a precise determination of spacecraft and comet relative positions and velocities and the rotation and gravity of the comet nucleus to fine-tune the approach. This information is used to start orbit insertion at about 60 comet radii distance at a few cm/s. At 25 comet radii a capture maneuver will close the orbit. This will occur on 22 August 2012 when Wirtanen is approximately 3.25 AU from the Sun. Polar orbits at 5 to 25 comet nucleus radii will be used for mapping the nucleus. After global studies of the nucleus are completed, about five areas (500 x 500 m) will be selected for close observation at a distance down to 1 nucleus radius. Using the information gathered from orbit, a landing site will be chosen for the Surface Science Package (SSP). The spacecraft will go into an eccentric orbit with a pericenter as low as 1 km over the landing site and an ejection mechanism will separate the SSP from the spacecraft with a maximum relative velocity up to 1.5 m/s in July of 2012. The lander will touch down on Wirtanen's surface at a relative velocity of less than 1 m/s and will transmit data from the surface to the spacecraft, which will relay it to Earth. The spacecraft will remain in orbit about the comet and make

    The Lounge announcement

  • Internet browser that quadruples surf speed
    S stephen woolhead

    HTTP already includes extensions for gzipping content supported by most, if not all, browsers, though most sites have this feature turn off due to the processor overhead on a busy server. But if you have a largly text only site on the end of a slow link it can make a world of difference. That brings me to another thing, the bulk of downloads for most sites has to be graphics in highly compressed JPG, how do you speed that up, you can't. Also if he has writen a client how can that speed up surfing when the servers are the ones sending the data? And another thing, why do we need more propriety protocols/markup just when I though that that everyone was getting their act together and things just work. All sounds like a steaming pile of **** to me. Stephen

    The Lounge html com design algorithms business

  • ID3V2 implementation
    S stephen woolhead

    I have not found one that will allow you to write ID3V2 tags, but these should allow you to read them. http://erinjones.org/id3.html[^] http://www.gotdotnet.com/community/user/viewprofile.aspx?userid=0003BFFD80A8CD81[^] Stephen

    C# csharp algorithms help

  • Aborting updates in a DataTable
    S stephen woolhead

    But you are in control of starting the thread. What I want to do is in response to a users click on the listbox, which will be triggered from an incoming windows message (WM_MOUSE_DOWN or what ever) via the forms message loop that is running on the forms main thread, therefor my thread of execution would never make it onto my thread. Make sense? Stephen.

    C# tutorial help announcement

  • track bar int too double ?
    S stephen woolhead

    That will not work... 1 = 0.000001 100 = 0.0001 Depends if you want a linear function or a power function see http://www.perfectphase.com/store/slider.gif[^] Stephen.

    C# question
  • Login

  • Don't have an account? Register

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