|
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 »
|
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:
XAML:
<Window x:Class="TestApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
...
Read more »
|
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:
|
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.
|
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:
Article: http://www.techsapphire.in/index/sftp_download_upload_and_delete_file_using_sharpssh_library/0-150
Video: https://youtu.be/VVqh0BCgFpM
Library used Sharpssh. To install:
• Got to Tools:>Library Package Manager:>Manage NuGet Pankages for solutions
• Search SharpSSh
• Install
To view comple
...
Read more »
|
How to improve logic building ?
Note: Watch video before reading text below.
Concept:
- 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.
|
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>>
|
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.$elem.data("zoom-image") ? self.$elem.data("zoom-image") : self.$elem.attr("src");Just replace highlighted code with code below: self.imageSrc = self.$elem.attr("sr
...
Read more »
|
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
| |
|
|
|