Jump to content
Xtreme .Net Talk

Derek Stone

*Gurus*
  • Posts

    1910
  • Joined

  • Last visited

Everything posted by Derek Stone

  1. If I am understanding you correctly, the code would look something like this: Dim list() As String = { "cow", "dog", "fox", "chicken" } Dim sql As String = "SELECT * FROM
  2. ... or we can do it the correct way and revoke shutdown privileges using the Group Policy Editor (gpedit.msc). Of course anyone with more than five brain cells can remove the power cord from the wall outlet.
  3. Using code like this is an awful practice. It can and will annoy the user and mess up the flow of history in the browser. In other words, it will render the back button useless for some less-adept users. Either redirect to a page on the server (which sends a 30[0-4] response code) or don't do it at all.
  4. No, there's simply no point in doing this unless there's a significant geographical distance between the servers. If they're sitting on the same LAN they should be segmented on a separate subnet to avoid any packet traffic from reaching the rest of the LAN. If you do decide to encrypt the communications, for the love of God use SSL. That's what it's there for.
  5. Purchase a .NET performance profiler. The Performance MMC plug-in is also of some help, once properly configured. Start | Run | "perfmon"
  6. I got Half-Life 2 for free at... no... wait... I definately got screwed $60. :)
  7. http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassStartTopic4.asp
  8. I'm going to have to agree with donnacha on this one. If you were using Microsoft SQL Server or any other decent RDBMS, storing the files in the database itself wouldn't be too much of an issue. Microsoft Access databases however, tend not to bode well with these types of things.
  9. Cyberflow: These are .NET forums, hence the name Xtreme .NET Talk. If you're having problems with PHP you might be best to consult with a more applicable source of information.
  10. Dim files() As String = System.IO.Directory.GetFiles(Request.PhysicalApplicationPath & "mirror\\downloads\") Dim file As String For Each file In files If Not file.EndsWith("default.aspx") Then Response.Write("<a href=""http://mirror.incandesoft.com/downloads/" & System.IO.Path.GetFileName(file) & """>" & System.IO.Path.GetFileName(file) & "</a><br />") End If Next
  11. The "span" element is used for inline text and objects, which flow with the rest of the page's inline content. If you want to define a width and/or height, use a block-level element, such as "div".
  12. I think any of us would fix it given direct access to the database server, however we don't have that luxury. I wish I could offer you a better answer.
  13. Override the [msdn]System.Windows.Forms.Form.WndProc[/msdn] method. Keep in mind that there are only a few good reasons to do this in .NET.
  14. The SELECT @@IDENTITY statement has to be executed after the row is inserted/updated, and prior to any other rows being inserted/updated in order for it to return the "expected" value. Ideally, you should place your SQL code in a stored procedure and use the SCOPE_IDENTITY function to restrict the returned value to the current scope and session.
  15. Don't use the [msdn]System.Random[/msdn] class. Use [msdn]System.Security.Cryptography.RNGCryptoServiceProvider[/msdn] instead.
  16. Execute the following statement after the row in question is inserted/updated: SELECT @@IDENTITY;
  17. The meaning greatly depends on the context.
  18. You'll need to place a try/catch block around the code that generates the exception. Try connection.Open() Catch sqlEx As SqlException Log.Write(sqlEx) Finally If Not connection Is Nothing connection.Close() connection.Dispose() End If End Try
  19. "Hands on how to configure the Microsoft MSDE"
  20. This question has been asked and answered numerous times on these forums. Try searching.
  21. Start | Run | "C:\WINDOWS\system32\certmgr.msc"
  22. For someone that hates Visual Basic 6 so vehemently, because it's "counterintuitive" (your words), it's ironic that invoking a function seems to be foreign to you. ;)
  23. I find WebMatrix unacceptable for three (3) reasons: An MDI interface without a tabbed document manager is useless. SandDock is less than 20 routers away. Lack of Intellisense. While I don't use it freqently, I sure as hell want it there when I forget the method signature of System.Runtime.InteropServices.Marshal.GetManagedThunkForUnmanagedMethodPtr(). Advanced build/compilation interfacing. This is unacceptable (as it is in Visual Studio .NET).
  24. You have to install MSDE prior to using it. It cannot be run directly from any source without said installation. Your question did not make your concern about this issue clear. Otherwise, had you searched this site, or even bother to read the first thread in this forum, you would have found your answer.
  25. You're much better off using a "master page" approach. One control. Easier to maintain.
×
×
  • Create New...