Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stsuing

    Custom XmlSerializer

    I see. I would probable add and remove object before going into serialization or remove the nodes after. If you find your solution I'd be interested in seeing it
  2. stsuing

    Custom XmlSerializer

    Can you post some code or add detail. Are you trying to serialize populated objects or take the result of a SqlDataReader and write it out in xml format?
  3. stsuing

    Binding LiNQ data to ComboBox (Windows Forms)

    Here are some nice samples http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx http://msdn2.microsoft.com/en-us/vcsharp/aa336748.aspx //Here is the example class internal class car { private string _make; private string _model; private...
  4. stsuing

    Enterprise Library exception handling and event log issue

    You might try and make a test page that just does the log, so you can see the error message. How did you set up the log. Typically I'd create a simple console installation program as the rights of a running asp.net process never seem enough to create initiate the error log. private const...
  5. stsuing

    How to define limited selection for function parameter

    Use and enum instead of a string
  6. stsuing

    data type confussion

    I don't really understand your question, but the generic List<> is a great class to use. http://msdn2.microsoft.com/en-us/library/6sh2ey19.aspx There is also a dictionary version if you need that http://msdn2.microsoft.com/en-us/library/xfhwa508.aspx
  7. stsuing

    Equivalent of foreach for only one object

    I think you went from using LINQ to using a lamda expression which is cool. I believe if yous stuck with the LINQ method and change it to use the First() method you would have one result. var vData = from min in feederData.Vehicle_sizes where min.Min_passengers...
  8. stsuing

    Problems deploying first .NET project

    You might check the permissions on the folder that the access db is located in and the access db file itself. You should have those users try and open the DB directly, to verify that they have access to it
  9. stsuing

    Any trouble upgrading VS.NET 2003 proj to VS.NET 2005?

    I believe that VS 2008 is coming out late this year or early next year. You might wait for that. Definitly look out for configuration changes.
  10. stsuing

    Help with implementing Generics

    If you were on vs 2008 you could use extension methods like the following. How nice is this. http://www.interact-sw.co.uk/iangblog/2005/09/26/extensionmethods using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace TestExtensionMethods { static...
  11. stsuing

    Convert Vs. Cast

    Correction 'y' would have to be an object that is an int for DirectCast to work.
  12. stsuing

    Convert Vs. Cast

    Sorry 'y' would have to be an int for DirectCast to work. If you know what you're going to convert then use DirectCast. If you don't use Parse
  13. stsuing

    Convert Vs. Cast

    What about DirectCast? EX: z = DirectCast(y, Int32) http://www.panopticoncentral.net/archive/2003/07/10/149.aspx I believe this is VB equivalant to (int)someObjectYouKnowIsint
  14. stsuing

    Alternative to XSL

    I would just google it. Just remember the reader can bring back multiple sets depending on execution order of your sql. If you run your query in sql server you'll see the result sets and the order of them and the column heading. You'll have to call NextResult or something like that on the...
  15. stsuing

    Alternative to XSL

    I can not tell you how much better 2008 is then 2005. The new language features are so sweet it's not even funny.
  16. stsuing

    Alternative to XSL

    Are you creating the xml in the sql statement using FOR XML? http://www.sitepoint.com/article/data-as-xml-sql-server If you using the 3.5 framework you could look at LINQ to SQL or LINQ to XML I avoid XLST Transformations whenever possible. What is the reasoning behind using that. I've found...
  17. stsuing

    Display MST on Website (.net2)

    You might be able to get the culture of the http request object. Using that you can set get the datetime for particular culture. http://west-wind.com/weblog/posts/334.aspx I believe DataTime is culturally aware.
  18. stsuing

    Question - Foreach in Datatable - Format in Text File

    does DataColumn have a name property then use that like w.WriteLine(datarow[dataCD.Name].ToString());
  19. stsuing

    Form Code - making it separate

    You should look up MVP or MVC patterns. I prefer the MVP pattern (Model View Presenter) Here is an artical. http://msdn.microsoft.com/msdnmag/issues/06/08/DesignPatterns/ To take this a step further. You could also investigate Smart Client Software Factory as a framework for developing...
  20. stsuing

    Creating Enums with multiple params!?

    You can create your own attribute and decorate your enumeration with it. This artical is a step by step. http://www.donxml.com/FunwithAttributeBasedProgramming.htm

Part and Inventory Search

Back
Top