Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. You could store them as an embedded resource within the executable.
  2. http://www.winterdom.com/mcppfaq/archives/000128.html may hold the solution, if not let us know.
  3. Not exctly sure what you are asking; do you have to format a packet to work with an existing system or are you creating a new structure from scratch? \if it is an existing system then any relevant documentation should give the appropriate structures - classes such as the BinaryReader / BinaryWriter will be of assistance in writing out the correct format.
  4. Are you returning an excel spreadsheet from a web application or trying to do something else?
  5. If you are using VS 2005 it's resource editor gives you a nice typesafe way of embedding the resources and providing access to them. I've never been a big fan of imagelists myself (even in the vb6 days) as they always seemed a bit of a hack to get images into the executable, plus the limitations and weird runtime support never seemed quite right... You are probably better off either sticking with your existing method, or perhaps investigating the .resx files as an alternat way if you are still with 2003 or earlier.
  6. The .CreateInstance method of the Assembly class is probably a good place to start looking.
  7. The log contains a list of changes since the last backup, it is used by SQL to recover changes that may otherwise be lost due to system failures etc. The log can also give you flexability with your backup / restore strategies as it can be backed up frequently without imposing too much in th way of overheads on your system. If you really, really, really don't need it then you can set the DB to simple logging and it will not be used. However bear in mind you almost definately will regret this on a production server. The best way to mange it's size is to mke sure you are doing regular online SQL backups as the default is to clear the log on a succesful backup.
  8. Doesn't SQL provide a LEFT function that does this?
  9. Theimage has been saved to the MemoryStream. If you want to save it out to a physical file use a FileStream, if you needto do something further with the image then make the function return either ms or an image constructed from ms.
  10. http://weblogs.asp.net/scottgu/archive/2006/06/09/VS-2005-Team-Edition-for-Database-Professionals.aspx may be just what you need (when in gets here).
  11. Did you try updating the drivers etc.
  12. If you are using SQL then Notification Services is worth investigating. As a rule you should avoid polling as a way of detecting changes as it can cause performance issues as the number of users increase. Another side effect is it can keep a PC from going into power saving mode as it keeps seeing activity etc.
  13. If you put a breakpoint on the line DGTree node = (DGTree)e.Node; what type of object does it think e.Node is?
  14. You can just open the folder in VS 2005. Go to File-> Open Web Site and make sure 'File System' is selected on the left and then browse to the folder you have extracted the sample to.
  15. On a single CPU the overheads of thread management might even cause a (very very) slight performance drop - probably not large enough to worry about though. However it's not just the overall time that you need to consider but also the user's perception. If job1 was to take 5 minutes and effectively hung the UI while it was working (no repaints, (not responding) in the titlebar etc.) then it gives a poor impression. Running the activity in a 2nd thread would at least keep the main UI responsive and give a better overall impression.
  16. Does the webserver have the .Net framework installed?
  17. It's also for headaches... ;)
  18. Or if you are on a budget look at XSLT as a way of formatting the output. XSL-FO is a common mid-ground that you can then get various tools to transform into PDF (amongst many other formats).
  19. If you are Querying the DB then you could just use a select statement to retreive the columns from the DB and put the result into either a DataReader or a DataTable - a DataReader is probably the simplest way in this case though. If there are no matching results then you will either have a DataTable with no records in it or a DataReader with no data. Also how are you storing the password? As a rule you should hash the password and store that rather than putting plain text into the DB.
  20. Depending on your needs .Net offers several ways to read / write XML. You may want to investigate the classes under System.XML as a starting point.
  21. If you use the built in DateTime class you could just add / subtract 7 from the given date.
  22. If you are using SQL as a database you might want to evaluate Sql Reporting Services
  23. There's definately no reason why it should run slower when accessed from the internet as opposed to the local network other than available bandwidth. ASP.Net certainly doesn't cripple itself in that scenario. Without knowing more about the network it is difficult to diagnose such a problem. If the server is in a DMZ (it should be) then checking connectivity / name resolution etc. from the DMZ to the back end servers is a good idea. If the browser is trying to resolve back end server names directly (javascript, hrefs etc) then this could be causing a lot of timeouts if the names aren't available in an external DNS server (or if it is using WINS or similar to resolve names)
  24. Has anyone done any monitoring of the internet connection? If you have a 10MB connection is this being used for anything else (web browsing, e-mail etc)?
  25. What is the bandwith between the browser and the company's intranet (i.e. what kind of connection does the webserver have to the internet)?
×
×
  • Create New...