Angular js, Ionic 2 Frame work, javascript, programming

Comments Off on Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Ionic 2 Cr + angular 2 + type script VS Code to Visual studio 2015 Apache cordova

Recently I started to work on my app. Being use to of Visual studio 2015 I found Ionic 2 beta templates. Downloaded, installed, Ran project. It ran like a charm. These templates  installed beta.10 version of ionic. In RC version of Ionic project structure has been changed massively. I tried to update my project but […]

Asp.net, programming, Web development and design

Comments Off on Animate font awesome icons compatible to twitter bootstrap css

Animate font awesome icons compatible to twitter bootstrap css

You can using following CSS to animate font awesome icons compatible to twitter bootstrap. .btn-animated { min-width: 0 !important; padding-right: 45px !important; position: relative; } .btn-animated.animate-to-right i { line-height: 34px; min-width: 12px; position: absolute; right: 17px; top: 0; transition: right 0.2s ease-in-out 0s; z-index: 3; }   .btn-animated.animate-to-left i { line-height: 34px; min-width: 12px; position: […]

BDD, programming

Comments Off on Using Moq in Mspec, Test failed with message ” the signature is incorrect”

Using Moq in Mspec, Test failed with message ” the signature is incorrect”

I had a shared model layer in my solution.  I had only one web service which was implementing number of interfaces. Among those all operations in the interfaces One of the operation or function signature was using the shared model domain. I  wrote at least 12 tests all were pass but when I wrote test […]

BDD – MVC – Account Controller using Dependency Injection/ MSpec/ Moq – part 1

After completing my installation I started playing with MSpec. I googled to see how people are using MSpec and what I can get from MSpec for my project. My First Test was as following: [Subject(typeof(AccountController)), Tags("Login")] public class When_Logging_Into_the_application_with_an_invalid_user_name_or_password : AccountControllerContext { //Arrange private static ViewResult _result; private static LoginModel _model; private static string _loginFailureMessage […]

Asp.net, ASP.net MVC, JQuery, programming

Comments Off on Apply CSS Style to the parent page based on condition in an IFrame content.

Apply CSS Style to the parent page based on condition in an IFrame content.

I was given asn assignment to change theb back ground image of the parent page for a pop up window which as being opened using JQuery color box pluging. The pop up page was being opened in an iFrame (html tag). In Iframe we had a div with the Id and also we had the […]

Regular expression for UK-Mobile numbers with optional country code and spaces in number

Recently I was given a problem that UK Mobile phone numbers with spaces in the number are not being accepted by application as its convenient to write numbers like (+44 0791 452 1234 OR “0791 452 1234”) instead  (+447914521234  OR  07914521234) (dummy number used for illustration purpose only). UK mobile numbers are of 11 digit […]

Asp.net, ASP.net MVC, programming, Web development and design

Comments Off on debugging website hosted on IIS web server from visual studio

debugging website hosted on IIS web server from visual studio

Often you want to debug a website hosted in IIS from your visal studio. Requirement: Visual Studio, Website (you want to debug) must have the same source code. Now web browser (Internet explorer, Firefox , Google chrome etc) type the URL of your website hosted in IIS (Internet Infomration Server). Open the Source code in […]

Asp.net, Web development and design

Comments Off on Running asp.net website through Visual Studio – Page Not Found error

Running asp.net website through Visual Studio – Page Not Found error

The other day I copied a working website solution onto a different machine and attempted to compile and run it in debug mode. It compiled fine and started to run, the browser attempted to load the page up in debug mode running of a port (as is normal), but then I got a Page Not […]

Asp.net, Web development and design

Comments Off on ASP.NET DropDownList1.Sort – Sorting a DropDownList

ASP.NET DropDownList1.Sort – Sorting a DropDownList

Have you ever wanted to sort an ASP.NET drop down list, and tried to search for DropDownList1.Sort in the intellisense? How dissapointing that Microsoft did not supply this. Below I show you how to implement a SortDropDownList function that will allow you to achieve this functionality: public void SortDropDownList(DropDownList dropDownList) //Listbox too { ArrayList arrayList […]

ASP.NET – How to format Currency in GridView

Most sources tell you that formating a column in a GridView is simple, all you need to do is use the DataFormatString Property like so: <asp:boundcolumn datafield=”Amount” headertext=”Amount” dataformatstring=”{0:c}”> However you may find that the currency format is not working in the GridView, this is because the GridView’s columns are being Html Encoded. A simple […]