Search results for query: *

  • Users: Dragon4ik
  • Content: Threads
  • Order by date
  1. Dragon4ik

    Resolved CustomValidationAttribute doesn't work

    Hi. everyone! Actually this question is the continuation of Question, but now I have the same problem on ASP.Net MVC I have the following task : write the validation attribute, which checks, if String format is right to parse into DateTimeOffset and if it isn't, app should throw an Exception. I...
  2. Dragon4ik

    Resolved CustomAttribute doesn't work

    Hi, everybody! I try to create attribute, which would validate a string format for parsing into DateTimeOffset. Here is DateStringAttribute code: public class DateStringAttribute : ValidationAttribute { public override bool IsValid(object value) { string date =...
  3. Dragon4ik

    Resolved Getting 404 from axios.post()

    Hello everybody! I am a novice in ASP.NET and try to write my first application, whose client-size which is written in React.js, using this technology . This is the simple SPA, which should send the data from its form and getting respomse. But every request ends up with the message ("Uncaught...
  4. Dragon4ik

    Resolved Nothing happen , when async method runs

    I'm bad in async programming, so tried to make a simple program, which should consolidate my knowledge. But when I compile code, nothing happen Here is my code: static void Main(string[] args) { int x,y; x = y = 0; string str = "abcd"...
  5. Dragon4ik

    Resolved Async method doesn't work

    I've faced with the problem, trying to set a timeout for function execution. I have the following code: public BitmapImage[,] GetResult(List<BitmapImage> list) { var task = Task.Run(() => GetBestPuzzleImage(list)); if (task.Wait(TimeSpan.FromSeconds(10)))...
  6. Dragon4ik

    Resolved Alghoritm of autocompleting puzzles

    I have a task to write a programm, which slice the image into the equal rectangle puzzles . Then the program must solve this puzzle without knowing the way it was sliced. I wrote the code, but it works time after time and i can't understand what problem is. Thank you in advance for any help...
Back
Top Bottom