C
C#

help

❔ async code in cshtml file of asp net framework that target IE browser

Llux12/12/2022
hi all, i understand that Internet Explorer arent' compatible with async/await, but is there an alternative to this if we want to handle asynchronous code (API request for example before we execute the next code) and our target website is Internet explorer, do we have to install babel into our asp net framework project?
AAnton12/12/2022
I'm not sure they offer tools like that, I'd manage this manually with a separate node project with all of this configuration then you can add typescript, any polyfills you want, any linters you want, etc.
Llux12/12/2022
hmm... let me try it out..
MWMonsieur Wholesome12/12/2022
cshtml being server-side rendered, your async code wouldnt even ship to the IE browser 🤨 Ohhhhhhhhhhhhhhhhhhhhhhhhhh, we're talking JS' async-promise thingy?
AAnton12/12/2022
yes
MWMonsieur Wholesome12/12/2022
wow
UUUnknown User12/12/2022
Message Not Public
Sign In & Join Server To View
AAnton12/12/2022
a lot of people keep using it
AAngius12/12/2022
Fuck them people They deserve the internet to be broken for them To answer your question, though: save yourself some sanity and just use Babel
Llux12/13/2022
i used babel but got so many issue on the visual studio
Llux12/13/2022
AAccord12/14/2022
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
❔ AmazonS3 set up for svgDoes anyone know how to sets the output format to svg with MagickImage? Amazons3✅ Explicit call ToString() when interpolating on primitive (value) typesIs it necessary to call ToString() when interpolating string using primitive (int, float, etc.) or i✅ How do I change background color of a label from a different namespace part of my app?In my main program class I run `Application.Run(new Form1());` how do I access this instance of my w❔ Chat app with cHow do i make a working chat kinda like messenger❔ Multiple commandHello, i'd like to implement 2 command on 1 button. I wanna confirm if this composite command class✅ Need some help converting PHP code to CSHey, I *think* I wrote this right but I'm getting different results. Perhaps someone knows what I di❔ Decent reference ASP.NET projectI am looking for a reference project for investigation purposes. Appreciate if anyone can share repo❔ Arithmetic Sum helpHey! So I want to run this simple code, but I'm getting an error saying: "Use of unnasigned local va❔ Mic input problemHey, I'm trying to use mciSendString to record audio from the user's microphone, and save it as a .w❔ Update my entity models every time my database changes.Hi, I've got an application in Entity Framework and it shares the same database with another applic✅ Multiple one to many relationshipsI've just recently started using ASP.NET and I ran into a bit of a wall Basically: ``` public cl❔ Reference counting, reflectionlet's say i have following example code ```csharp // References: 0 - vs shows 0 references public vo❔ I can't see text opacity property in csharp .net form.How can i change label's opacity?❔ How to use build directory as working directory in debugHey, I have a class library that has a `.json` file in a sub-directory, it's marked as content and c❔ How can I prevent content files from ProjectReferences being copied on build?I have a test project (`Tests.csproj`) that contains an nlog.config file which needs to be copied to✅ Determining a Configuration TypeI'm running into a problem trying to access a specific property of a configuration type. I'm unsure ❔ Social media profiles hidden information?in social media websites when i set something like my email to private or only shown for me does the❔ Deleting something from a canvas.How do I remove an entity from a canvas? I've figured out, that there is a "canvas.Children.Remove()Newtonsoft JsonConverter to replicate the serialization of the JsonObjectAttribute on an IEnumerableCan someone help me create a Newtonsoft.Json.JsonConverter that will write an IEnumerable the same w❔ static fields for struct types(1) ```cs public static class StructA { public static readonly StructA ValueA = new (..) ; } `