This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
[ | |
{ | |
"latitude": "34° 31' 24.924", | |
"longitude": "50° 0' 20.866", | |
"province": "مرکزی", | |
"state": "آشتیان", | |
"city": "آشتیان" | |
}, | |
{ | |
"latitude": "33° 40' 29.197", |
using System; | |
using System.Collections.Generic; | |
using StructureMap; | |
using StructureMap.Building.Interception; | |
using StructureMap.Pipeline; | |
namespace AOPStructureMap | |
{ | |
public interface IAppService | |
{ |
// boostrap 4 load modal example from docs | |
$('#modal-container').on('show.bs.modal', function (event) { | |
var button = $(event.relatedTarget); // Button that triggered the modal | |
var url = button.attr("href"); | |
var modal = $(this); | |
// note that this will replace the content of modal-content ever time the modal is opened | |
modal.find('.modal-content').load(url); | |
}); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>File Upload example</title> | |
<link href="/Content/bootstrap.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<form action="api/Upload" method="post"> | |
<div class="form-group"> |
StructureMapOWINMiddleware in remplacement of the IHttpModule : | |
//basic draft | |
public class StructureMapOWINMiddleware : OwinMiddleware | |
{ | |
public StructureMapOWINMiddleware(OwinMiddleware next) | |
: base(next) | |
{ | |
} |
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title>ASP.NET WebForms Validators & Bootstrap</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css" /> |
using System.Text.RegularExpressions; | |
using FluentValidation; | |
using WpfFluentValidationExample.ViewModels; | |
namespace WpfFluentValidationExample.Lib | |
{ | |
public class UserValidator : AbstractValidator<UserViewModel> | |
{ | |
public UserValidator() | |
{ |
@{ | |
var ajaxOptions = new AjaxOptions { UpdateTargetId = "form" }; | |
var htmlAttributes = new { id = "form", data_ajax_mode = "replacewith" }; | |
} | |
@using (Ajax.BeginForm("Index", null, ajaxOptions, htmlAttributes)) | |
{ | |
} |