Category "asp.net"

Error Specified argument was out of the range of valid values. Parameter name: index in DataGridview Row Data Bound

I got an error of Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more i

Compiler Error Message: CS0246: The type or namespace name 'Slider' could not be found

i have created image insert page form using ASP.NET and C# and getting error while running on my hosting server it shows below error , but it works fine on loca

Why does C# encounter this error as to the CSC file?

I am pretty new in C# development and I have the following problem. When I try to build the application on which I am working I obtain the followings errors me

How to access textbox inside grid view of parent page in popup page?

I have a pop up page where I want to get the textbox value which is inside gridview of main page, and populate value in that textbox. I have tried: var Emp =

How to create a stacked column chart?

I have following SQL Server Result. How to create a stacked column chart with asp.net 4 chart control? Hospital September October April OMD

How can we protect our image being copied from our web site

How can we protect our image being copied from our web site? Can we disable copying image content from our website or any?

.NET core - Configure JWT Authentication at runtime

I have an ASP.NET Core 2 Web Application and I am using the [Authorize] attribute on the controllers that require authentication. As authentication mechanism, I

How to disable link button after click (no JQuery)

I want to disable link button after user click on it. But I made something wrong here. Button is still enabled after click. What am I doing wrong? <asp:Li

How do I disable request validation without setting RequestValidationMode to 2.0?

We've just upgraded to ASP.NET 4.0, and found that requestValidation no longer works. The MSDN docs suggest we need to set requestValidationMode in web.config t

The constraint reference 'string' could not be resolved to a type. (netcoreapp3.0)

I have got an error. This is my Startup class. public void ConfigureServices(IServiceCollection services) { services.AddControllers(); } public void Confi

How do I validate a JWT using JwtSecurityTokenHandler and a JWKS endpoint?

I am prototyping the use of IdentityServer4 to secure several services, with the caveat that those services will likely not be migrated (in the forseeable futur

Decrypt ".AspNetCore.Session" cookie in ASP.NET Core

In Asp.Net core, a cookie is created when you configure your app to app.UseSession(). By default the cookie is called ".AspNetCore.Session". Its value identifi

How to access C# class from Javascript

I have a class named book in C#. In an ASPX page (which has access to book class), I have an iframe element. I want to use Javascript from the page in the ifram

How to access C# class from Javascript

I have a class named book in C#. In an ASPX page (which has access to book class), I have an iframe element. I want to use Javascript from the page in the ifram

The type initializer for 'System.Data.Entity.Migrations.DbMigrationsConfiguration`1' threw an exception

I have ASP.Net MVC site. Technology Stack ASP.Net 4.6 C#.Net EF 6 MySQL -Database While I am trying to generate the database using Nuget command:- Enable-Mi

Make text to the default style

I am using tinyMCE editor in my asp.net application, What I want to if some has change the text color to red or green etc., then automatically text color change

Only last radio button control in list being set as checked

I have a list with each element of the list containing a star rating control which allows the user to set their preference for that element. The rating control

"There was an error while performing this operation"

I have a website in IIS for which I cannot open any of the settings like Authentication, Handler Mappings, Authorization Rules etc. It just shows the error mess

asp.net - How to find outlook mail attachment by ContentId Property

I can find email attachment from a MailMessage by ContenId like the following code : System.Net.Mail.MailMessage objNewMail = null; System.Net.Mail.Attachment

The EXECUTE permission is denied on the user-defined table types?

I have a question about User-Defined Table Types in SQL Server 2008. For the need of one of the ASP.NET application we defined our own table-types on SQL Serve