Tuesday, September 16, 2014

How to use Subversion with Visual Studio

Posted in , ,


In this article we're going to talk about how to use Subversion with Visual Studio. In this article I'm going to use TortoiseSVN as the SVN ClientSlik SVN as the SVN Server and Visual Studio 2012.

Why do we need Version Control ?
Can you remember the last time you had to work on one file with several people? Remember how you had to reverse engineer an undocumented bug? Remember how software projects go berserk when planned ungracefully? It happens a lot. Unless you use version control.

You have to download following tools in order to use Subversion with Visual Studio.

Slik SVN
Slik is a full service internet company. They build web software and manage online services. They run their own network and manage their local internet registry (LIR) as well as their domain names. That means Slik has pretty much all it takes to run stable online environments and manage version control software.


You can create your SVN account from HERE for FREE

TortoiseSVN
It's intuitive and easy to use, since it doesn't require the Subversion command line client to run. And it is free to use.


You can download TortoiseSVN Client from HERE for FREE

VisualSVN
VisualSVN is a professional grade Subversion integration plug-in for Visual Studio.


You can download VisualSVN Client from HERE for FREE

Installation and Integration
Install TortoiseSVN and VisualSVN respectively. If you are installed them correctly you can see the VisualSVN Extension in the Visual Studio's Extension manager window like this..


Adding the project to your Repository
First create a directory on your hard drive (This is your repository directory). Then you need to checkout the SVN repository into the directory that you've created. You can do it by right clicking on that directory and selecting the SVN Checkout... like this


Then you have to enter your repository path in the next window


Then click ok button to proceed. Then sometime you will get a window asking for username & password. Give the username & password that you've given in the Slik SVN account creation process. Make sure to tick the save password. And you might get this window about 4-5 times continuously. Please provide the username & password correctly each and every time.

Then the TortoiseSVN client will checkout the files in the repository.


Now copy your project in to your repository directory and commit the changes by right clicking and selecting the SVN Commit... Then your project will successfully uploaded to your SVN repository.


Updating your project
After opening the project from Visual Studio, you can do this by right clicking on the project in the Solution Explorer and Selecting Update..


Committing your project
You can do this by right clicking on the items with changes which are highlighted in the yellow color in the Solution Explorer and Selecting Commit..


That's all for today.. Happy coding..!!
If you gain some knowledge from this lesson and if you think this is useful leave a comment to encourage us. Good comments or bad comments all are important to usLets meet from a new lesson soon, have a nice day!!!

0 comments :

How to use ASP.NET Button inside a jQuery Dialog box ?

Posted in , , ,


This is a problem which most of the Developers face who works with the ASP.NET and jQuery..

Lets assume that you have a jQuery Dialog box in your ASP.NET application which contains a ASP.NET Button. Sometimes you may experienced this kind of problem when you're try to run the page after writing all the codes.. Your jQuery Dialog box will appear without any problem. But when you are try to click on that ASP.NET Button you will realize that nothing will happen even you wrote the code for OnClick event. But it will work if you set Button's UseSubmitBehavior="false".

Problem solved ?
Actually No. Now the OnClick event will fire when you click on the button. But actually the problem is,
Assume that you have another ASP.NET Control inside the jQuery Dialog. Lets say a ASP.NET TextBox.

Here is the JavaScript code that invokes the jQuery Dialog and It's output :
//Display JQuery Dialog 
function showDialog(i) {

    $("#addReleaseDialog").dialog({
        draggable: true,
        resizable: false,
        width: 300,
        height: 410,
        minHeight: 10,
        minwidth: 10
    });

    return false;

}

Now your will need to use that TextBox's Text inside the Button's OnClick event. Will it work ? NO. It will return NULL value each and every time when you try access the Text of that TextBox. How can we solve this ?

The good thing is it's a simple fix. Here is the fixed code..
//Display JQuery Dialog 
function showDialog(i) {

    $("#addReleaseDialog").dialog({
        draggable: true,
        resizable: false,
        width: 300,
        height: 410,
        minHeight: 10,
        minwidth: 10
    });
    $("#viewReleaseDialog").parent().appendTo($("form:first"));
    return false;

}

What is the Reason ?
For the .Net postbacks to work, the JQuery dialog has to be added to the form. I believe it is separated so that JQuery dialog can control/lock the UI, handling custom buttons and preventing users from submitting other buttons (I may have this wrong, as it still successfully blocks the UI). Anyway, some internals of this system separates the form data and thus prevents .Net postbacks. Even forcing a postback by using 'UseSubmitBehavior=False' still prevents data being passed to the back end as it exists outside the .Net Form

That's all for today.. Happy coding..!!
If you gain some knowledge from this lesson and if you think this is useful leave a comment to encourage us. Good comments or bad comments all are important to usLets meet from a new lesson soon, have a nice day!!!

0 comments :

Working in a Agile Team

Posted in , ,


Doing a project with huge scope with fewer members was actually a huge challenge to us. The factor that affects the project most is associated with the group i.e. human resources. It is very important to have an idea about working in an agile group before doing a project in that methodology.

Through face to face communication, Small Agile teams can best understand and discuss your requirements. Empowered teams will figure out the best way to get things done, boosting productivity while spreading knowledge. Team collaboration reinforces best practices and makes it easier to introduce new tools and development techniques.

I would like to tell you some points we should consider when working in an Agile group:

  1. ►Communication between team members should be as maximum as possible. It is very important to share the ideas among team members.
  2. ►Team should specialize in all aspects of a software engineering project. In short,everyone should know everything.
  3. ►No one should depend on each other on an entire aspect of the project. For an example, we cannot depend on a single team member for testing. Everyone should do everything.
  4. ►Use a code repository. It saves a lot of time. You don't have to waste your time trying to integrate members' modules. Take a look at this article for more details.
Do’s and Don’ts when working in a group

Do’s
► Always take time to understand the qualities and abilities of the team members and assign work to them based on that.

► Always plan the work and strategies beforehand and constantly check that they are in progress.

► Schedule group meetings so that the progress and any problems can be identified.

► Always respect the views of others and involve everyone in the decision making.

► Make sure that you make and effort to enhance the quality of the project and not let the group down at any instance.

Don’ts
► Do not try to resolve any disagreement by fighting. Talk it out quietly and in private.

► Do not assign a responsibility to someone who has a weakness or lacks understanding in a certain area.

► Never complain on having to do group work as one day in the industry we would have to and then if u succeed in these type of projects working is not going to be a big challenge for you

► Do not worry or try to compete with other groups. Just do your work as planned.

That's all for today.. Happy coding..!!
If you gain some knowledge from this lesson and if you think this is useful leave a comment to encourage us. Good comments or bad comments all are important to usLets meet from a new lesson soon, have a nice day!!!

0 comments :