Tags » ASP. NET

.NET Core vs .NET Framework Web Applications in ASP.NET

“When and when not use .NET core and .NET Framework”

When you gone to create new ASP.NET web application you will get many templates if you selected new .NET framework version and with new VisualStudio versions. 136 more words

.NET Development

Dynamic Tabs in MVC asp.net



<!DOCTYPE html>
<html lang="en">
    <title>Bootstrap Case</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">


Dynamic Tabs

328 more words

A Very Merry PeziPink Code Review (Ross's feedback on the persistence layer)

One of the interesting things about the F# community is that one is likely to get direct input from prominent members who worked on substantial things, especially if (like me) you broadcast out what you are doing very publicly. 541 more words


Using ASP.NET Identity Role Claims without .NET Core

One new feature of ASP.NET Identity Core is Role Claims, you can find a quick introduction here: http://benfoster.io/blog/asp-net-identity-role-claims
However, if you don’t want to use .NET Core yet in production you can’t use this nice feature. 50 more words


Get And Set Description Attribute For A Property

StringBuilder sb = new StringBuilder();

//Get the properties for type T for the headers. T is a class
 PropertyInfo[] propInfos = typeof(T).GetProperties();
 for (int i = 0; i <= propInfos.Length - 1; i++)

 string descriptionAttribute = null;
 object[] attrs = propInfos[i].GetCustomAttributes(true);
 foreach (object attr in attrs)
 DescriptionAttribute descAttr = attr as DescriptionAttribute;
 if (descAttr != null)
 descriptionAttribute = descAttr.Description;

 if (descriptionAttribute != null)

 if (i < propInfos.Length - 1)


Addition of new pages to Precompiled Site


Recently , I faced this issue of adding new product pages, for a .net 2.0 website which is precompiled, and we don’t have any source code with us. 129 more words


Harmful characters in Form Value

This scenario was found in an application following the MVC architecture.

When the user puts “<” character in the text box followed by any characters, if the form value is not sanitized, then it is considered to be harmful. 100 more words