Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

What is the difference between Unit testing,Assembly testing,Integration Testing and Regression testing

Sep 4, 2010 7 comments
Introduction:

Here I will explain difference between Unit testing, Assembly testing, Integration testing and Regression testing 

Description:

Unit testing is also called as Component testing. Unit testing ensures that reliable program unit meets their requirements. Unit testing is normally conducted by programmer under the supervision of the project lead or the team Lead. Main objective of this testing is to test each unit in isolation and individually. This is done by knowing what the inputs to the unit are and what the expected outputs for the same. Unit testing is a white box activity. Unit test normally comes in the implementation phase of the project. 

If we have two version of same assembly in GAC how do we make a choice in asp.net?

0 comments
Introduction:

Here I will explain if we have two version of same assembly in GAC how we make a choice.

Description:

In interviews it’s common Question for everyone. Let’s say you have made an application and its using a DLL which is present in GAC. Now for some reason you make second version of the same DLL and put it in GAC. Now which DLL does the application refer? Ok by default it always uses the version by which you have compiled you application in IDE. But you want that it should actually use the older version. 

Publish or Deploy website in our local machine using asp.net

37 comments
Here I will explain how to publish or deploy the website in local machine. To publish website first we need to check whether IIS installed in our local machine or not and whether that IIS working properly or not because sometimes IIS will not work properly even that IIS already installed in our local machine for that reason we need to check all these conditions before going to publish or deploy our website in local machine. 

After that now open the application in visual studio whatever the application we need publish. 

How to get length of data in each Column of a table Using SQL Server

0 comments
Introduction:

Here I will explain how to get length of data in each Column of a table using SQL Server.

Description:

There is sometimes we need to figure out the maximum space that is being used by a particular column in your database.  You would initially think that the LEN() function would allow you to do this, but this function does not work on Text, NText or Image data types, so how do you figure out the length of a value in a column that has one of these data types?

Query to change column name or table name in sql server

1 comments
Introduction:

In this article I will explain how to change or rename column name or table name in SQL server.

Description:

In previous posts I explained many articles relating to SQL Server. Now I will explain how to rename or change column name or table name in SQL Server. 

Calculating the difference between two dates range is 30 days in javascript or validation to Check end date is not greater than start date and two dates range is not more than 30 days using ajax and javascript in asp.net

Aug 22, 2010 3 comments
Introduction:

Here I will explain how to check end date greater than start date and check two dates difference range is 30 days or not using asp.net.

Description:

Previously I explained how to use Ajax Collapsible panel . I explained many articles on Ajax now I will explain to how to set validation to check end date greater than start date or not and check two dates difference range is 30 days using Ajax validator controls. 


JavaScript Enable/disable Button based on text in textboxes in asp.net

9 comments
Introduction
Here I will explain how to enable/disable button whenever user enter text in textboxes using JavaScript in asp.net
Description
I have taken two textboxes and one button now I need to write functionality like to enable button if user enter text in two textboxes. For this we need to test whenever user entering text in textboxes at that time we need to raise onkeyup event for particular textbox. By default this event is not available for textbox in asp.net but we have a chance to use this event for textbox. Here I am enabling button whenever user enters text in two textboxes using JavaScript.

how to change the error message of custom validator dynamically using asp.net

2 comments
Introduction

Here I will explain how to change the error message of custom validator dynamically using asp.net.

Description

I have one textbox, one button and one custom validator to validate the textbox whenever user clicks on button.
In customvalidator I have taken ClientValidationFunction="ClientValidationFunction" this clientside function is used to send error message dynamically by using sender object. This sender object will display ErrorMessage dynamically.


Opening Child window from Parent window after selecting data from child window closing the child window and displaying that data in parentwindow using asp.net

Aug 15, 2010 2 comments

Here i will explain how to opening Child window from Parent window after selecting data from child window closing the child window and displaying that data in parent window using asp.net

Here based on my requirement i have taken one textbox and one image button i want to search for the email ids exists in database whenever the user clicks on the image button i need to open one child window like this

Calculating the differece between two dates is one month in javascript using asp.net

Aug 12, 2010 3 comments
Hi i have written one javascript function to find the two dates difference is one month

i am having two textboxes startdate and enddate. Now i want to write clientside javascript function to check the dates difference is one month or not if the user enter more than one month date range i want to raise error message.i have written it in server side but i want to write clientside javascript function to check dates range. i have searched for this many sites i have found the solution but they are finding the difference between two dates i.e number of days and they are taking by default 30 days difference for one month .Suppose user enter 2/1/2010(Feb/01/2010) and 3/3/2010(March/03/2010) how can we calculate in February we have only 28 days if we allow user up to 30 days means that not right way . So i have already written server side function for validating textboxes for date range based on that server side function i have implemented client side function (i.e.,javascript function)

© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.