Click here to Skip to main content
15,886,137 members
Articles / Programming Languages / Javascript

AJAX Extender Control with Pop-up Window

Rate me:
Please Sign up or sign in to vote.
4.43/5 (5 votes)
1 Jan 2011CPOL5 min read 27.6K   839   14  
Creating AJAX Extender control with pop-up window
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Theme="Basic" %>
<%@ Register Namespace="Demo.CS" TagPrefix="sample" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>Demo</title>
</head>
<body style="background-color:#dcdcdc">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" >
        <Scripts>
         <asp:ScriptReference Path="~\JavaScripts\funclib.js" />
         <asp:ScriptReference Path="~\JavaScripts\user_functions.js" />
        </Scripts>
        </asp:ScriptManager>
        <div>
            <table style="height: 27px">
            <tr>
            <td  colspan = "3">
            <strong> <span style="text-decoration: underline">Extender Control with pop-up window:</span> </strong> <br />
            </td>
            </tr>
            <tr>
            <td>
            Car:
            </td>
            <td>
            Color:
            </td>
            <td style="width: 158px">
            Year:
            </td>
            </tr>
                <tr>
                    <td style="height: 7px; width: 213px;">
                  <asp:TextBox ID="TextBox1" runat="server" Height="20px" Width="235px" />
                    </td>
                    <td style="height: 7px; width: 88px;">
                   <asp:TextBox ID="TextBox2"  runat="server" ForeColor="Black" Height="20px" Width="135px" ></asp:TextBox>
                    </td>
                    <td style="width: 158px">
                        <asp:TextBox ID="TextBox3" runat="server" Width="135px"></asp:TextBox>
                    </td>
                </tr>
            </table> 
    <sample:tbox runat="server" 
    ClientFunction="onSelect" 
    ListNumber="0"
    WinWidth = "200"
    WinHeight = "150"
    FontColor = "#000000"
    FontSize  = "11"
    RowHeight = "25"
    StartColor = "#99ccff"
    EndColor = "#FFFFFF"
    BackgroundColor = "#e4e4e4"
    ID="Tbox1" 
    TargetControlID="TextBox1" />

    <sample:tbox runat="server" 
    ClientFunction="onSelect1" 
    ListNumber="1"
    WinWidth = "100"
    WinHeight = "150"
    FontColor = "#330099"
    FontSize  = "11"
    RowHeight = "25"
    StartColor = "#ccccff"
    EndColor = "#00FFFF"
    BackgroundColor = "#cccccc"
    ID="Tbox2" 
    TargetControlID="TextBox2" />
    
    <sample:tbox runat="server" 
    ClientFunction="onSelect" 
    ListNumber="2"
    WinWidth = "100"
    WinHeight = "150"
    FontColor = "#330099"
    FontSize  = "11"
    RowHeight = "25"
    StartColor = "#ccccff"
    EndColor = "#00FFFF"
    BackgroundColor = "#e4e4e4"
    ID="Tbox3" 
    TargetControlID="TextBox3" />
  
</div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Loblaw Companies Limited, Mississauga, ON.
Canada Canada
2006 - present Software Developer, Loblaw Companies
Limited, Mississauga, ON, Canada.
1994 - 2006 Software developer in commercial companies
in Toronto, Canada and Moscow, Russia.

Comments and Discussions