This file contains 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
@{ | |
ViewBag.Title = "Multiselect Cross Device ASP.NET MVC Control"; | |
} | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
<div class="jumbotron"> | |
<div class="input-control select" style="width:100%;"> | |
<select multiple style="width:100%;height:177px;display:inline-block; vertical-align:top; overflow:hidden; border:1px solid #ccc;"> | |
<option style="background-image:url(../Icons/tomato.png);background-repeat:no-repeat;background-position:left;background-size:30px;background-position-x:5px;text-align:center;font-size:17px;height:35px;padding-top:8px;padding-left:30px">TOMATO</option> |
This file contains 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 [VERYFASTREADINSERT] | |
GO | |
/****** Object: Table [dbo].[LRT3] Script Date: 4/19/18 11:42:24 AM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO |
This file contains 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 [VERYFASTREADINSERT] | |
GO | |
/****** Object: Table [dbo].[LRT3FK] Script Date: 2018-04-19 20:41:22 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO |
This file contains 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
static readonly Func<LRT3FKDataContext, short, IQueryable<LRT3FK>> s_compiledQuery = | |
System.Data.Linq.CompiledQuery.Compile<LRT3FKDataContext, short, IQueryable<LRT3FK>>( | |
(ctx, PKID) => from dr in ctx.LRT3FKs | |
where dr.PKID == PKID | |
select dr); |
This file contains 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
var line = data[i].ToString().Split('\t'); | |
var nextLine = data[i + 1].ToString().Split('\t'); | |
if (line[0].ToString().Trim() == nextLine[0].ToString().Trim()) | |
{ | |
//The fourth column in our data text file that we already read - text file | |
String PKcriteria = nextLine[3].ToString().Trim(); | |
//ALL LRT3FK values, or , our Foreign Key Values Table | |
// We, in a way import all of it to our business layer, then use it |
This file contains 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 [AdventureWorks2012] | |
GO | |
/****** Object: Table [dbo].[RANDOMDATA] Script Date: 2018-03-31 01:38:32 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO |
This file contains 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
function startStandardLINQ(t) { | |
var timer = new Timer(); | |
timer.start(); | |
timer.addEventListener('secondsUpdated', function (e) { | |
$('#standardLambdaOne').html(timer.getTimeValues().toString()); | |
}); | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange = function () { | |
if (this.readyState == 4 && this.status == 200) { |
This file contains 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
DELETE FROM [dbo].[TBL_test_temp] | |
DELETE FROM [dbo].[TBL_test_temp_two] | |
INSERT [dbo].[TBL_test_temp] ([TESTCOLUMNONE], [TESTCOLUMNTWO],[PK]) VALUES | |
(N'TTTTTTTT',N'TTTTTTTTTTTTTT',1) | |
INSERT [dbo].[TBL_test_temp_two] ([TWOcolumnone], [TWOcolumntwo],[PK]) VALUES | |
(N'AAAAAAAA',N'AAAAAAAAAAAAAA',1) | |
This file contains 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
--2 | |
BEGIN TRAN; | |
Update TBL_test_temp_two set | |
TWOcolumnone =N'AAAAAAAA', | |
TWOcolumntwo =N'AAAAAAAAAAAAAA' | |
Where PK =1 | |
And TWOcolumnone =N'AAAAAAAA' | |
AND TWOcolumntwo = N'AAAAAAAAAAAAAA' | |
COMMIT; |
This file contains 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.Configuration; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Text; | |
using System.Web; | |
using System.Web.Mvc; | |
using Newtonsoft.Json; |
OlderNewer