-->

Friday, May 13, 2016

upgraded the Macros for Visual Studio 2013 extension

Macros have always been popular, first as part of the product, and now as an extension. In response to your feedback we have upgraded the Macros for Visual Studio 2013 extension to be compatible with Visual Studio 2015. You can download the upgraded extension from the Visual Studio Gallery.





Open New Browser Tab using AngularJS

In this article, I will show you, How to open new browser tab using ng-click event. This is the same thing in JQuery. In this example, first of all access division tag using angular,module function. In this we have ng-app as parameter. Lets see the example.

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"></script>
   <script type="text/javascript">
       var app = angular.module('FirstApp', [])
       app.controller('ControllerPage', function ($scope, $window) {
           $scope.NewTab = function () {
               $window.open("https://dotprogramming.blogspot.com");
           }
       });
    </script>
    <div ng-app="FirstApp" ng-controller="ControllerPage">
        <input type="button" value="New Tab" ng-click="NewTab()" />
    </div>
</body>
</html>

Why you share your Wi-Fi password said Windows 10

Share on Facebook  Tweet  Share  Pin
Microsoft is removing part of its disputed Wi-Fi Sense feature from Windows ten. "We have removed the Wi-Fi Sense feature that allows you to share Wi-Fi networks together with your contacts and to be mechanically connected to networks shared by your contacts," says Microsoft's Gabe Aul. "The cost of change the code to keep this feature operating combined with low usage and low demand created this not price any investment."

Why you share your Wi-Fi password said Windows 10


Wi-Fi Sense was originally introduced on Windows Phone and then updated and included with Windows ten. It's a feature that enables you to automatically hook up with open hotspots, and share your Wi-Fi passwords with contacts. Some security experts had expressed issues over Windows ten mechanically connecting to open hotspots, but Microsoft is keeping this feature in place. Wi-Fi Sense's password sharing feature generated superfluous noise from individuals WHO did not comprehend it wasn't sharing all Wi-Fi passwords by default, but Microsoft has clearly received enough information and feedback to show that it is not wide used.

Microsoft just discharged a new Windows ten build for testers, and will take away the Wi-Fi Sense secret sharing as a part of the day of remembrance Update due within the summer. Microsoft continues to tweak its Anniversary Update, and therefore the latest build includes real-time net notifications in Microsoft Edge and the ability to use swipe gestures to navigate back and forward within the browser. Windows 10 day of remembrance Update is expected to be discharged to

Thursday, May 12, 2016

Visual Studio: VS 15 Preview 2 Released leaked

We all used Visual Studio 2015 first preview , User + developers find some bugs in it and send to MICROSOFT. After one month , I mean to say that that day MICROSOFT leaked news for 2 preview. According to MICROSOFT:
This preview like the previous one, lays groundwork for the next version of Visual Studio. We primarily targeted on bug fixes and a few feature updates. New features include; creating the account settings dialog additional accessible to screen readers, diagnostics enhancements to facilitate run focus connected problems, Edit and Continue for XAML apps, and simplified debug configuration in Folder read. Preview 2 conjointly includes the latest Visual Studio Tools for Apache Cordova Update nine that supports Cordova six.1.1.
Visual Studio: VS 15 Preview 2 Released leaked

MSDN also changed according to visual studio 15 preview 2. So, Carefully to download it. If you are interested to download visual studio 15 preview then click here

 

Monday, May 9, 2016

JQuery: Show Distinct items of DropdownList

In this article i will show you, how to remove duplicates in DropdownList when it appear on browser window. If you have multiple item in the table and you want to show only distinct items of the table then you can use siblings function of the JQuery. Lets check the simple example:


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.10.2.js"></script>
    <script>
        $(function () {
            $("select option").each(function () {
                $(this).siblings("[value=" + this.value + "]").remove();
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <h2>How to Remove duplicate dropdown option elements with same value</h2>
    <div><select name="selectlist">
    <option value="">Fruit List</option>
<option value="1">Apple</option>
<option value="2">Mango</option>
<option value="1">Grapes</option>
<option value="2">Orange</option></select>
    </div>
    </form>
</body>
</html>
Code Generate the following output:

 JQuery: Show Distinct items of DropdownList

How to Design Country, State, and City DropDownList using SqlDataSource

In this article i will show you, How to bind Dropdownlist with the Country, State and City table using SqlDataSource. We all that If among tables are related to each other then we can show among tables one by one on indexChanged event. So, First of all design tables following ways:

[CountryTable]
CountryId  int primary_key Identity(1,1)
Country_Name nvarchar(100)

[State]
StateId int primary_key Identity(1,1)
State_Name nvarchar(100)
CountryId int

[City]
CityId int primary_key Identity(1,1)
City_Name nvarchar(100)
StateId int


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="countrystatecity.aspx.cs" Inherits="countrystatecity" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        Select Country :
        <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="CountryName" DataValueField="CountryId" Height="19px" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="150px">
            <asp:ListItem Value="0">Select</asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [Country]"></asp:SqlDataSource>
        <br />
        <br />
        Select State :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:DropDownList ID="DropDownList2" runat="server" AppendDataBoundItems="True" AutoPostBack="True" DataSourceID="SqlDataSource2" DataTextField="StateName" DataValueField="StateId" Height="19px" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged" Width="150px">
            <asp:ListItem Value="0">Select</asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [State] WHERE ([CountryId] = @CountryId)">
            <SelectParameters>
                <asp:ControlParameter ControlID="DropDownList1" Name="CountryId" PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
        <br />
        Select City :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource3" DataTextField="CityName" DataValueField="CityId" Height="19px" Width="150px">
            <asp:ListItem Value="0">Select</asp:ListItem>
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [City] WHERE ([StateId] = @StateId)">
            <SelectParameters>
                <asp:ControlParameter ControlID="DropDownList2" Name="StateId" PropertyName="SelectedValue" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
   
    </div>
    </form>
</body>
</html>

Thursday, May 5, 2016

How to Edit picture from FormView using SQLDataSource control in ASP.NET C#

In this ASP.NET article i will show you, How to edit picture using FormView control. We all know that when FormView bind from SqlDataSource control then image have display on label control bydefault. First of all change label control with the image control. If you see the source code then you find that a label control bind with the image column using Eval("column name") method in embedded code block (<%# %> ). If you have to change label text with imageUrl then image will display on that place. Similarly in edit section take a fileupload control for picking file from local computer. Find it (Fileupload control) from Form View control in code file also save file in project folder. Lets see the example :
© Copyright 2013 Computer Programming | All Right Reserved