ASP.NET MVC Articles
-
generate models from a database in an ASP.NET MVC application
Murugan Andezuthu Dharmaratnam | 30 March 2024 | 525
To generate all models from a database in an ASP.NET MVC application, you can use the Entity Framework's reverse engineering feature known as Scaffold-DbContext. This command creates entity classes and a DbContext class based on the schema of the existing database. Here's how you can do it using Scaffold-DbContext … CONTINUE READING
-
sub menu items not displaying in the mobile view of an ASP dot NET MVC 6 application
Murugan Andezuthu Dharmaratnam | 28 February 2024 | 584
In Bootstrap version 4.6.2 I am able to get the menu working on web application But I am unable to get the menu & sub menu or the second level menu working on mobile application. In bootstrap version 5.3.2 I am able to get the first level menu working on mobile and web but the sub menu or second level menu does not work. Here's the working solution. … CONTINUE READING
-
asp .net mvc how to log out a user in an ASP.NET MVC application using ASP.NET Identity
Murugan Andezuthu Dharmaratnam | 04 February 2024 | 763
asp .net mvc how to log out a user in an ASP.NET MVC application using ASP.NET Identity … CONTINUE READING
-
Confirm Form Resubmission ASP .NET 6
Murugan Andezuthu Dharmaratnam | 30 January 2024 | 604
I am getting this message Confirm Form Resubmission. Here is the solution for the same … CONTINUE READING
-
500 Internal Server Error The certificate chain was issued by an authority that is not trusted
Murugan Andezuthu Dharmaratnam | 02 January 2024 | 634
IIS Throws error 500 Internal Server Error, The certificate chain was issued by an authority that is not trusted. MSSQL Server Eror … CONTINUE READING
-
System.Web.HttpException Maximum request length exceeded
Murugan Andezuthu Dharmaratnam | 10 February 2021 | 3073
If you are getting the Maximum request length exceeded exception then you need to modify the web.config file to allow files of larger sizes. … CONTINUE READING
-
error asp.net mvc pass string to view
Murugan Andezuthu Dharmaratnam | 27 January 2021 | 1708
getting exception while passing a string to a view … CONTINUE READING
-
Exception Could not load file or assembly Microsoft.WindowsAzure.Storage
Murugan Andezuthu Dharmaratnam | 19 January 2021 | 1972
asp .net mvc exception Could not load file or assembly 'Microsoft.WindowsAzure.Storage' writing code to upload file to blob stroage. … CONTINUE READING
-
Exception Could not load file or assembly Microsoft.WindowsAzure.Configuration
Murugan Andezuthu Dharmaratnam | 19 January 2021 | 1803
asp .net mvc exception Could not load file or assembly 'Microsoft.WindowsAzure.Configuration' writing code to upload file to blob stroage. … CONTINUE READING
-
asp .net mvc exception To allow GET requests set JsonRequestBehavior to AllowGet
Murugan Andezuthu Dharmaratnam | 30 September 2020 | 3016
-
asp.net mvc how to return page not found from an action method
Murugan Andezuthu Dharmaratnam | 30 September 2020 | 1852
how to return HTTP Error 404.0 - Not Found from an asp .net MVC action method … CONTINUE READING
-
asp.net mvc web api using server.mappath to resolve the error access to the path is denied
Murugan Andezuthu Dharmaratnam | 26 September 2020 | 3765
How to use asp.net MVC Server.MapPath() and Asp .net web API Hosting.HostingEnvironment.MapPath() function to store the file in the right folder. If you get the error Access to the path is denied while writing a file this might be because you are not using … CONTINUE READING
-
asp .net mvc pass list of javascript object from view to controller without using ajax
Murugan Andezuthu Dharmaratnam | 25 September 2020 | 3810
How to pass a list of a javascript object from view to controller in asp .net MVC application … CONTINUE READING
-
asp.net mvc create an autocomplete textbox using jquery autocomplete
Murugan Andezuthu Dharmaratnam | 21 September 2020 | 2355
autocomplete textbox in asp.net MVC with the database using c# and jquery … CONTINUE READING
-
asp.net mvc html.editorfor textarea
Murugan Andezuthu Dharmaratnam | 18 September 2020 | 2891
how to display HTML Textarea instead of input in an asp .mvc view. I have a Country object and Country Controller in my asp .net MVC application. When I scaffold to create a create view I see an input text box. I would like to display a textarea for the description property in my class. … CONTINUE READING
-
asp.net mvc file upload using jquery
Murugan Andezuthu Dharmaratnam | 18 September 2020 | 2342
In this article, we will write code to upload files using jquery in as asp .net MVC application. the file is transferred from the view .cshtml page to the controller using the jquery ajax method. … CONTINUE READING
-
asp net mvc C# list of objects to javascript array of objects
Murugan Andezuthu Dharmaratnam | 17 September 2020 | 6289
How do I convert my C# Object to a javascript object in asp .net MVC application?. I have a list of countries with properties Id, Code, Name in my asp .net MVC C# backend code & wanted to have an array of the object of Country in the frontend .cshtml page. The solution is the serialize the list of countries into JSON and pass it to .cshtml page via model or viewbag and then convert it to array objects using jquery. … CONTINUE READING
-
asp.net mvc authentication and authorization
Murugan Andezuthu Dharmaratnam | 11 September 2020 | 2552
asp.net MVC authentication and authorization using authorize attribute … CONTINUE READING
-
asp.net mvc cascading dropdownlist using jquery and ajax
Murugan Andezuthu Dharmaratnam | 11 September 2020 | 5708
In this post, we will create a cascading drop down list using asp .net mvc and ajax. we will have a country state city drop-down, where when the user selects a country all the states which belong to the country will be listed in the state drop down and when you select the selected state all the cities belong to that state will be listed in the city drop down … CONTINUE READING
-
asp .net mvc exception The parameters dictionary contains a null entry for parameter id of non-nullable type
Murugan Andezuthu Dharmaratnam | 08 September 2020 | 0
The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Guid' for method 'System.Web.Mvc.ActionResult Edit(System.Guid)' in 'YourAppName.Web.Controllers.YourController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Parameter name: parameters … CONTINUE READING
-
asp .net mvc exception sections have been defined but have not been rendered
Murugan Andezuthu Dharmaratnam | 08 September 2020 | 2699
asp .net mvc exception the following sections have been defined but have not been rendered for the layout page views shared .cshtml scripts … CONTINUE READING
-
asp .net mvc allow . in url
Murugan Andezuthu Dharmaratnam | 04 September 2020 | 2763
asp .net MVC allow . in URL, if dots are found in asp .net MVC URL it throws as 404 - File or directory not found error. … CONTINUE READING
-
razor if string is null or empty return default
Murugan Andezuthu Dharmaratnam | 04 September 2020 | 3789
how to check for a null or empty value in asp .net MVC razor template … CONTINUE READING
-
asp.net mvc redirect to external url with parameters
Murugan Andezuthu Dharmaratnam | 01 September 2020 | 2873
redirect to external url with parameters in asp.net mvc from a mvc controller … CONTINUE READING