TechSapphire Wednesday, 2024-07-17, 12:37 PM
Site menu
Login form
Play Games
  • Deep Freeze
  • Ice Slide
  • Gyroball
  • Fat Fish
  • Bush Royal Rampage
  • Main » Programming

    Code snippets and steps to create custom code snippets

    Code snippets are meant as small region of reusable code. Which allow you to use intellisense to insert set of code N number of times. Below are the content you will cover in lecture. Using code snippets can save a lot of time and effort. Also help in distributing common standard code among team.

    • Code Snippets – Introduction
    • Ways to insert code snippets
    • Custom Code Snippets
    • XML File walkthrough
    • Examples
    • Using the custom snippets

    • Ready made code fragments
    • Two types
       • Expansion code snippet
       • Surround with code snippet

    Custom code snippets:
    • Steps to create custom code snippet
    • Create an XML file w ... Read more »

    Category: Programming | Views: 19778 | Added by: Admin | Date: 2016-09-15 | Comments (0)

    Keypress event in WPF to validate integer input is replaced by PreviewTextInput in C#

    In WPF we don't have keypress event, generally people used keypress event in windows forms application to validate text input. Now in this example I have showed how you can validate input from textbox using PreviewTextInput event. In this example I validated input to accept float values, you can use this to validate integer or any other number type validation.

    Code used in example is:


    <Window x:Class="TestApplication.MainWindow"
          ... Read more »

    Category: Programming | Views: 5967 | Added by: Admin | Date: 2016-03-06 | Comments (0)

    C# Best Practices

    In this article I have focused on practical aspect more, and also I have not included basic practices as you can learn them from any article available online. I have tried to cover basic practices which will minimize your coding effort as well as it will make your code more manageable and also will reduce run time exceptions.

    Topics covered in today’s lecture are:

    • Common Coding Guidelines
    • SQL Helper Class
    • Using Lamda expression or LINQ
    • Some common tips
    • Cross resolution design
    • LINQ operators and operations

    To read full article click below:

    Category: Programming | Views: 3778 | Added by: Admin | Date: 2015-09-18 | Comments (0)

    Error: Subreport could not be shown. RDLC using with ASP.NET.

    This exception is thrown only in 3 cases:
    1. Parameter is not passed to sub report
    2. Parameter which is been passed is not been created on sub report
    3. Data type of parameter on main report and sub report is not matching up.

    To view complete article click here.

    Category: Programming | Views: 4395 | Added by: Admin | Date: 2015-07-15 | Comments (0)

    Uploading and downloading file on SFTP using private key in .NET using SharpSSH

    Topic to cover:

    Connecting SFTP using Private Key using .NET console App
    • Downloading and Uploading File

    For complete SFTP operation in detail check link below:

    Library used Sharpssh. To install:

    • Got to Tools:>Library Package Manager:>Manage NuGet Pankages for solutions

    • Search SharpSSh

    • Install

    To view comple ... Read more »

    Category: Programming | Views: 3031 | Added by: Admin | Date: 2015-07-09 | Comments (0)

    Insert Delete Update Select using Web Service and Stored procedure in ASP.NET

    In this lecture, you will learn to do basic CRUD operation using web service and stored procedure. To complete this lecture you need database script, web service and website to test. You can download it from here (click here to download). Lecture:

    Category: Programming | Views: 3098 | Added by: Admin | Date: 2015-03-09 | Comments (0)

    How to improve logic building ?

    Note: Watch video before reading text below.

    • Now concept of logic building is not so complex and not so simple.
    • We will not work on how to make logic program in C ?
    • We will study how to build complex logic in SQL, .NET, JAVA or any other major technologies in market.

    Main Part:

    • Main part in logic building under all technologies is LIBRARY DEFINED FUNCTIONS.
    • This is the main thing I will explain you with different examples in complete lecture.

    Click here to read complete article.

    Category: Programming | Views: 7761 | Added by: Admin | Date: 2014-09-28 | Comments (0)

    In this tutorial I have used SharpSSH for downloading, uploading and deleting file from remote SFTP..

    Code use in video is mentioned below:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Tamir.SharpSsh;
    using System.Collections;
    using System.Windows.Forms;
    using System.IO;
    using Tamir.SharpSsh.jsch;
    namespace SFTPConnectSample
        class Program
            static void Main(string[] args)

    Read More>>

    Category: Programming | Views: 16830 | Added by: Admin | Date: 2014-08-02 | Comments (1)

    For fixing this issue just follow simple steps below:
    1. Open jquery.elevatezoom.js file in notepad.
    2. Now you will see code below:
    (function( $, window, document, undefined ) {
        var ElevateZoom = {
                init: function( options, elem ) {
                    var self = this;

                    self.elem = elem;
                    self.$elem = $( elem );

                    self.imageSrc = self.$"zoom-image") ? self.$"zoom-image") : self.$elem.attr("src");

    Just replace highlighted code with code below:

                    self.imageSrc = self.$elem.attr("sr ... Read more »
    Category: Programming | Views: 31426 | Added by: Admin | Date: 2014-03-09 | Comments (0)

    In this lecture you will cover mainly:
    What to do before interview ?
    What no to do before interview ?

    Resume is main part. Please reference attached files for interview and PPT.

    Click to go to download page
    Category: Programming | Views: 3011 | Added by: Admin | Date: 2014-03-02 | Comments (0)

    1 2 3 »
    Programming [27]
    Tips for programming
    Security [2]
    Security Tips
    Google [1]
    Use google faster then ever you use
    Project [14]
    HTML [2]
    Electronics [0]
    Data Structure [0]
    Database [16]
    SSRS [1]
    Sql Server Reporting Services
    Copyright MyCorp © 2024