Skip to content

Instantly share code, notes, and snippets.

View itorian's full-sized avatar
🎯
Focusing

Abhimanyu Kumar Vatsa itorian

🎯
Focusing
View GitHub Profile
@itorian
itorian / Comparing two List<T> to find match in both list, 1st list only, 2nd list only that is Insersect, Minus and Minus Except
Created April 13, 2016 09:09
Comparing two List<T> to find match in both list, 1st list only, 2nd list only that is Insersect, Minus and Minus Except
namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
List<Items> list1 = new List<Items>();
list1.Add(new Items { name = "abc" });
list1.Add(new Items { name = "abd" });
list1.Add(new Items { name = "aef" });
@itorian
itorian / Default.aspx
Created March 7, 2014 08:15
Code snippets to connect Microsoft Access Database (Office Access) : Checking user availability (custom login) and selecting data and saving data.
<script>
function SaveMember() {
var ID = document.getElementById('<%=hfID.ClientID %>').value;
var OrderStatus = document.getElementById('<%=ddlOrderStatus.ClientID %>').value;
var PaymentStatus = document.getElementById('<%=ddlPaymentStatus.ClientID %>').value;
var DispatchDateTime = document.getElementById('<%=txtDispatchDateTime.ClientID %>').value;
var CourierCompany = document.getElementById('<%=ddlCourierCompany.ClientID %>').value;
var ConsignmentNumber = document.getElementById('<%=txtConsignmentNumber.ClientID %>').value;
var DeliveryDetails = document.getElementById('<%=txtDeliveryDetails.ClientID %>').value;
var Status = document.getElementById('<%=ddlStatus.ClientID %>').value;
@itorian
itorian / Download.cshtml
Last active August 29, 2015 13:57
Upload Files (multiple files once) to SQL Server Database from Index.cshtml view page and download them from Download.cshtml view page. In the previous gist we saw code to upload single file at once here https://gist.github.com/itorian/9385989
@model IEnumerable<MvcFileUploadToDB.Models.FileUploadDBModel>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Upload New", "Index")
@itorian
itorian / Download.cshtml
Last active August 29, 2015 13:57
Upload File (Single file at once) to SQL Server Database from Index.cshtml view page and download them from Download.cshtml view page. If you want to upload multiple files once read this gist https://gist.github.com/itorian/9389738
@model IEnumerable<MvcFileUploadToDB.Models.FileUploadDBModel>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Upload New", "Index")