Posts

Showing posts from December, 2015

Integrate your GIT repository with Visual Studio 2015

Image
  You can now easily use visual studio with your solution in GIT. You can Commi, pull, push ans run all source control commands with in your favourite IDE visual studio. You dont need to use any third party tools for that. Integration in so much easy just new steps. 1. Visual Studio-> Team-> Manage Connections 2. Then you can see team explorer 3. Under Local GIT repositories Click on clone in there on first text box enter your GIT repository URL and the the second one add the local path and then click clone then It will promted to enter your credentails/ It will download the source code from GIT with source control binding. After that you can see all source control commands related GIT available in your visual studio. I .Commit your changes locally after you done with the changes when you right click on a file , project or solution you can find the Commit option as follows. This will commit your changes to local repository. II .Sync your code with server code Be...

Get rid of usafe tag on angular url

  Issue : I recently wanted to use html sms tag in my mobile web site. In the site I have used angual binding to dynamically bind the sms url as follows <a id="lnk_sms" href="{{sms_Link}}"  class="sms-button social-media-button" alt="SMS" style="display:none">SMS</a>   href value is something like :- 'sms:?body=bodyText’ when I run the application agular keep adding a unsafe prefix infront of the url and sms functionality wasn’t working. <a id="lnk_sms" href="'unsafe:sms:?body=bodyText’"  class="sms-button social-media-button" alt="SMS" style="display:none">SMS</a> After spending hours I was able to find the problem and soltion Problem : Only http , https , ftp and mailto are enabled by default. Angular will prefix a non-whitelisted URL with unsafe: Solution : You need to explicitly add URL protocols to Angular's whitelist using a regular ...

Share you link in Social Media

Image
Technorati Tags: C# , Asp.net If you want to a share a link in you web app there are plenty of options available. Recently I got a requirement to share a link , which is browsed through mobile. We have provided the following options to the users. 1. SMS 2. Twitter 3. LinkedIn 4. FaceBook 5. Viber Following points gives you how to add the functionality to your site easily.   1. SMS For this you have to just put the following HTML tag in to you application which is accessed via mobile. This will open the sms app in user’s mobile pre populated with the content which you have stated. <a href="sms:/* phone number here */?body=/* body text here */">Link</a> If you want it to work on iOS, you need this: <a href="sms:/* phone number here */;body=/* body text here */">Link</a> Apparently iOS8 had to go and change things on us, so thanks to some of the other commenters/responders, there's a new style for iOS: <a href="sms:/...