Skip to content

Instantly share code, notes, and snippets.

View tnayanam's full-sized avatar

Tanuj Nayanam tnayanam

  • Syracuse, NY
View GitHub Profile
<html style="" class="js flexbox flexboxlegacy canvas canvastext webgl touch geolocation postmessage websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow textshadow opacity cssanimations csscolumns cssgradients cssreflections csstransforms csstransforms3d csstransitions fontface generatedcontent video audio localstorage sessionstorage webworkers applicationcache svg inlinesvg smil svgclippaths fa-events-icons-ready gr__localhost"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Create - My ASP.NET Application</title>
<link href="https://fonts.googleapis.com/css?family=Metrophobic" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.2.3/jquery-confirm.min.css">
<link href="/Content/bootstrap.css" rel="stylesheet">
<link href="/Content/site.css" rel="stylesheet">
@model Bridge.ViewModels.SmallButtonViewModel
@using Bridge.ViewModels
@*<td style="width: 125px;">*@
<td>
<div class="btn-group" role="group">
@Html.Partial("_SmallButtonPartial",
new SmallButtonViewModel
{
Action = "Edit",
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=184.168.194.78,1433;Network Library =D BMSSOCN;Initial Catalog=refervilla007_;User ID=ReferVille;Password=ReferVille_007;" providerName="System.Data.SqlClient" />
</connectionStrings>
// Suppose we want to update something based on Ajax Call
UI: HTML Dropdown
Step 1: // ***here we have the change event of dropdown which will call ajax
<select id="idselect" name="classselect" onchange="makeajaxcall()">
<option value="2">Two</option>
<option value="3">Three</option>
</select>
Step 2: Make the actual ajax call on change of dropdown
<script>
function makeajaxcall()
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<script runat="server">
protected void btnSave_Click(object sender, EventArgs e)
{
//Include three second delay for example only.
System.Threading.Thread.Sleep(3000);
Label1.Text = "Button Clicked";
}
using Amazon;
using Amazon.CloudWatchLogs;
using Newtonsoft.Json;
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Threading;
namespace ConsoleApp16
namespace SM.BrokerDomain.BLL
{
/// <summary>
/// Performs bulk-writes of logs to the database.
/// Do not use this class directly for logging. Instead, use the FederationLogger singleton for logging.
/// </summary>
public class BulkLogWriter
{
namespace SM.BrokerDomain.BLL
{
/// <summary>
/// Performs bulk-writes of logs to the database.
/// Do not use this class directly for logging. Instead, use the FederationLogger singleton for logging.
/// </summary>
public class BulkLogWriter
{
public class BulkLogWriterResult
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using SM.BrokerDomain.DTO.Configuration;
using SM.BrokerDomain.DTO.Federation;
using SM.BrokerDomain.DTO.System;
using SM.BrokerDomain.Repo.SystemModels;
using SM.BrokerDomain.DTO.Configuration;
using SM.Common.BLL.AppServices.Statistics;
using SM.Common.BLL.Helpers;
using SM.Common.DTO.Configuration;
using SM.Common.DTO.Exceptions;
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;