Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Web server code runs on the web server not on the client, as such you cannot pause it on the server and wait for a key press in a browser before continuing. If you want to output information you could either use the normal debug.writeline or you may want to consider looking at the Trace object.
  2. Either string.Replace() or RegEx.Replace() should do what you are after.
  3. In the first code sample you have dataset.Tables.Add("Feedback"); which will create a new datatable in the dataset, are you sure you didn't mean. dataset.Tables.Add(table); instead?
  4. Just use the form's ClientSize property instead.
  5. Dim s As String = "" Dim sr As New System.IO.StringReader(s) Dim x As New System.Xml.XPath.XPathDocument(sr)
  6. Why would you want a control to have focus and not be scrolled into view? As a user I couldn't think of anything more annoying than having to constantly scroll around to find the control with focus. Admittedly not showing the scroll bars when items are to the left is a bad thing but why would you have a starting point with items alread off the left handside? Personally if I have aform with a lot of controls I would use a tab control and organise the layout into a more structured form rather than relying on the autoscroll mechanism.
  7. If you have your own database of users and passwords then forms authentication is probably the way forward for you.
  8. http://www.xtremedotnettalk.com/showthread.php?t=83574
  9. If you want absolute time differences then use the UTC time property of the DateTime object rather than the local time which may be influenced by DST. If you need to programatically access this look under System.Globalisation, you should find classes like System.Globalization.DaylightTime and System.Globalization. which will be of use.
  10. Where are you instantiating DataSet11?
  11. Not seen / heard much in regards to books covering the new certifications, MS recently announced the new certification tracks and the new courses that will be available but that is about it...
  12. I'm going to the Birmingham one on the 8th of November and was nearly a 'Ask the Expert' at the Harrogate one on the 22nd.
  13. Just updated the code in the original - the previous didn't generate the Multipage tif entry correctly - you might want to try the new version.
  14. A stylesheet similar to should do the trick (not really tested it). If you need to do this via code then have a look at the System.Xml.Xsl.XslTransform class as this will allow you to load an xml document and a stylesheet and save the resultant document somewhere.
  15. Given a web.config that contains You can declare a DataSource object like Is that what you mean? Note that under asp.net 2.0 a lot of what used to be code for data binding can now be moved into the asp tags and made a lot more declarative.
  16. You may find this link gives a better background into different threading models as the PDF just sounds like a lot of marketing babble. The threading model in windows is symmetric multiprocessing (SMP) this means threads are not locked into a single cpu, there is nothing you need to do to take advantage of this other than write multi-threaded code (not a trivial thing but nothing as magical as the PDF makes out).
  17. If more than one or tag exists then you simply want to keep the first and ignore the rest is that correct?
  18. Could you post an example of both formats? If they are not too different then you may be able to get away with a bit of xslt.
  19. Could you post some code to give a better idea of what the problem is as I'm not sure how (or more importantly why) you are creating an assembly at the module level, if you want to handle the error then you will need to do this from inside a subroutine. Also you might be better off using a class rather than a module at least then you could put the initialisation into a shared constructor. Rather than using exceptions would it not be easier to check for the existance of the library before trying to load it?
  20. You might want to try adding Option Strict On to the top of the module and fix any errors it generates first as you seem to be doing a lot of implicit casting in regards to the date handling with the tag property. Also how in the monthCtl array defined? If you run a tool like TaskManager or the ProcessExplorer from http://www.sysinternals.com while executing your code does the available memory drop noticably?
  21. Does it fail with a particular error and is it the same error every time? What makes you think it is a memory related issue? i.e. The error message or are you running a profiling tool and tracking a memory leak?
  22. That's the one of the main selling points for a web service architecture - you are not locking clients into any one language / vendor / implementation.
  23. ngen.exe doesn't make the dll run any quicker, it can make the loading quicker though by removing the need to just-in-time compile methods when they are first used. You might not even notice a difference in a lot of cases between an ngened assembly and a normal assembly. The precompiled assemblies are also very machine specific (cpu, os, permission and framework version) and would need to be redone if any of several things change otherwise it will just fall back to doing JIT compiles anyway.
  24. Have you tried using System.IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath) Is there any reason why you would prefer to use the registry bearing in mind that makes it not portable, harder to transfer and MS themselves recommend against it?
  25. Out of interest what is the need for threading in this case? Where possible you might be able to use .Net's more generalised Async methods (Beginxxx, Endxxx) rather than managing the threads yourself. Also as your using .Net 2 you may want to look at the new functionality provided by the framework to make this easier; in the @Page directive set the Async="true" attribute and you should now be able to use the built in support (search MSDN for ExecuteRegisteredAsyncTasks as a starting point).
×
×
  • Create New...