Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. sp_executesql. You really should avoid concatenating strings to generate SQL, regardless of where it is done you introduce the potential for exploits.
  2. What code are you currently using to save to the registry?
  3. The ZAP cache is the cache for assembles precompiled with ngen.exe, if a file is in the ZAP then you would also expect to find a copy in the GAC although the reverse isn't the case
  4. Never come across the error about dlls not being registered before. Is this any DLL in particular? You can always dynamically load a DLL using Assembly.Load and passing in a string representation of the strong name - something like Dim a As Reflection.Assembly a = Reflection.Assembly.Load("Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A")
  5. A strong name is always a good idea - even if you never bother installing it into the GAC. If your library has a strong name then the application compiled against it will only load the correct version of the dll as released by you and will not allow a 3rd party to either modify your dll or substitute a replacement dll of the same name (regardless of the version number). The idea behind the binding policy is that you can selectively allow applications to use a newer version of a dll (either all apps or on an app by app basis) but without forcing this upgrade out and causing potential compatability issues. As the original manufacturer of the software though you can also provide what is known as a publisher policy and make the upgrade an 'opt out' rather than the 'opt in' approach that is the default.
  6. You could just store the PDF as a blob in the DB, that way you would be able to store and retreive it using the same code you are using with a jpeg. Depending on how you want to view the file though will probably require you saving it out as a physical file rather that being able to use a memorystream.
  7. If you already have the values as 3 seperate numbers you could always use the following way to create a date variable and remove the need to handle formatting. dim d as New DateTime(2005, 12, 30) If you know which regional format the date is coded for you could always use the DateTime.Parse method and specify a location Dim d as DateTime d = DateTime.Parse(s, New System.Globalization.CultureInfo("en-US").DateTimeFormat)
  8. Web pages aren't designed to work that way, the client is expected to request a page not have a page forced onto it. There is no way to force a refresh from the server in this way. Your best bet is to have the client periodically refresh it's view of the server (either manually or use a client side mechanism like javascript).
  9. Yes. And rebuild.
  10. If you have the 2005 MSDN installed then [mshelp=ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_aspnetcon/html/90f65aa9-82dd-4a86-97e6-911037bd6cfa.htm]This link[/mshelp] might be of some help. (If the link doesn't work try searching on "How to: Build and Run the Profile Provider Example "). This is an article that shows how to build and use a custome provider that stores it's data in Access via ODBC - sounds like the kind of thing you want.
  11. Could you attach the aspx and aspx.cs files in question - it may be easier to see what the problem is if the full code is available.
  12. Does your website require the user to be logged on? If not then they will not have a user name.
  13. You haven't told the command to use the connection, read the post from Diesel just above yours and try that.
  14. If it is executing one of the Label1.Text lines then it should be displaying the label correctly. If you search the HTML sent to the browser is the string present there?
  15. Does the development server have the .Net 2.0 framework installed? If so is it the same version as your PC?
  16. If you look at the html in the aspx file, at the top there should be an @Page directive, find the inherits=".." attribute and modify this so it also includes the namespace. Then again if you are using 2005 have you considered moving to a masterpage form of layout - will make a easier solution than usercontrols for this kind of thing.
  17. At the top of the source file you can add the line Imports Microsoft.VisualBasic [code=visualbasic]
  18. Why not use the system.Collections.Stack instead of creating your own?
  19. On the file menu go to browse with and select the browser from there.
  20. Just installed RC1 and it's there on the tools menu - try CTRL K followed by CTRL B and see if it opens then.
  21. The Collection class is part of the VisualBasic namespace and IIRC it uses a HashTable internally anyway, you might as well go ahead and use on of the classes under System.Collections instead. As far as I'm aware removing an item from an ArrayList simply causes the items to be shifted down - so the order should be consistent; however as tis isn't documented anywhere as being the 'correct' behaviour there is no guarentee this will not change in the future.
  22. Could you not use something like the DateTime picker control rather than a textbox?
  23. If the delay is really that big of a problem you could simply create an instance of a class from each of the DLLs when your app loads (just chuck splash screen or similar up), this will cause each dll to be loaded... Doing this will result in all the dlls getting loaded and slowing the initial launch down despite the fact the user may never even need them in memory.
  24. I think you will need to specify or possibly create a TypeConvertor to handle rendering of the class to the underlying HTML.
  25. You could just create a standard routine that expects a command as a parameter and iterate over its parameters collection writing them to the debug window - at least it will only need to be done once then rather than every time you need to do this. However if your procedure is properly written and tested it should work when you pass the values in anyway ;)
×
×
  • Create New...