<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="SelectedItemsButtonVB._Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
	<telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <!-- content start -->
    <telerik:RadAjaxManager ID="RadAjaxManager1" EnableAJAX="true" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="Literal1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" ShowStatusBar="True"
        runat="server" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True">
        <MasterTableView PageSize="10">
            <Columns>
                <telerik:GridButtonColumn Text="Select" CommandName="Select">
                </telerik:GridButtonColumn>
                <telerik:GridButtonColumn Text="Deselect" CommandName="Deselect">
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="true" />
        <PagerStyle Mode="NumericPages"></PagerStyle>
    </telerik:RadGrid>
    <asp:Literal ID="Literal1" runat="server" />
    <br />
    <asp:Button ID="Button1" runat="server" Text="Popup" />
    <asp:Panel ID="Panel1" runat="server" Style="display: none; border-style: solid;
        border-width: medium">
        <asp:Label ID="Label1" runat="server" Text="Do you want to save?"></asp:Label><br />
        <asp:LinkButton ID="btnSave" runat="server" Text="Save" />&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:LinkButton ID="btnCancel" runat="server" Text="No" />
    </asp:Panel>
    <asp:ModalPopupExtender ID="ModalPopupExtender1" TargetControlID="Button1" PopupControlID="Panel1"
        runat="server">
    </asp:ModalPopupExtender>
    
    <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName], [ContactTitle], [Address], [PostalCode] FROM [Customers]"
        runat="server"></asp:SqlDataSource>
    </form>
</body>
</html>
