Skip to content
Blogger Corner: Today Data & Web Services, Inc.
  • Today Data & Web
  • Contact Us

Using ajax to submit an array to an asp.net page

Posted on August 10, 2021 (August 10, 2021) by admin

The following submits an array of strings to an asp.net razor page for handling. It is not straightforward how to submit an array for processing. You have to first stringify it before sending with ajax. Once it is received, you have to then deserialize it into a List.. Suppose you have an array of strings: […]

Read More…

Posted in C# examplesLeave a comment

Ensuring important information below an image is visible.

Posted on June 16, 2021 (June 16, 2021) by admin

In creating responsive web sites, we sometimes want to put a photo at the top of the page, but still ensure that the user sees important text below the photo at first glance. Otherwise, the user might not know that there is important information he should scroll to. We can use flex boxes and viewport […]

Read More…

Posted in CSSLeave a comment

Example of copying a file to another folder on a Razor page

Posted on May 15, 2021 (May 15, 2021) by admin

If you want to copy files between folders on Razor pages, open each file as a FileStream and use the CopyTo method. I created a new IActionResult called OnGetChangeFolder() that resides in my Index page code. To execute it, I call https://example.com/?handler=changefolder I have a folder of cities, each one identified by its name. In […]

Read More…

Posted in C# examplesLeave a comment

Example of adding a spinner to a fetch on a react site

Posted on March 13, 2021 (March 13, 2021) by admin

If you need to fetch data from a server while the user is viewing a webpage, you need to give the user an indication that the fetch is occurring and that the webpage is not frozen. Spinners are the perfect solution. You can show the user spinning circles, dots, bars, hearts and any other type […]

Read More…

Posted in C# examplesLeave a comment

Example of a javascript fetch to a razor page

Posted on February 2, 2021 (February 2, 2021) by admin

In this example, we have a database of tours with id, name, price, and other information. We would like to pull just the name and the price of the tour using a javascript fetch to a site hosting the razor pages. We will use the index page on the server site and assume it has […]

Read More…

Posted in C# examplesLeave a comment
  • «Previous page
  • 2
  • 3
  • 4
  • »Next page
  • 10
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Contact Us

(314) 361-5911, info@todaydata.com

Categories

  • C# examples
  • CSS
  • Email Issues
  • Misc
  • SEO
  • wordpress

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Connect your Yamaha keyboard to your PC to record
  • Filtering an html table with .net core
  • Adding a secure and trusted HTTPS certificate to your localhost Visual Studio Code website
  • Bootstrap navbar used to reverse orientation of a list
  • Add a QR code to your website using asp.net

Categories

  • C# examples
  • CSS
  • Email Issues
  • Misc
  • SEO
  • wordpress

Recent Comments

    Today Data & Web Services, Inc.
    Offices in Saint Louis, MO and Concinnati, OH
    Contact us at: info@todaydata.com