Encryption and .Net Dot net provides rich support for data encryption. the namespace System.Security.Cryptography includes the encryption features.There are three primary concepts related to encryption such as Hashing, Symmetric Encryption, and Asymmetric encryption. A hash is a data fingerprint, a small data that represents the uniqueness of a large block of data. In Symmetric Encryption, …
Category: FromSitesTree.com
Aug 22
Basics of Exception Handling in .Net #19
Basics of Exception Handling in .Net Why exception handling? In your applications, unexpected error situations may occur that are out of your appication scope and your application logic. These are actually external to your application. For example, while you are reading a file from hard drive, the file may not be there; or the remote …
Aug 21
Allow Page Access only to the Logged in Users #19
Allow Page Access only to the Logged in Users It’s common across many sites that you allow certain pages of your site only to the logged in users. Here, I am providing a simple way to do that in your site The main idea is, when users’ credentials are verified, we store the information in …
Aug 21
A Simple ASP.Net Form in C#. Payment Information Collection Form. #19
A Simple ASP.Net Form in C#. Payment Information Collection Form. Such form can be used in test operation while implementing online payment processing . The input fileds are to send data to the payment gateway. The response fields are to display response from payment gateway. Here, the output fields represent the response fields as sent …
Aug 21
Creating your own Class in C# in ASP.net #19
Creating your own Class in C# in ASP.net It is kind of simple. You need to create a class library. The class library will create a dll file. From your project, you need to add reference to the dll file. Then you will be able to use the classes and methods of the class library. …
Aug 21
Random C# and MS SQl Server #19
Foreign Key in Table Declaration CREATE TABLE ORDERS ( ID integer primary key, Order_Date datetime, Customer_ID integer references CUSTOMER(ID), Amount double); ALTER TABLE ORDERS ADD FOREIGN KEY (customer_id) REFERENCES CUSTOMER(ID); Stored Procedure Example CREATE PROCEDURE [dbo].[procedure_name] @param1 VARCHAR(100) ,@param2 VARCHAR(200) OUTPUT AS BEGIN DECLARE @param3 VARCHAR(100) SET @param3 = ‘ ‘ IF @param1 IS NOT …
Aug 21
Manipulating Configuration Parameters: For example Variables in web.config #19
To access a variable value, you can use the following type of code string statusr = WebConfigurationManager.AppSettings[“userLoginStatus”].ToString(); You will need to use: using System.Web.Configuration;or you can write as follows:string statusr = System.Web.Configuration.WebConfigurationManager.AppSettings[“userLoginStatus”].ToString(); What about if you want to change the values of the variables in the web.config file. Check the code below: //CompiledConfiguration myConfig = …
Aug 21
ASP.Net Validation Control Examples in C#. #19
ASP.Net Validation Control Examples. Just check the code below Some note RequiredFieldValidator: is used to check that a field is filled up CompareValidator: Compare the value of a field with another field or data RangeValidator: Compares the data is within a given range RegularExpressionValidator: Domain name syntax, email addtress syntax ValidationSummary: Display all validation errors …
Aug 21
Simple Ajax Applications in C# (ASP.Net) #19
Simple Ajax Applications in C# (ASP.Net) If you are coming from PHP or Java Platform where you use JavaScript or JQuery to provide Ajax functionality, you still can use those strategies in ASP.net to provide Ajax functionality Check our short note on Ajax using JavaScript. In .Net, you just have to call the JavaScript function …
Aug 21
Automating Digital Delivery with Paypal Payment Processing System #19
In the past, I implemented an automatic notification and digital product delivery system with Paypal Payment Processing System. The concept is, when a person buys products from your web-sites, he gets his products automatically as email attachments after you have confirmed the transaction. The most important part is – collecting payment data and buyer information …
