Posts

Showing posts from May, 2015

Multiple File Uploading using Javascript and Web API

Image
Hi Guys, I had a requirement to make way to upload multiple files using basic htmls. So I used javascript to achieve this. Hope you like it. 1) MultiFileUpload.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="MulitpleFileUpload.aspx.cs" Inherits="MulitpleFileUpload" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head>      <script>          function addRow() {              var table = document.getElementById('myTable');              var row = table.insertRow(0);              var cell1 = row.insertCell(0);              var cell2 = row.insertCell(1);              var cell3 = row.insertCell(2);       ...

Organization Re-Structure Control : Add Sub Nodes using JQuery Modal

Image
Hi Guys, This is a continuation of my previous post .My colleague requested me to allow the user to add new sub nodes. I used JQuery Modal to allow the user to add a new node. Hope you like it. 1) OrganizationOrderControl.cs using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using System.Web.UI; using System.Runtime.Serialization.Json; using System.Runtime.Serialization; using System.Web.UI.WebControls; using System.IO; using System.Text; /// <summary> /// Summary description for OrganizationOrderControl /// </summary> public class OrganizationOrderControl<T> : Control {     private List<TreeNode> Nodes { get; set; }     public OrganizationOrderControl()     { }     public List<T> Items     {         get         {             if (...