Profile cover photo
Profile photo
Jitendra Faye
1 follower
1 follower
About
Jitendra's posts

Post has attachment
How to know SQL Server Version using backup file?
Backup and restore these are common task while working with the database. But before restoring the database it is necessary that we should know about some information about backup file because it may be possible that we have created backup file in upper ver...

Post has attachment
How to avoid ContextSwitchDeadlock exception?
In some of the cases we face the problem regarding ContextSwitchDeadlock. Actually there are some causes for this exception. You can check these causes by following this link- http://msdn.microsoft.com/en-us/library/ms172233%28v=vs.110%29.aspx In this artic...

Post has attachment
How to Compare the Objects in .Net (Real story of Equals() method)
    //Employee Class     public class ClsEmployee     {         public Int32 intEmpId { get ; set ; }         public string intEmpName { get ; set ; }         public ClsDept objClsDept { get ; set ; }     }       //Dept Class     public class ClsDept     { ...

Post has attachment
How to generate alphabet sequence A, B, C, ....., Z, AAA, AAB,....., ZZZ
In some of the cases we use alphabet for sequence. If we have options less then 27 then   we can direct use A-Z alphabet but if the options are more then we have to generate sequence. Check the below logic to generate the alphabet sequence.  private void bt...

Post has attachment
How to disable or enable all the validation of the page?
To disable or enable the validation of the page we can simply use this JQuery code- Check this below code-         //Function to Enable/ Disable all validation         function EnableValidation(boolFlag) {             //Turn on/off all validation           ...

Post has attachment
How to change connection string for EDMX in runtime?
In some cases, we need to change the connection string of edmx model in run time; we can change it from code behind code. In this article, I am explaining - How to change connection string for EDMX in runtime? Check the below code-   protected void btnGetDa...

Post has attachment
How to avoid or lock enter key in form?
Use this simple code to avoid enter key on form-   <script type="text/javascript">         $(document).keypress(                     function (event) {                         if (event.which == '13') {                             event.preventDefault();   ...

Post has attachment
How to insert bulk record into database using SQL Server,C# and XML
If we have list of records then we can not process each record to insert into database because it is time taking process and it will degrade the performance.In this case we can use bulk insert. Suppose if we have bulk record in xml then we can easily dump t...

Post has attachment
The process cannot access the file because it is being used by another process
Problem- The process cannot access the file because it is being used by another process This is common problem, when we create file using File.Create() method. Reason- When we use File.Create() method to create file then the object of FileStream class is cr...

Post has attachment
Whst is Life?
Life - Life is a beautiful journey where nothing is certain. Life doesn't have any predefined station like any physical journey. Here nothing is certain. But like physical journey life can be planned to make it successful.
Wait while more posts are being loaded