Thursday, September 29, 2011

Date validation using JavaScript

Just to tell you every one I am too bad at javascript !!!
Here is a date validation through javascript that will give an alert message if you try to give a date less than today. It will always take the future date

 var expDate = document.getElementById('txtDate').value;
    var date = expDate.substring(0, 2);
    var month = expDate.substring(3, 5);
    var year = expDate.substring(6, 10);
    var myDate = new Date(year, month - 1, date);
    var today = new Date();

    if (myDate > today) {     
    }
    else {
        alert('Please enter a date greater than today !');
        return false;
    }

Friday, September 23, 2011

Connected web part in SharePoint 2010 using Visual WebPart in SharePoint 2010

When two web parts taking to each other, then you can say are connected web parts. They are like master/detail relationship. In a connected pair of web parts one web part is the provider and the other one is the consumer. There are two types of connections that web parts can use: static and dynamic. Static connections are only used for web parts pairs in which one web part does not reside in a web part zone. This would require writing a non-ASP.NET web part that derives from the Microsoft.SharePoint.Web-PartPages.WebPart class. Dynamic connections can be created using ASP.NET web parts.

To work with a dynamic web part we need a common interface that will talk through. Lets create a web part and we will see how it is working.

For this first create an empty sharepoint project by going start -> Program Files -> Microsoft Visual Studio 2010. Then File ->New -> Project and From the New Project dialog box Select Empty SharePoint Template and give a Name and click on OK as shown in the figure.

In the next SharePoint Customization Wizard select the local site you want to debug and then

VC++ walkin for experience professionals

Here are some very good openings for VC++ professionals. Please find the details in the picture. And If job profile matches send your resume to fewlines4biju@gmail.com.

Thursday, September 22, 2011

This action is only valid for products that are currently installed in Setup project in C#.Net

I got "This action is only valid for products that are currently installed" error while uninstalling a setup from one of the servers. That set up I have made using Visual Studio 2010 set up project template. When I tried to uninstall the package it shows me error as This action is only valid for products that are currently installed. Also the repair and reinstall did not work for me.
Then I got the error, the errror was I installed the product in a different user id (Windows credentials) and I am trying to uninstall the set up with an other windows credential id. It will work when I uninstalled the set up with the userid (Windows credentials) I have installed.

Tuesday, September 20, 2011

Generating WCF Proxy using SvcUtil.exe

Svcutil.exe is a command line tool that helps to generate proxy class in C#.Net. It is very easy to call the WCF service using Visual studio like the way below: Right click on the project then go to Add service reference and then the Add Service Reference dialog will appear as shown in the figure below.

Then in the address bar give the address of the WCF service and click on Go. Example:
net.tcp://localhost/Design_Time_Addresses/SLicense/Service1/

Monday, September 19, 2011

System.InvalidOperationException: Could not find default endpoint element that references contract 'IService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element

I got this error "System.InvalidOperationException: Could not find default endpoint element that references contract 'IService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element" while trying to generate the proxy class using gacutil.exe.

And to command is:
svcutil /language:cs /out:generatedproxy.cs /config:app.config net.tcp://
[URL]/Design_Time_Addresses/Fewlines4Biju/Service1
Remember you have to go to Visual Studio 2010 command prompt and type this.
There are lot of solutions available to change the App.config file in WCF. But what I have done is simply funny. I have not given the proper URL. and once i have given the proper url that works for me and it generates the proxy class.
You can check more wcf articles.

Saturday, September 17, 2011

I too had a love story !!!

Simply Superb !!!
I too had a love story by Ravinder Singh !!! What a book !!! I just remember one thing that is written on the top of the book and that is "Simple, honest and touching": N.R. Narayana Murthy. Really it is Simple honest and touching. The way he explained his feelings and Khushi's feelings is simply superb.
Thanks to flipkart who delivered me the book in one day. I read the first chapter in the bus itself. Its seems interesting and I kept on reading. First I thought it must be a story of the boy who was visiting a place in every sunday but as the title shows its must be a bit different, I keep on reading and just got creazy to know about the story. On Thurs day I was very ill and could not able to sit in desk and I came back. But while in the bus I started reading that book again. Then I reached in my room, took medicine and again started reading the book, Every one in my family

Friday, September 16, 2011

Download file in C#.Net

