Questions




Answers
1
Console error "Syntax error Unexpected token 'export' popper.min.js"

I am using below scripts in my page and have included popper.min.js using CDN but getting an error, "Syntax error Unexpected token 'export' popper.min.js"

    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/js/select2.full.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js"></script>

Here is the error image, take a look

...

Read More
Answers
1
How to pass Model to Partial View in ASP.NET MVC?

I have created Bootstrap tabs inside ASP.NET MVC razor view and calling Partial View from inside bootstrap, but I would like to know how can I pass Model to partial view while rendering it?

...
Read More
Answers
1
How to add / remove class in jQuery dynamically on click?

I am trying to create a list of anchor tags, and want to add or remove CSS class on a button click, Suppose this is my sample code

...
Read More
Answers
1
How do I create object for IQueryable in C#?

I am trying to create and Instantiate IQueryable<T> object in my C# MVC project, but I am not able to create it, I would like to use it instead of List<T> = new List<T>, so how can I do it? I am trying this

...
Read More
Answers
1
How to check if File exists in C#? (Inside folder)

I am trying to download a file from a url, and there are many files, but I don't want to download files that already exists in my drive. So I want to implement to check if file already exists in a folder using C#?

...
Read More
Answers
1
How to check the total number of object stored in S3 bucket in AWS?

I am searching my s3 bucket and I would like to know how can I check total number of objects (files) I have uploaded inside particular S3 Bucket on amazon web server? I am looking for easy solution here.

...
Read More
Answers
1
How to check if string is number (IsNumeric) in C#?

I have a string "123" and another string "Test", now I want to identify from which you these string conatins number, so How can i check if string is a number or not in C#, is there any method in C# or we need to create custom method for it?

Example :

"11" = true

"Hello"= false

...
Read More
Answers
1
What is the visual studio 2019 download size, complete Community Edition?

I am trying to download Visual Studio 2019 Community edition for offline, but I would like to know what is the total size for Visual Studio 2019 Community Edition? I have downloaded 20GB of it, but it is still not complete, so I would like to know how long I will have to wait.

...
Read More
Answers
1
Format any number to two place of decimal using JavaScript?

I am getting data from the server using jQuery data table, now I want to format all the price or numbers getting from the server to two decimal places using javascript.

How can I do it?

For example:

...
Read More
Answers
1
How to upload file in ASP.NET without using asp file upload control?

I was trying to upload file in asp.net web-forms using File upload control which works fine, considering article example here https://qawithexperts.com/article/asp-net/file-upload-in-aspnet-web-forms-upload-control-example/273

But what if I don't want to use file upload control of web-form, so how can I upload file in asp.net without using the fileupload server control? Basically I would like to use "<input type='file' />"

...
Read More

Page 1 of 45