Relative Content

Tag Archive for c#asp.netwebforms

C# ASP.Net Webforms image uploading

Hello I am trying to do something for my job but everything I am doing is not helping. Even asked ChatGPT and it cannot help. I am trying with C# webforms to use a FileUploadControl to upload multiple images, up to 4 at a time, and save each image to a directory using Server.MapPath. If I upload one image it works fine. If I do a Control A to select all 4 images, it uploads fine. But if I select each image one by one, it only uploads one image. Any suggestions on how to get around this? Thanks all.

Redirect URI not working when deployed to IIS

we have created a webforms application with Visual Studio 2022. Also, created a login page using Microsoft Azure AD (Entra ID). The redirect URI works fine in the IDE, but when the application is published to a server in IIS, the redirect URI does not seem to work anymore. The error is ‘localhost refused to connect’. The redirect URI is https://localhost:12345/signin-oidc. Any help on this would be great. New to this kind of deployment. Thanks

clientid reset after postback on repeater control

When binding a repeater and using OnItemDataBound, I assign a static id to a Label control, which is then used to navigate by having a sticky header with ScrollIntoView(ElementID); links… I have over 7000 records being displayed, and pagination is NOT an option, so I only bind once, and the labels are only there/visible once per specific groupings!

Image Not Saving in folder C#

i have been trying to save image in folder i am using jquery to get image name like example.jpg then i am using image name in my ajax method to send it to my details.aspx file but the issue i am facing is that i can’t save the image in my folder why this error is occuring and how can i solve that however i am getting proper image name and proper path