You can download text file in the way as shown in the below in c#.Net.
string fileName = @"E:\Filename.txt";
Response.Clear();
Response.ContentType = "application/octet-stream";// "application/ms-word";
Response.AddHeader("Content-Disposition", "attachment;filename=abc.txt);
Response.WriteFile(fileName);
Response.Flush();
Response.Close();

Sunday, September 11, 2011

Create a sequential workflow using Visual studio 2010 in SharePoint 2010

Here we will discuss how to develop a sequential workflow using Visual studio 2010 in SharePoint 2010. Microsoft provides different project templates to work for SharePoint.
For this first open Visual studio 2010 and then File -> New Project.Then from the new project dialog box choose Visual C# and then Select SharePoint and from there select 2010 and Choose Sequential Workflow template and give a name in the Name box as shown in the figure below(SequentialWorkflow.png) and click on OK.
In the next step provide the local debugging URL and you will able to only deploy as farm solution is selected

SharePoint Interview Questions

You can also view SharePoint Interview Questions and Answers series Part-1 , Part-2 , Part-3 , Part-4 , Part-5.
  1. What is SharePoint?
  2. What is SharePoint architure?
  3. What is a Portal Technology?
  4. What's new in SharePoint 2010?
  5. How is SharePoint foundation 2010 differs from SharePoint Server 2010?
  6. What is Site provisioning?
  7. What is a SharePoint farm?
  8. What is Site and Site Collection?
  9. How to create a site using stsadm.exe?
  10. What is Customization and Personalization?
  11. What is SharePoint Feature and how to create and deploy a feature?
  12. What is Visual web part? And how to create and deploy a visual webpart using visual studio 2010?
  13. What is the work of SPVirtualPathProvider?
  14. What is ghosting and unghosting pages?
  15. What is difference between Site Pages versus Application Pages?

Friday, September 9, 2011

Diverse world of .Net


Diverse world of .Net
Developed by Microsoft Windows .Net is a software framework which runs on Microsoft Windows. Its library is as vast as ocean where each language can use code written in other language.  Its library supply database connectivity, cryptography, data access, web application development, user interface network communication and numeric algorithm. .Net framework support several languages which are executed in the software platform which is known as Common Language Run time. Visual Studio is an integrated development environment which is used widely for .Net software framework. This vast and diverse family of .Net framework has two versions. One version is for Smartphone and other version is used for embedded system.
Extra ordinary features of .Net software frame work have enabled computer system to communicate with new and older application. As said above that .net has a vast library

Top-Down and Bottom-up Approach in Integration Testing:-

While doing Integration testing we are following Top-down and Bottom-up approach:-
Top-Down Approach:-
Integration of main module with some of the stub modules is called as Top-down approach.In this case we are using temporary programs instead of under constructive Stub modules.By doing this we can stop the control to the module which is under construction.
Bottom-Up Approach:-

Integration of sub modules without main module is called as Bottom-Up approach.In this case instead of main

Add and Delete an Item from one list to another list in Sharepoint 2010?

Using SharePoint workflow we can control the items of one list to another list. For ex we need to shortlist the candidate based on the condition of Project Assigned or not. Generally we will maintain a list of candidates and now we have to create another list which contains the candidates who were not assigned the project. So it will help to concentrate on those candidates separately to assign the project as soon.
Step:1
 Create a list in sharepoint site
 Goto to SiteAction -> moreoption -> List -> Custom List
 Enter the name as CandidateList
 Click create to complete
 Step:2
 Create some fields in candidate list with the following details

Thursday, September 8, 2011

.Net Walkin Bangalore

Hi All,
Here is the Job description for the walkin. If job profile matches please send resume in my mail id- fewlines4biju@gmail.com . The job openings is for KPIT cummins pvt ltd.
Candidate should be
1. Exp  3 to 5 Yrs
2. .Net 2.0
3. Strong in SQL Server
4. Should Join in 15 to 20 days

Wednesday, September 7, 2011

Defect Report Template:-(IEEE 829)

While test execution if any test case fails,then we are reporting those bugs in below format through defect tracking team in manual testing.
(1)Defect Id:-Unique number or Name.
(2)Defect description:-Summary of detected defect.
(3)Build Version Id:-Version number of current build.(Tester find that defect in that build version)
(4)feature/Module:-Name of the module(Tester detected this defect in that module)
(5)testcase Id:-Id of failed testcase.(Tester detected this defect while executing that testcase)
(6)Reproducible:-Yes/No
Yes:-If defect appears every time in test repetition.

How to create a Site Definition using Visual studio 2010 in SharePoint 2010?

Introduction:
In this article we will see What is Site Definition in SharePoint and also will discuss details steps to create a site definition using visual studio 2010 in SharePoint 2010.
Description:
What is Site Definition in SharePoint 2010?
A site definition defines a unique type of Microsoft SharePoint Foundation website according to MSDN. It mainly contains some configurations to make a web site. SharePoint provides various out of box site defination templates like STS which is responsible to make site like Team site, Blank Site, Document workspace. MPS site defination is responsible for creating sites like  Basic Meeting Workspace, Blank Meeting Workspace, Decision Meeting Workspace, Social Meeting Workspace, and Multipage Meeting Workspace etc. BLOG site defination is responsible creating sites like Blogs. CENTRALADMIN is responsible creating central administration websites.

What is Bug Life cycle ?


While test execution if any defect came, tester is reporting that defect as “New” and sending to the defect tracking team by making its status as ”Assigned” for analysis. Tracking team analyzing the defect and if that defect is a bug then they are assigning to the concerned developer.Developer is

What is the difference between Error,Defect and Bug?

Here I am trying to explain what is the difference between Error, Defect and Bug in Testing.
Error/Flaw:
If a developer finds a mistake in coding then that mistake is called as Error/Flaw.
Defect/Issue:
If a tester detected any mistake in software coding then that mistake is called as Defect/Issue.
Bug:
If a testers defect was accepted by developers to fix then the defect is called as Bug. Sometime customer facing problems in software after release that is also called as Bug.

Tuesday, September 6, 2011

Stay Hungry Stay Foolish

Am not a big fan of reading books, stories etc rather prefer to spend time in internet, chating with friends. But from last few days I have started reading books during my free time like while watching cricket match, journey in bus like that. Books on entrepreneurship attracted me towards reading. It feels different & interesting to me because they are based on real life struggles and how they succeded after so many years. First I read the book "Stay Hungry Stay Foolish" by Rashmi Bansal. The first chapter of the book attract me very much, story of very well known web site Naukri.com and its success.
Now a days reading the book "I have a dream" from the same author Rashmi Bansal. Placed order  today(5th Sept 2011) for the book "The Leader who had no title" and for "Revolution 2020" by chetan bhagat which will release on oct 2011.

More reading now a days !!!

Saturday, September 3, 2011

Download Microsoft SharePoint Designer 2010 Step by Stept book free pdf

You can download Microsoft SharePoint Designer 2010 Step by Stept pdf book for free from the below link.
Click here to Download !!!

You can download Microsoft SharePoint 2010 Web Applications: The Complete Reference book from here 


If the link is not working then SignUp Here and Contact here

Download Professional SharePoint 2010 Development with Visual Studio pdf free book

You can download Professional SharePoint 2010 Development with Visual Studio book from the below link
Click here to download !!!

You can download from Torrent also from the below link.
Click here to download !!!

You can download Microsoft SharePoint 2010 Web Applications: The Complete Reference book from here

If the link is not working then let me know here !!!


Friday, September 2, 2011

File targeting 'AMD64' is not compatible with the project's target platform 'x86'

I got this error "File  targeting 'AMD64' is not compatible with the project's target platform 'x86'" while making a WCF setup project for a windows service which is targeting 64 bit .net framework. For this it is necessary to make the target platform equal for both the projects. Since by default the target platform of the deployment project set to x86. So we need to set the target platform for the setup project to x64. For this select the set up project Press F4. Then the properties window will appear. From there change the TargetPlatform value from X86 to X64. 

A call to sspi failed see inner exception

I got this error "A call to sspi failed see inner exception" while trying to access a WCF service remotely in C#.net. So after creating the proxy class by giving the add service reference try to access in the below way. Hope that will solve your error.

Solution:
ServiceReference1.Service1Client serviceClient = new ServiceReference1.Service1Client("NetTcpEndPoint");
                    serviceClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri("URL of service"), new System.ServiceModel.SpnEndpointIdentity(""));
URL of service: This is the url of the wcf service. Better approach is to copy the base address from the app.config file in the wcf project.

Thursday, September 1, 2011

Open Remote desktop in Admin mode

Sometimes you will need to open the Remote desktop in Admin mode. mstsc.exe is helpful for this. Go the command prompt and go to c:\Windows\System32 and type mstsc/admin.
Then the remote desktop will open in admin mode.

Happy Ganesh Puja !!!

May Lord Ganesh fill you life with love, happiness and success !!! 
Happy Ganesh Puja to all of you !!!
Happy Ganesh Puja to all of you !!!