This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication8._Default" %> | |
| <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server"> | |
| <h1>Two way data binding example</h1> | |
| <table id="tblUsersInfo"style="text-align:center;width: 100%; border: 1px solid #008080"> | |
| <tr> | |
| <td style="height: 20px; width:50px;border:1px solid grey"> | |
| <input type="text" id="tbUserDayPhone" name="tbUserDayPhone" /></td> | |
| <td style="height: 20px;width:50px;border:1px solid grey"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="WebApplication8.SiteMaster" %> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head runat="server"> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title><%: Page.Title %> - My ASP.NET Application</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected void Application_BeginRequest() | |
| { | |
| HttpContext.Current.Response.AddHeader("Access-Control-Allow-Origin", "*"); | |
| if (HttpContext.Current.Request.HttpMethod == "OPTIONS") | |
| { | |
| //These headers are handling the "pre-flight" OPTIONS call sent by the browser | |
| HttpContext.Current.Response.AddHeader("Access-Control-Allow-Methods", "POST,GET, OPTIONS"); | |
| HttpContext.Current.Response.AddHeader("Access-Control-Allow-Headers", "Content-Type, Accept"); | |
| HttpContext.Current.Response.AddHeader("Access-Control-Max-Age", "1728000"); | |
| HttpContext.Current.Response.End(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| USE [TwoWayDataBinding] | |
| GO | |
| /****** Object: Table [dbo].[UserInfo] Script Date: 2018-02-20 22:34:37 ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| CREATE TABLE [dbo].[UserInfo]( | |
| [UserDayPhone] [nvarchar](50) NULL, | |
| [UserStreet] [nvarchar](max) NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net; | |
| using System.Net.Http; | |
| using System.Web.Http; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Linq; | |
| namespace TwoWayDBREST.Controllers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| productBoxingDetailsID bigint | |
| shipmentProductDetailsID bigint | |
| numberOfBoxes bigint | |
| numberOfPacks bigint | |
| numberOfProducts bigint | |
| numberOfProductsPerPack bigint | |
| numberOfPacksPerBox bigint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| shipmentProductDetailsID bigint | |
| shipmentDetailsID bigint | |
| productID bigint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| productDescriptionDetailsID bigint | |
| productDescriptionID bigint | |
| productColor nvarchar(MAX) | |
| productWeight nvarchar(MAX) | |
| productSize nvarchar(MAX) | |
| productPrice nvarchar(MAX) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| productDescriptionID bigint | |
| productID bigint | |
| productDescLong nvarchar(MAX) | |
| prodctCopied bit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| productID bigint | |
| productName nvarchar(MAX) | |
| productSerialNumber nvarchar(MAX) |