Insert image with TSQL and a hex string
You can insert an image from t-sql script, if you use the hex string notation: The next line will insert an image representing a "check mark" into the database. In a table [Test] with a
You can insert an image from t-sql script, if you use the hex string notation: The next line will insert an image representing a "check mark" into the database. In a table [Test] with a
/// <summary> /// Covert a bitmap to a byte array /// </summary> /// <param name="bitmap"></param> /// <returns> /// byte array, when bitmap could be converted /// null, when bitmap is null /// null, when bitmap
When you want to read a file in you’re website folder, you get the error: Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘c:\windows\system32\inetsrv………’. This is because you will have to map
If you want to check if a string is defined in an enum, with C#, use the Enum.IsDefined function public enum CarTypes { Alfa, Audi, BMW } public void TestEnum() { if (Enum.IsDefined(typeof(CarTypes), "Audi")) {
If you have an XmlDocument and you want’t to query it with linq, you first have to convert the XmlDocument to an XDocument: // Convert XmlDocument to XDocument XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(@"C:\Temp\Test.xml"); XDocument
See: http://blogs.msdn.com/brian_jones/archive/2008/11/04/document-assembly-solution-for-spreadsheetml.aspx You can now create Microsoft Office Excel documents which are compatible with the desktop client, with use of the Open Xml SDK. The created document can contain charts, formula’s etc. The data is
see: http://bytes.com/groups/javascript/89023-difference-between-return-true-return-false When you return something from a function, that value gets returned to the caller. For instance, say I had a method to multiply two numbers. Maybe the code looks like this: function multiply(num1,
There is a difference between a varaible declarde as: var test; and a variable declared as: var test = null; The first variable has a value of undefined whereas the second variable has a value
If you have a VBA macro in Microsoft Excel and a webreference to a webservice, you might get the famous Compile error: Can’t find project or library SoapClient30. In mine case it wasn’t missing the
If you use the code Debug.WriteLine("test"); and nothing appears in the debug window of Microsoft Visualo Studio .net, make sure the dll is build with DEBUG and TRACE constant. Also, check if the web.config file