✅ Rider does not recognise WebImage Helper
I have a simple crud app. I would like to add a drop-down menu and button like this tutorial https://learn.microsoft.com/en-us/aspnet/web-pages/overview/ui-layouts-and-themes/9-working-with-images
I just copied and pasted this tutorial code into my source code on Rider
@{
WebImage photo = null;
var newFileName = "";
var imagePath = "";
var imageThumbPath = "";
if(IsPost){
photo = WebImage.GetImageFromRequest();
if(photo != null){
newFileName = Guid.NewGuid().ToString() + "_" +
Path.GetFileName(photo.FileName);
imagePath = @"images"
Could anyone kindly point me in the right direction? Is there an alternative to WebImage Helper which just lets my code add the image drop-down button? My Rider does not have the UI overview that lets me add it per drag and drop, just to let you know.
I just copied and pasted this tutorial code into my source code on Rider
@{
WebImage photo = null;
var newFileName = "";
var imagePath = "";
var imageThumbPath = "";
if(IsPost){
photo = WebImage.GetImageFromRequest();
if(photo != null){
newFileName = Guid.NewGuid().ToString() + "_" +
Path.GetFileName(photo.FileName);
imagePath = @"images"
- newFileName; photo.Save(@"~\" + imagePath); imageThumbPath = @"images\thumbs\" + newFileName; photo.Resize(width: 60, height: 60, preserveAspectRatio: true, preventEnlarge: true); photo.Save(@"~\" + imageThumbPath); } }}
Could anyone kindly point me in the right direction? Is there an alternative to WebImage Helper which just lets my code add the image drop-down button? My Rider does not have the UI overview that lets me add it per drag and drop, just to let you know.
This chapter shows you how to add, display, and manipulate images (resize, flip, and add watermarks) in your website.
