Search results for query: *

  1. miladel

    OnLeave Razor Page Event

    First of all thanks for your reply, About what you have asked: Does changing focus to another tab count as leaving a page? Does refreshing the page count as leaving a page? Does closing a tab count as leaving a page? Does killing a browser using Task Manager count as leaving a page? Does...
  2. miladel

    OnLeave Razor Page Event

    Dear All, I need to perform a task when the user leaves a page(not the whole application) in razor pages, just opposite the OnGet method. Is there any solution? Any help would be appreciated.
  3. miladel

    Post ID to Action in modal

    Dear All, I'm almost new to Razor pages and what I need to do is to set a bool value in a database after the user confirms operation on a modal. The table model uses Dapper to query the SQL database. The problem is that, when I click on Close in the table, I can get MotorServiceId in the modal...
  4. miladel

    Data table for Razor pages

    Dear All, I need to add a data table to my razor project for getting data from SQL database using dapper. I have tried datatables.net but there is a problem in routing to the API controller, while I can redirect to the JSON data via browser, I can't catch any data in the data table. If you know...
  5. miladel

    Store multiple text lines in a tables column in SQL server

    Is each line meant to be a separate database row, or is all the text meant to stay together as a single block? it means all the text stay together
  6. miladel

    Store multiple text lines in a tables column in SQL server

    Dear All, I am working on a UWP app and I am using Dapper to connect to SQL Server2019. User must be able to put a text like this: 1.abc.. 2.xyz.. 3.mnp.. ... into a nchar column in SQL server and also read this multiple text in the app. What is the best way to do this job? What are the...
  7. miladel

    Question How to retrieve data while app is running and app in background

    Dear Skydiver, As you had truly mentioned, it is not a good idea to pull data 10 times a second, I had test this period before, it was working, but in my test there were no database updates. Finally I set the timer to 500ms so I think there would not be a big issue to update the values from PLC...
  8. miladel

    Question How to retrieve data while app is running and app in background

    Dear All, In my project, I need to connect to S7 PLC and read data in cycles like every 100ms, then update variables and put them in Database. The app based on UWP and what I need to know is that how to use all the updated values from PLC in all of the code behinds, what is the best method for...
  9. miladel

    Resolved Responsive Image on background Image

    Dear All, I need to resolve a problem in my UI in UWP, First lets explain what do I want to do: I want to set a background image in UWP App and put other images on it. the position must be fixed when the page resized also the size of both images must be in the same ratio while resizing the...
  10. miladel

    Resolved sql data to chart

    Dear jmcilhinney, yeah that's a better idea to separate every issue in a single thread. I need to change the whole program. Let's see how it will be going on. thanks Regards
  11. miladel

    Resolved sql data to chart

    Dear Sheepings, Thanks for your good points. I did a search for proper successor, as you had truly mentioned win forms are EOL. I think UWP is a better option than WPF. so now i am working on UWP to learn it. Next I will rewrite my program and I hope to do it correctly, not jut like this one...
  12. miladel

    Resolved sql data to chart

    Hi all, I have some problems to add a chart with sql data. to define the problem, I need to collect data from a sensor, store it in database and use it as a chart and data grid by time descending format. the code below is a simple example part of the project, the problem is that whenever I...
  13. miladel

    Resolved Color change issue in panels

    work very well, thank you
  14. miladel

    Resolved Color change issue in panels

    Dear all, Some thing went wrong with my buttons backcolor when I want to change it with Click. with the code below every thing is fine, if i press the button1 it turn to green and butten2 turns to gray and vice versa. the problem is that when i put both of them in a panel, only the panels...
Back
Top Bottom