Jump to content
Xtreme .Net Talk

Derek Stone

*Gurus*
  • Posts

    1910
  • Joined

  • Last visited

Everything posted by Derek Stone

  1. The WebClient class is just a basic reimplementation of the WebRequest and WebResponse classes, which provide asynchronous methods that can be used to prevent application hangs. I'd test your code out with other servers to see if this is an isolated issue, otherwise I'd go ahead and implement the async methods, above.
  2. Since you mentioned that you wished to instantiate an instance of a class I assumed you were referring to a COM DLL, since COM is the de facto standard of communication amongst components in Windows. What kind of DLL are you creating? I can only assume now that it's a standard Win32 DLL, for lack of any other likely options.
  3. From within Visual Studio .NET open up the Solution Explorer and right-click on the current project. Select "Add Reference...". Select the "COM" tab and hit "Browse...". Locate your COM DLL and select "Open". Hit "OK" and you're all set. Create an instance of one of the DLL's classes the same as you would a .NET class (Assembly.Class). Intellisense should make it fairly easy.
  4. <% Response.Cache.SetExpires(New DateTime(1970, 12, 31, 12, 0, 0)) Response.Cache.SetCacheability(HttpCacheability.Private) Response.Cache.SetValidUntilExpires(False) Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches) %> <meta http-equiv="expires" content="Sun, Dec 31 1970 12:00:00 GMT" /> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache" />
  5. You should be able to connect to MSDE, but not MS SQL Server in Visual Basic .NET Standard Edition. I believe that's what you're trying to do, correct?
  6. Will that work for Access as well, Nerseus? I've never bothered to try.
  7. Wyrd and I have expressed industry feelings (not ours) about the use of frames. You can take our advice or not, but we are correct. Additionally, as I stated above, ASP.NET does not handle frames well. This is fact. We're just stating how it is. We are not trying to argue with you or invalidate your design decisions. If you do choose to use frames then good luck, but don't expect easy or reliable results.
  8. Each incoming connection would be passed off to a new Socket class object. This frees up the TCPListener to wait for subsequent connections.
  9. "Server" is the name of a Windows service that is involved with RPC. That's what I am referring to. Since people are less than explicit on this board half the time I have no desire to assume he's referring to something else, if in fact he is.
  10. You can also access the Session collection via System.Web.HttpContext.Current.Session.
  11. The "Server" service is largely unrelated to Microsoft SQL Server. It does not need to be enabled/started for SQL Server to work. The rest of your upgrade path seems right.
  12. Serialize the class and save it to a string (nvarchar) field if you must save the object as is. Otherwise do as was suggested above and use database normalization techniques to link a table that conforms to your type properties and fields to each record in your cl_win_Sequr table.
  13. A database that isn't written to is fairly uncommon, but yes, Access can handle reads far better than writes.
  14. Frames are a poor design choice, especially when using ASP.NET. I'd strongly suggest doing without them.
  15. It will if you install mod_aspnet provided by the Mono Project. Development is ongoing, so I can't guarantee if it works correctly.
  16. You didn't initialize an instance of an object somewhere in your Page_Load event. 'Not initialized Dim oConnection As SqlConnection 'Initialized Dim oConnection As New SqlConnection()
  17. HTML Help Workshop, while not an elegant solution, is provided free by Microsoft.
  18. [mshelp]ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemWebUIWebControlsCustomValidatorClassTopic.htm[/mshelp]
  19. Dim dtDate As DateTime Try dtDate = DateTime.Parse(TextBox1.Text) Catch 'Date is invalid End Try
  20. If you expect to have more than one user accessing the database concurrently I strongly suggest you use MS SQL Server. I've used Access in a multi-user environment, and it isn't pretty. Start with MSDE, there's no excuse not to.
  21. It would be far simpler if you used SQL: SELECT DISTINCT * FROM table
  22. You'd have to try it to be sure. I don't have any experience dealing with malformed XML documents, so I have no idea.
  23. You might want to change those ordinals from hardcoded values into calls to GetOrdinal. This will save you time, increase readability and lessen chances of incorrect ordinal references in the future. Just a suggestion, no biggie.
  24. And you managed to purchase a $20,000 piece of software how?
  25. All depends. What are the different data types that you're putting in there and how big are they if they're not standard types? How is this DataSet ultimately being used (an SQL insert/update possibly)? How many rows are there?
×
×
  • Create New...