How to Start, Stop, Pause, Resume, Restart SQL Server Services

No Picture

This topic describes how to start, stop, pause, resume, or restart the SQL Server Database Engine, the SQL Server Agent, or the SQL Server Browser service by using SQL Server Configuration Manager, SQL Server Management Studio, net commands from a…

Read More »

Encrypt and Decrypt Using Class

No Picture

public string DecryptString(string encrString) {     byte[] b;     string decrypted;     try     {         b = Convert.FromBase64String(encrString);         decrypted = System.Text.ASCIIEncoding.ASCII.GetString(b);     }     catch (FormatException fe)     {         decrypted = “”;     }     return decrypted; } public string EnryptString(string strEncrypted) {     byte[] b = System.Text.ASCIIEncoding.ASCII.GetBytes(strEncrypted);     string encrypted = Convert.ToBase64String(b);     return encrypted; } Still The above code is not enough for me because I want to do something with my…

Read More »

Encrypt and Decrypt with Character Choice

No Picture

public string encrypt(string encryptString) { string EncryptionKey = “0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ”; byte[] clearBytes = Encoding.Unicode.GetBytes(encryptString); using(Aes encryptor = Aes.Create()) { Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65,…

Read More »

Encrypting & Decrypting a String in C#

No Picture

using System.IO; using System.Text; using System.Security.Cryptography; public static class EncryptionHelper { public static string Encrypt(string clearText) { string EncryptionKey = “abc123”; byte[] clearBytes = Encoding.Unicode.GetBytes(clearText); using (Aes encryptor = Aes.Create()) { Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(EncryptionKey, new byte[]…

Read More »

print RDLC direct without reportviewer

No Picture

every body i have a windows form with gridview which bind from datatable and i have adataset which gets values from datatable it works fine and i try it in reportviewer it works correctly but how can i…

Read More »

Select, Insert, Update, Delete Using Stored Procedure in SQL Server 2017

No Picture

Here, we will see how to create select, insert, update, delete statements using stored procedure. Let’s take a look at a practical example. We create a table. Creating Table CREATE TABLE employee( id INTEGER NOT NULL PRIMARY KEY,…

Read More »

Sale Price Calculator

No Picture

// Gaddis Code from text with slight mods (Wyatt) // // Terry T Trainer CIS 202 3/22/2013 /* Calculates Sale Price of Item from Price and Discount %            get price –  must Parse!       get discount % -…

Read More »

c# calculate percentage example

No Picture

double Rslt = disc – ((disc * Convert.ToDouble(txtdiscount.Text)) / 100);

Read More »

Flat Discount

No Picture

Flat Discount means final discount given by a seller on grand total, mostly for the purpose of rounding off. In ERP Next, the Flat Discount is applied on both Item as well as Taxes. Currently, the Flat Discount…

Read More »

what is C# – Delegates

No Picture

C# delegates are similar to pointers to functions, in C or C++. A delegate is a reference type variable that holds the reference to a method. The reference can be changed at runtime. Delegates are especially used for…

Read More »
Skip to toolbar