Do not forget to modify the content type of the http header in order to correctly handle it on the server side or client side.
Migounette
Posts
-
Using Gzip in HttpRequests -
Connecting to RFID ReaderSorry, I thought it was a local device. Try to use the : [^] or Wireshark in order to see if the traffic comes in on both side.
-
Connecting to RFID ReaderMore information is need but, accessing a com port on Windows 7 needs to have specific security privilegde. Check your C# application to see if you do not catch a UnauthorizedAccessException My two cents
-
C#, Powershell, and ExchangeMy two cents: Certainly a privilieged account with exchange permission problem.
-
Need help,compile the sqlite3.dllGive us more details, it seems to be a problem with an external compilation and not a C# problem.
-
New to Mobile Dev --- Suggestions on Development Platforms [modified]I do not agree on the conclusion :) In fact with MonoTouch ([^]) you have a gateway for iPhone / Symbian / Windows. The problem will be compatibility and support of XAML / XNA planned for Windows 7 based phones. My two cents
-
Reg to Unicode and MBCS problem in socket programingAre you using TCP ? If yes, put the flag TCP_NODELAY. It's a classic error issue, in fact many people are confused by TCP. It's a simple example but with the TCP_NODELAY flag you should be able to receive your 5 bytes at once. [^]
-
ownerdrawn treenodesMaybe this code should help you to understand... : protected override void OnDrawNode(DrawTreeNodeEventArgs e) .... if ((e.Node != null) && (e.Node is MyTreeNode)) { MyTreeNode myTreeNode = e.Node as MyTreeNode; Rectangle bounds = e.Bounds; if (myTreeNode.CHECKBOX == true) { ControlPaint.DrawCheckBox(e.Graphics, bounds.Left, bounds.Top, 16, 16, ButtonState.Checked); bounds = Rectangle.Inflate(bounds, 16, 0); } // Draw the background and node text for a selected node. if ((e.State & TreeNodeStates.Selected) != 0) { // Draw the background of the selected node. The NodeBounds // method makes the highlight rectangle large enough to // include the text of a node tag, if one is present. e.Graphics.FillRectangle(Brushes.BlueViolet, bounds); // Retrieve the node font. If the node font has not been set, // use the TreeView font. Font nodeFont = e.Node.NodeFont; if (nodeFont == null) nodeFont = this.Font; // Draw the node text. e.Graphics.DrawString(e.Node.Text, nodeFont, Brushes.White, Rectangle.Inflate(bounds, 2, 0)); } // Use the default background and node text. else { e.DrawDefault = true; } // If a node tag is present, draw its string representation // to the right of the label text. //e.Graphics.DrawString(e.Node.Tag.ToString(), this.Font, // Brushes.Yellow, e.Bounds.Right + 2, e.Bounds.Top); // If the node has focus, draw the focus rectangle large, making // it large enough to include the text of the node tag, if present. if ((e.State & TreeNodeStates.Focused) != 0) { using (Pen focusPen = new Pen(Color.Black)) { focusPen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dot; Rectangle focusBounds = bounds; focusBounds.Size = new Size(focusBounds.Width - 1, focusBounds.Height - 1); e.Graphics.Dr
-
how to IF?!I prefer this for String type: bool isBad = ((String.IsNullOrEmpty(text1) == true) || (String.IsNullOrEmpty(text2))) My 2 cents
-
Serialization problemNot sure about the error Members of what ? Try this: public int number { get; set; } or I was looking at SOAP (never played with), but maybe with the extension of the attribute for soap envelop may work. http://msdn.microsoft.com/en-us/library/system.xml.serialization.soapignoreattribute.aspx[^] Good luck :)
-
Dont understand arraysLook at this msdn article: [^]
-
Serialization problemTry this.... // Version 1.0 [Serializable] public class SerialObj { public System.Drawing.Color color; } // Version 2.0 [Serializable] public class SerialObj { public System.Drawing.Color color; [OptionalField(VersionAdded = 2)] public int number; } // Version 3.0 [Serializable] public class SerialObj { public System.Drawing.Color color; [OptionalField(VersionAdded=2)] public int number; [OptionalField(VersionAdded=3)] public int solution; }
-
DS virtual capture deviceVirtual webcam can be found on the web. For instance : ManyCam Virtual Webcam But I don't know if I capture your question.
-
window ce 6.0 -
how to trap masktextbox control if empty or not filled by userChange it to the static method: String.IsNullOrEmpty(maskedTextBox2tel.text) == true
-
COM error in faxing componentThe difference maybe in UAC control which may prevent to load the DLL or to access a specific resource. Look at this policy explainations for more details: http://www.15seconds.com/Issue/040121.htm[^] Because, remotely it will be difficult to find any potential security reasons. Depending on the installation and the way you have installed your software. :suss: Good luck. Keep us updated.
-
Random Number QuestionFor instance: Random RandomClass = new Random(); // The Next method should be called with two arguments: the minimum value and the maximum value. int RandomNumber = RandomClass.Next(maxNumber+1, maxNumber+2);
-
COM error in faxing componentIt should be easy to fix it: It means that your module is not registered, so you have certainly copied the library to your target system without registring it. * regsvr32 xxxx.dll if you have an error use a tool to check if a missing dependency is not missing (dependency [^] Keep update us.
-
Entity Framework ComboBox issue !!Not sure I fully understood your needs. But try to override the ToString() method in order to select what's you want to display.
-
IP AddressSeveral options: Stun / UPnP / Telenet acces to your box....