Search results

  1. Permudious

    c# JsonConvert SerializeObject fails

    Not sure I could use that one. What I am trying is bind 4 kind of values (27.0, 27, 26.8, 26) to names ( TemperatureAquarium, TemperatureAquariumShrt, TemperatureSump, TemperatureSumpShrt) I can add them static for now, but somehow they have to add in a list first right? before I can serialize...
  2. Permudious

    c# JsonConvert SerializeObject fails

    Seems like I have to use JToken.Parse. But when I do that, I still got some backslashes and \r\n as well string json = JsonConvert.SerializeObject(TemperatureList, Formatting.Indented); var jsonreturn = JToken.Parse(json); return jsonreturn.ToString(); "[\r\n {\r\n...
  3. Permudious

    c# JsonConvert SerializeObject fails

    Hereby the code csResponse response = new csResponse(); public class csResponse { public int StatusCode { get; set; } public string ErrorMessage { get; set; } } public class csTemperature { public string TemperatureAquarium { get; set; } public string TemperatureAquariumShrt...
  4. Permudious

    c# JsonConvert SerializeObject fails

    Good evening, I am developing a Web API for the first time, where I should like expect a JSON output. Whatever I try with a return I still have an invalid response. This is the output...
  5. Permudious

    C# Razor foreach with shopping cart

    Hi Jay, Yes every Product has its own ProductId, there were no errors in the console so far I've seen. I solve it to add the simple JS inside the foreach below my button to add them in the cart.
  6. Permudious

    C# Razor foreach with shopping cart

    Goodmorning, I am trying to build a webshop where I've got an issue to add items to a cart. In my case I have 3 simple Items (Cookies, Cakes and Donuts) and only the first item will be added in the cart by pressing on the add cart button. I really do not see why it is not working. <div...
  7. Permudious

    table printing

    So if I understand you correctly I have to add this inside my site.css and than it should work? @media print { body { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } table { background-color: blue; } td {...
  8. Permudious

    table printing

    And what if the style is inside the html? Or like the CodePen view?
  9. Permudious

    table printing

    Hi all, I was wondering if I can print a table inside HTML, I am able to do a print preview but I can't find where I can add some style. Below my code; I also made a codepen project, which will be easier to view. https://codepen.io/Permudious/pen/oNJrwLj <div class="left"> <div...
  10. Permudious

    c# Post JSON

    Sorry not working.. this is by the way the other side of the form (php page) $key = $_GET['Key']; $machineid = $_GET['MachineID']; $company = $_GET['Company']; $project = $_GET['Project']; $contact = $_GET['Contact']; $mail = $_GET['Mail']; $actdate = $_GET['ActivationDate']; $token =...
  11. Permudious

    Habbo 2020 client

    It's terrible the 3D view, Habbo is an old scool game. Which was in 2001 a cool game (v1) :-), R63 was good :-| and R63B was to futuristic :-(.
  12. Permudious

    c# Post JSON

    Correct, I was not the intention to show the real post. When I post the exact keys and values via Postman it is working fine.
  13. Permudious

    c# Post JSON

    It should post information into PHP. Here below the code that I have used. In line 24 there was an error. In your code it was 'httpWebRequest' but this is not in use, so I have changed that to 'ObjRequest' string url = "http://localhost/index.php"; HttpWebRequest objRequest =...
  14. Permudious

    c# Post JSON

    Hi Jay, I have copied an paste the code, there was an error but I have fixed that. But it is not working. He is not finishing his post. :-(
  15. Permudious

    c# Post JSON

    Hi there, I have written a code which seems like working but in c# I can't post a JSON request. When I do the same post in Postman, it is working fine. What do I wrong? string username = "demo"; string password = "password"; string firstname = "John"...
  16. Permudious

    c# Send telnet command WinForms

    Thanks! let me try TcpClient.Connect. It's always a local machine. 1594793488 Okay it's kinda working for now.. only I have an if, else if, else case which checks a value if the value is < 10 than the message is -green if the value = 10 than the message is -red. The value can be changed when the...
  17. Permudious

    c# Send telnet command WinForms

    Hiya! I am developing a tool which is using Tenet. I would like to send a command. I have test this directly in Windows so the parameters should work, but I have no Idea how I can send a command when I press on a button. This is the code below; Please keep in mind; IP = 127.0.0.1 (localhost)...
  18. Permudious

    Client change r63a

    They say I must change the XML file from PixelTimeCMS v12.1 but I cant find the file for this change :o
  19. Permudious

    Client change r63a

    Hello ! I had just one question . I want my swf going to make a little different for the loading thereof . I want to change the bars at the top right . Towards the middle like the style of new crypto . Does anyone know where I should look into the swf it is HabboUI editor? Thank you in...
Top