Skip to content

Instantly share code, notes, and snippets.

Avatar

Gopikrishna Reddy Gujjula gopigujjula

View GitHub Profile
@gopigujjula
gopigujjula / JQueryValidation
Last active Aug 29, 2015
JQuery Validations
View JQueryValidation
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Validations.aspx.cs" Inherits="Validations" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title></title>
<head id="Head1" runat="server">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script>
<style type="text/css">
.redcolor
@gopigujjula
gopigujjula / foreachtest
Created Jun 3, 2015
foreach loop test in C#
View foreachtest
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ForeachTest
{
public class Program
{
static void Main(string[] args)
View usingtest
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace UsingTest
{
public class Program
{
View FTPFileCopy
using System;
using System.Net;
using System.IO;
namespace FtpFileCopy
{
public class FtpFileUpload
{
static void Main(string[] args)
{
View HorseRace Problem in C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HorseRaceProblem
{
public class HorseRace
{
static void Main(string[] args)
@gopigujjula
gopigujjula / SplitToBatches
Created Mar 15, 2013
This sample application, will create a number of objects , and add those to the list. But based on the specified batch size, it will split the list into number of batches.
View SplitToBatches
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SplitClass
{
public class Program
{
static void Main(string[] args)
@gopigujjula
gopigujjula / BigNumberAddition
Created Apr 18, 2013
Program to add two 50- digit numbers in C#
View BigNumberAddition
using System;
namespace BigNumberAddition
{
class Addition
{
static void Main(string[] args)
{
int[] firstNumber = new int[50] {
1, 2, 3, 4, 5, 6, 7, 8, 9,
@gopigujjula
gopigujjula / PrintNumbersWithoutLoop
Last active Dec 16, 2015
Print N numbers without using any loops.
View PrintNumbersWithoutLoop
using System;
namespace PrintValues
{
class PrintTest
{
static void Main(string[] args)
{
Console.WriteLine("Please enter from and to numbers\n");
@gopigujjula
gopigujjula / FTPFileCopy
Created Apr 18, 2013
File copying using FTP
View FTPFileCopy
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.IO;
namespace FtpFileCopy
{
public class FtpFileUpload
{
@gopigujjula
gopigujjula / SwapIntegers
Created Apr 18, 2013
Swapping two integer values in different ways.
View SwapIntegers
using System;
namespace Swapping
{
class Swap
{
static void Main()
{
Console.WriteLine("Swapping Two Integers using different methods.\n");
Console.WriteLine("Using Temporary variable.");