Showing posts with label C-sharp. Show all posts
Showing posts with label C-sharp. Show all posts

Thursday, 18 September 2014

How to Upload image in GridView & Show Images with Popup effect in asp.net C#.

How to Upload  image  in GridView & Show Images with Popup effect in asp.net C#
I’m going to Show Gridview Images with Popup effect in asp.net C#.
1.First create:database table.then follow Default.aspx & Default.aspx.cs.

Monday, 15 September 2014

How to Export Data From GridView to Excel using Asp.net C#

How to Export Data From GridView to Excel using Asp.net C#

Following are the Steps:

1.AddGridview in Default.aspx.and bind it on pageload.

Friday, 12 September 2014

SQL INJECTION EXAMPLE IN ASP.NET USING C#

SQL INJECTION EXAMPLE IN ASP.NET USING C#



In this post, I am going to explain and demonstrate, what are sql injection attacks in asp.net web form and how to prevent sql injection attacks in asp.net using c#.
SQL INJECTION
                SQL injection means injection some SQL commands in SQL statements to hack your data or delete data or change your data in tables via web forms.

Tuesday, 9 September 2014

How to Generate Random Password in asp.net Web-Forms

How to Generate Random Password in asp.net Web-Forms

          In this post, I am going to explain and demonstrate how to generate Random Password in ASP.NET with c#. 

Here are steps for that-

Encryption and Decryption in C#

Encryption & Decryption in C#

                   In this blog I’m explaining how to encrypt or decrypt data with C#.
Encryption:
Encryption is the process of translating plain text data into something that appears random and meaningless to the others.
Decryption:
Decryption is the process of translating random and meaningless data to plain text.
Why we need to use this Encryption and decryption processes. By using this process we can hide original data and display some junk data based on this we can provide some security for our data.
Here I will explain how to encrypt data and how to save that data into database after that I will show how to decrypt that encrypted data in database and how we can display that decrypted data on form.
I have a form with three fields id, username, password and here I am encrypting password data and saving that data into database after that I am getting from database and decrypting the encrypted password data and displaying that data using grid view.

Monday, 8 September 2014

How to use Captcha in ASP.Net

HOW TO USE CAPTCHA IN ASP.NET Web Forms


In this post , I am going to explain and demonstrate how to use captcha in ASP.NET with c#.
Captcha is use to check whether the end user is a human being or a robot which tries to busy your application and unnecessary consumes the data traffic line so that your Application’s performance can be degraded.
                                Here are steps how to use captcha in our application.