Showing posts with label Asp.net. Show all posts
Showing posts with label Asp.net. Show all posts

Wednesday, May 27, 2015

Difference between DataSet and DataReader

Introduction

In this post I will try to explain the difference between DataSet and DataReader. My previous post Difference between stored procedure and user defined functions.

DataSet

DataSet is a type of disconnected architecture which means sql live database connections is not required while fetch the data from database. DataSet contains the collection of multiple DataTables. We are able to keep the tables, views values from database in DataSet. Also we can fetch the XML values and store in DataSet. We can use DataAdapter as a mediator between DataSet and SQL DataBase tables.

Tuesday, February 10, 2015

Send email to multiple receipent in asp.net

Introduction

In this post I will explain how to Send email to multiple recipient in Asp.net. My previous post Difference between union and union all in sql server,How to send email in Asp.net c#

Explanation

In my previous posts I have given about Email id validation using javascript in Asp.net, Sending email using Asp.net is simple thing but I cannot forget my first task.Because am a fresher without knowing about dotnet I started my carrer, the first task is email sending using asp.net I have searched in google for more than 15 days and finally found the solution.Ok let me come to the point, here am trying to explain how to send the same email details to multiple receipents, One way this code will helpful for monthly news letters sending and checking.Also we may easily check the email configuration setting through this.First we may design the screen as mentioned below.

Wednesday, January 14, 2015

Javascript PAN Number validation in Asp.net Textbox onkeypress event

Introduction

In this post I will explain how to validate PAN number using javascript on Asp.net textbox onkeypress event. My previous post Asp.net server controls validation using Javascript client side.

Explanation

Permanent Account Number is simply called as (PAN) in India who are all paying the TAX using this identification card.PAN is ten digit alphanumeric characters.All characters should be in upper case.The first five characters should be Alphabets and followed by four digit numbers and the last one should be Alphabet.The first character is the type of the PAN and the fifth character is the name of the person.

Tuesday, January 13, 2015

Asp.net server controls validation using Javascript client side

Introduction

In this post I will explain how to validate Asp.net server controls using client side Javascript. My previous post 3-Tier Architecture in ASP.Net C# with step by step example, Email id validation using javascript in Asp.net.

Explanation

Asp.net server controls will bind as a HTML controls in browser. Client ID is the variation between a HTML control and a server control.Here why am specifically telling about Client ID is because HTML control ID will be remain same in all pages but Asp.net controls ID will differ in normal page and a master page. So while using the Javascript we have get the control with Client ID. Here I have given how to validate textbox in javascript onkeypress event,Textbox required field validation in javascript, Drop down list required field javascript validation,Checkbox required field validation in javascript, Option button required field validationin javascript.

Saturday, December 6, 2014

3-Tier Architecture in ASP.Net C# with step by step example

Introduction

In this post we will learn how to implement the three tier architecture in our application using Asp.Net c#. My previous post Highlight Asp.net gridview row color on mouseover using javascript and css

Explanation

Many interviews we faced the question whether you used 3-tier architecture in your application.Because it is mandatory to know the 3-tier architecture for developing a project. Three tier architecture is a separation of our application into multiple portion which is called as a layer.So we have to understand about the layer in 3-tier architecture.

Saturday, November 29, 2014

Highlight Asp.net gridview row color on mouseover using javascript and css

Introduction

In this post I will explain how to highlight gridview row color using javascript and CSS. My previous post Email id validation using javascript in Asp.net.Gridview in asp.Net c#.

Explanation

Asp.Net Gridview control is an adjustable and adaptable control which is used to show bulk information on a column and row basis.As we all know Gridview control will rendered as a table. Even though gridview control is having many features but it has missed some client based attractive things like highlighting gridview control row color. But we can achieve highlighting row in gridview using the below given code. Highlighting a Asp.Net gridview control row is more than just to make it looks good. It serves to distinguish and concentrate on a specific row, since the Gridview shows numerous lines of information at once.

Friday, November 21, 2014

Email id validation using javascript in Asp.net

Introduction

In this post I will explain how to do email id validation in Asp.net javascript. My previous post SQL Query to find Nth Highest or Lowest salary of an employee table. How to send email in Asp.net c#

Explanation

Validation is a main purpose of a website for avoiding the invalid user entries. We can validate our controls in client side and server side. client side validation will be very simple and very fast.

Wednesday, July 27, 2011

Cannot find one or more components:Please reinstall the application

Introduction
In this post I will try to explain the issue which I faced while opening visual studio. My previous post How to maintain the password textbox text after postback

Explanation Today morning when i opened my Visual Studio 2008 i got an error message like

"Cannot find one or more components:Please re install the application."
I was surprised, because nothing i have changed in VS 2008. I struggled for more than a half day and found that some installed DLL has corrupted in VS 2008.

May be last shutdown was not properly done or while updating windows some thing i have missed.

Monday, July 25, 2011

How to maintain the password textbox text after postback

Introduction

In this post I will explain how to maintain the password textbox text after postback. My previous post SQL Query to find Nth Highest or Lowest salary of an employee table.

Explanation

In Asp.net the password textbox will not remain the value after a postback happen, because the viewstate value will disappear. So for retaining the value in textbox control we have again reassign the value in viewstate.

Tuesday, June 28, 2011

Error Logging in C# Asp.net



Errors may occur during the development. Not only in the Web sites, it is in all the fields. Every coders may know which place the error will come.Some errors can be easily identified and get a solution easily.But some cases we cant identify what error and why this error is coming like this. For an good website we have to maintain the error log in the Application. So we can track the errors easily and fix the issues sooner.


In this post, we will see how to create a simple error log in our website. We will show an error has been occured message to the user. At the same time,we will log the error in a htm file. The html error file will be created with the name of current date. whenever the error is occurred, It will automatically update with the html file.

Saturday, January 30, 2010

Image uploading in Asp.net



Image uploading using Asp.net to MS sql server by c# is very easier.Here i will show how to convert an image to binary data and reduce the image size and then upload the binary data to MS sql server.

Create the Database structure

In the database we have to declare the image id, image name and image binary data.

name type
imageId int identity not null

Thursday, January 7, 2010

Captcha validation in Asp.net 2.0



Captcha validation in Asp.net 2.0.

Before Entering to topic first we must understand about the validation.Why most of the sites are validating the data's we entered.Like we gave a name with numeric values and special characters like.So these things are really wrong information by mistake wrongly typed.In email id most of the websites how they validate means they see the email id contains '@' followed with some words and having '.' symbol. So we have to give the informations correctly.

Monday, January 4, 2010

Basic Syntax in c# Language



A variable is a location in the memory that has a name and contains a value. Variable means the value can be changed. A variable name may contains ‘_’ (underscore) followed by a sequence of letters, digits(0-9), or underscores. The first character in a variable name cannot be a digit

//Variable Declaration
[data_type] [variable_name]=[value];

//Data types are two types.

Tuesday, September 22, 2009

How to send email in Asp.net c#



How to send email in Asp.net using c#. In Asp.net 2.0,email sending is very easy.In our websites we send a feedback,contact us,registration welcome,Forgot password, news letter etc. to the users mail.By using the Asp.net classes.
we can access to send the email.The Simple Mail Transfer Protocol(SMTP) server is used for deliver the mail
using the System.Net.Mail namespace.

Monday, September 21, 2009

how to get ip address using asp.net

How to get Internet protocol address using asp.net.Internet protocol is a communication between the nodes. Internet protocol, which is used to track a system host and used address the location. If we need to identify the user
who are all accessing our website and store the Internet protocol address in our database is very simple and very easier.

This is the way to track the users Internet protocol address.

Saturday, July 11, 2009

Connection String in Asp.net



Connection string in asp.net c#.In Asp.net there is an easier way give the Connection String.we can add more than one Connection String in the web.config file.Then we can access these Connection Strings in any of our Pages.This is a simply superb concept in Asp.net. for example,You have two
Connection Strings one for your local server and another one for your live server.You simply add these two Connections in the web.config file and access the first connection in one page and in another page you can use the next connection.

Monday, February 9, 2009

Gridview in asp.Net c#.

Dear folks, Welcome to dotnetpgm. This is my first post. This is a dotnet blog. I will share my work experience and ideas in Microsoft .Net Technologies.

Gridview in asp.net c# with sample

Grid view control in asp.net 2.0 is the replacement of Data grid in asp.net 1.1. Grid view is used to bind the data source. The whole database can be viewed in one gridview with colorful and formatted. We can easily view, edit, update and delete the data from this Grid view control. Default Paging is available in this Grid view control. In Asp.net grid view is a very simple and superb control. It reduce our work and perform good

Followers