List Info

Thread: Not able to view contents on 2nd tab using AJAX Extension TabContainer




Not able to view contents on 2nd tab using AJAX Extension TabContainer
country flaguser name
United States
2007-06-28 01:02:20
Hi,
We are using VS 2005 with AJAX Extension.
We have used the Tab Container and droped 2 Tab panels on
it.
We have placed controls on both the panels.
The problem we are facing is the controls placed on the
first tab
panel is appearing correctly,but the controls placed on the
second
panel is not appearing at run time.

Kindly let us know the solution to this if any one had faced
a
similar
problem.


Rgds
Geeshna


The following is the code snippet.


<% Page Language="VB"
MasterPageFile="~/Master Page/frmIndex.master"
AutoEventWireup="true"
CodeFile="Tab.aspx.vb"
Inherits="_Default" %>


<% Register Assembly="dotnetCHARTING"
Namespace="dotnetCHARTING"
TagPrefix="dotnetCHARTING" %>
<% Import Namespace="System.Drawing" %>


<% Register Assembly="AjaxControlToolkit"
Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>


<asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">


 <script runat="server">
     Sub TbDataLoad(ByVal sender As [Object], ByVal e As
EventArgs)


         Chart2.Type = ChartType.Combo 'Horizontal;
         Chart2.Size = "600x350"
         Chart2.TempDirectory = "temp"
         Chart2.Debug = True
         'Chart2.Title = "Y Axis Price"


         ' This sample demonstrates using expressions in y
axis tick
labels to change values like 10,000 to 10 K.
         ' This line demonstrates using expressions in label
text.
         Chart2.YAxis.DefaultTick.Label.Text = "$
<%Value*2>"
         Chart2.YAxis.Label.Text = "Price"
         Chart2.XAxis.Label.Text = "Date"


         Chart2.DefaultElement.ShowValue = True


         ' *DYNAMIC DATA NOTE*
         ' This sample uses random data to populate the
chart. To
populate
         ' a chart with database data see the following
resources:
         ' - Classic samples folder
         ' - Help File > Data Tutorials
         ' - Sample: features/DataEngine.aspx
         Dim mySC As SeriesCollection = getRandomData()


         ' Add the random data.
         Chart2.SeriesCollection.Add(mySC)
     End Sub 'Page_Load


     Function getRandomData() As SeriesCollection
         Dim SC As New SeriesCollection()
         Dim myR As New Random(1)
         Dim a As Integer
         For a = 1 To 4
             Dim s As New Series()
             s.Name = "Order " + a.ToString()
             Dim b As Integer
             For b = 1 To 4
                 Dim e As New Element()


                 e.Name = Format(Today.Date.AddDays(-b),
"yyyy-MM-
dd").ToString 'Date.Today.AddDays(-b).ToString
'"Element " +
b.ToString()
                 e.YValue = myR.Next(500)
                 s.Elements.Add(e)
             Next b
             SC.Add(s)
         Next a


         ' Set Different Colors for our Series
         SC(0).DefaultElement.Color = Color.FromArgb(49,
255, 49)
         SC(1).DefaultElement.Color = Color.FromArgb(255,
255, 0)
         SC(2).DefaultElement.Color = Color.FromArgb(255,
99, 49)
         SC(3).DefaultElement.Color = Color.FromArgb(0, 156,
255)


         Return SC
     End Function 'getRandomData


 </script>


      <asp:ScriptManager ID="ScriptManager1"
runat="server" />


        <div>
           <cc1:TabContainer ID="TabContainer1"
runat="server"
Width="700px" Height="500px"
Font-Names="Verdana" Font-Bold=true >
          <cc1:TabPanel ID="TbPnlEdit"
runat="server"
HeaderText="Edit">
            <ContentTemplate>
                 <div>
                 <table>
                 <tr>
                 <td width="100px">
                     <asp:Button
ID="BtnAddOrder" runat="server"
Text="Add Order" Font-Bold=true />
                 </td>
                  <td width="100px">
                     <asp:Button
ID="BtnDeleteOrder" runat="server"
Text="Delete Order" Font-Bold=true/>
                 </td>
                 <td>
                     <asp:Button
ID="BtnRefresh" runat="server"
Text="Refresh" Font-Bold=true/>
                 </td>
                  <td>
                     <asp:Button
ID="BtnCommitAll" runat="server"
Text="Commit All" Font-Bold=true />
                 </td>


                 </tr>
                     <tr >
                       <table>


                              <tr
height="50px">
                                <td
width=150px><asp:Label
ID="Label7"
runat="server" Text="Order
ID"></asp:Label></td>
                                <td><aspropDownL
ist
ID="DropDownList1" runat="server"
Width=100 Font-Names="Verdana"
Font-
Size=Small></aspropDownL
ist></td>
                            </tr>


                            <tr
height="50px">
                                <td
width=150px><asp:Label
ID="Label1"
runat="server" Text="Purchase
Order"></asp:Label></td>
                                <td><aspropDownL
ist
ID="DDLPurchOrder" runat="server"
Width=100 Font-Names="Verdana"
Font-
Size=Small></aspropDownL
ist></td>
                            </tr>
                           <tr>
                            <aspropDownL
ist ID="DropDownList2"
runat="server">
                            </aspropDownL
ist>
                            </tr>


                            <tr
height="50px">
                                <td><asp:Label
ID="Label2"
runat="server"
Text="Date"></asp:Label></td>
                                <td><asp:TextBox
ID="TxtDate"
runat="server" Width="96px"
Font-Names="Verdana" Font-Size=Small></
asp:TextBox>
                                    <asp:ImageButton
ID="ImgBtnDate"
runat="server"
ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                    
<cc1:CalendarExtender
ID="CalendarExtender1" runat="server"
TargetControlID="TxtDate"
Format="MM/dd/yyyy"
PopupButtonID="ImgBtnDate">
                                   
</cc1:CalendarExtender>
                                </td>
                            </tr>


                           <tr
height="50px">
                           <td><asp:Label
ID="Label3" runat="server"
Text="Customer
Name"></asp:Label></td>
                           <td><asp:Label
ID="LblCustName"
runat="server" Text="Customer 1"
Font-Bold=true Font-Names="Verdana"
Font-Size=Small></asp:Label></td>
                           </tr>


                           <tr
height="50px">


                           <td colspan="2">
                           <asp:GridView
ID="GridView1"
runat="server"
SelectedRowStyle-BackColor=Aqua
Font-Names="Verdana" Font-Size=Small>
                           </asp:GridView>
                           </td>
                           </tr>


                         <tr>
                             <table>
                               <tr
height="50px"><td
width="150px"><asp:Label
ID="Label4" runat="server"
Text="Product
"></
asp:Label></td>
                           <td><aspropDownL
ist ID="DdlProduct"
runat="server" Width=100
Font-Names="Verdana" Font-Size=Small>
                            </aspropDownL
ist></td>
                           </tr>


                           <tr
height="50px"><td><asp:Label
ID="Label5" runat="server"
Text="Price"></asp:Label></td>
                           <td> <asp:TextBox
ID="TxtPrice"
runat="server" Font-Names="Verdana"
Font-Size=Small></asp:TextBox></
td>
                           </tr>
                           <tr
height="50px"><td><asp:Label
ID="Label6" runat="server"
Text="Quantity"></asp:Label></td>
                           <td><asp:TextBox
ID="TxtQnty"
runat="server" Font-Names="Verdana"
Font-Size=Small></asp:TextBox></
td>
                           </tr>
                            </table>
                       </tr>
       <tr>
       </tr>
     </table>
       </tr>


     <cc1:MaskedEditExtender
ID="MskEdtExtPrice" runat="server"
TargetControlID="TxtPrice"
MaskType="Number" Mask="99999.99">
        </cc1:MaskedEditExtender>
        <cc1:MaskedEditExtender
ID="MskEdtExtQty" runat="server"
TargetControlID="TxtQnty"
MaskType="Number" Mask="9999999">
        </cc1:MaskedEditExtender>
       </table>
      </div>


        </ContentTemplate>


            </cc1:TabPanel>


            <cc1:TabPanel ID="TbPnlData"
runat="server"
HeaderText="Data"
OnLoad="TbDataLoad">
            <ContentTemplate>
            <div>
            <table>
                      <tr>
            <td>
            <dotnetCHARTING:Chart ID="Chart2"
runat="server">
            </dotnetCHARTING:Chart>
            </td>
            </tr>
            <tr>
            <td>
            </td>
                <asp:Label ID="Label8"
runat="server" Text="Label"></
asp:Label>
            </tr>
            </table>
            </div>
            </ContentTemplate>
                        </cc1:TabPanel>
            </cc1:TabContainer>
            </div>


</asp:Content>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Not able to view contents on 2nd tab using AJAX Extension TabContainer
country flaguser name
United States
2007-07-11 23:07:19
The Ajax Control ToolKit is buggy... try recopying the dll
files from
the source page.  Also, view the sample site in the source
code
download and be sure the tabs display there, if so copy the
code
directly from the sample source

Alexander Higgins

On Jun 28, 2:02 am, "gees...gmail.com"
<gees...gmail.com> wrote:
> Hi,
> We are using VS 2005 with AJAX Extension.
> We have used the Tab Container and droped 2 Tab panels
on it.
> We have placed controls on both the panels.
> The problem we are facing is the controls placed on the
first tab
> panel is appearing correctly,but the controls placed on
the second
> panel is not appearing at run time.
>
> Kindly let us know the solution to this if any one had
faced a
> similar
> problem.
>
> Rgds
> Geeshna
>
> The following is the code snippet.
>
> <% Page Language="VB"
MasterPageFile="~/Master Page/frmIndex.master"
> AutoEventWireup="true"
CodeFile="Tab.aspx.vb"
Inherits="_Default" %>
>
> <% Register Assembly="dotnetCHARTING"
Namespace="dotnetCHARTING"
> TagPrefix="dotnetCHARTING" %>
> <% Import Namespace="System.Drawing" %>
>
> <% Register Assembly="AjaxControlToolkit"
> Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>
>
> <asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1"
> Runat="Server">
>
>  <script runat="server">
>      Sub TbDataLoad(ByVal sender As [Object], ByVal e
As EventArgs)
>
>          Chart2.Type = ChartType.Combo 'Horizontal;
>          Chart2.Size = "600x350"
>          Chart2.TempDirectory = "temp"
>          Chart2.Debug = True
>          'Chart2.Title = "Y Axis Price"
>
>          ' This sample demonstrates using expressions
in y axis tick
> labels to change values like 10,000 to 10 K.
>          ' This line demonstrates using expressions in
label text.
>          Chart2.YAxis.DefaultTick.Label.Text = "$
<%Value*2>"
>          Chart2.YAxis.Label.Text = "Price"
>          Chart2.XAxis.Label.Text = "Date"
>
>          Chart2.DefaultElement.ShowValue = True
>
>          ' *DYNAMIC DATA NOTE*
>          ' This sample uses random data to populate the
chart. To
> populate
>          ' a chart with database data see the following
resources:
>          ' - Classic samples folder
>          ' - Help File > Data Tutorials
>          ' - Sample: features/DataEngine.aspx
>          Dim mySC As SeriesCollection =
getRandomData()
>
>          ' Add the random data.
>          Chart2.SeriesCollection.Add(mySC)
>      End Sub 'Page_Load
>
>      Function getRandomData() As SeriesCollection
>          Dim SC As New SeriesCollection()
>          Dim myR As New Random(1)
>          Dim a As Integer
>          For a = 1 To 4
>              Dim s As New Series()
>              s.Name = "Order " +
a.ToString()
>              Dim b As Integer
>              For b = 1 To 4
>                  Dim e As New Element()
>
>                  e.Name =
Format(Today.Date.AddDays(-b), "yyyy-MM-
> dd").ToString 'Date.Today.AddDays(-b).ToString
'"Element " +
> b.ToString()
>                  e.YValue = myR.Next(500)
>                  s.Elements.Add(e)
>              Next b
>              SC.Add(s)
>          Next a
>
>          ' Set Different Colors for our Series
>          SC(0).DefaultElement.Color =
Color.FromArgb(49, 255, 49)
>          SC(1).DefaultElement.Color =
Color.FromArgb(255, 255, 0)
>          SC(2).DefaultElement.Color =
Color.FromArgb(255, 99, 49)
>          SC(3).DefaultElement.Color = Color.FromArgb(0,
156, 255)
>
>          Return SC
>      End Function 'getRandomData
>
>  </script>
>
>       <asp:ScriptManager
ID="ScriptManager1" runat="server"
/>
>
>         <div>
>            <cc1:TabContainer
ID="TabContainer1" runat="server"
> Width="700px" Height="500px"
Font-Names="Verdana" Font-Bold=true >
>           <cc1:TabPanel ID="TbPnlEdit"
runat="server"
> HeaderText="Edit">
>             <ContentTemplate>
>                  <div>
>                  <table>
>                  <tr>
>                  <td width="100px">
>                      <asp:Button
ID="BtnAddOrder" runat="server"
> Text="Add Order" Font-Bold=true />
>                  </td>
>                   <td width="100px">
>                      <asp:Button
ID="BtnDeleteOrder" runat="server"
> Text="Delete Order" Font-Bold=true/>
>                  </td>
>                  <td>
>                      <asp:Button
ID="BtnRefresh" runat="server"
> Text="Refresh" Font-Bold=true/>
>                  </td>
>                   <td>
>                      <asp:Button
ID="BtnCommitAll" runat="server"
> Text="Commit All" Font-Bold=true />
>                  </td>
>
>                  </tr>
>                      <tr >
>                        <table>
>
>                               <tr
height="50px">
>                                 <td
width=150px><asp:Label
> ID="Label7"
> runat="server" Text="Order
ID"></asp:Label></td>
>                                 <td><aspropDownL
ist
> ID="DropDownList1" runat="server"
Width=100 Font-Names="Verdana"
> Font-
> Size=Small></aspropDownL
ist></td>
>                             </tr>
>
>                             <tr
height="50px">
>                                 <td
width=150px><asp:Label
> ID="Label1"
> runat="server" Text="Purchase
Order"></asp:Label></td>
>                                 <td><aspropDownL
ist
> ID="DDLPurchOrder" runat="server"
Width=100 Font-Names="Verdana"
> Font-
> Size=Small></aspropDownL
ist></td>
>                             </tr>
>                            <tr>
>                             <aspropDownL
ist ID="DropDownList2"
> runat="server">
>                             </aspropDownL
ist>
>                             </tr>
>
>                             <tr
height="50px">
>                                 <td><asp:Label
ID="Label2"
> runat="server"
Text="Date"></asp:Label></td>
>                                
<td><asp:TextBox ID="TxtDate"
> runat="server" Width="96px"
Font-Names="Verdana" Font-Size=Small></
> asp:TextBox>
>                                     <asp:ImageButton
ID="ImgBtnDate"
> runat="server"
ImageUrl="~/Images/Calendar_scheduleHS.png" />
>                                     
<cc1:CalendarExtender
> ID="CalendarExtender1"
runat="server"
TargetControlID="TxtDate"
> Format="MM/dd/yyyy"
PopupButtonID="ImgBtnDate">
>                                    
</cc1:CalendarExtender>
>                                 </td>
>                             </tr>
>
>                            <tr
height="50px">
>                            <td><asp:Label
ID="Label3" runat="server"
> Text="Customer
Name"></asp:Label></td>
>                            <td><asp:Label
ID="LblCustName"
> runat="server" Text="Customer 1"
Font-Bold=true Font-Names="Verdana"
> Font-Size=Small></asp:Label></td>
>                            </tr>
>
>                            <tr
height="50px">
>
>                            <td
colspan="2">
>                            <asp:GridView
ID="GridView1"
> runat="server"
> SelectedRowStyle-BackColor=Aqua
Font-Names="Verdana" Font-Size=Small>
>                            </asp:GridView>
>                            </td>
>                            </tr>
>
>                          <tr>
>                              <table>
>                                <tr
height="50px"><td
> width="150px"><asp:Label
ID="Label4" runat="server"
Text="Product
> "></
> asp:Label></td>
>                            <td><aspropDownL
ist ID="DdlProduct"
> runat="server" Width=100
Font-Names="Verdana" Font-Size=Small>
>                             </aspropDownL
ist></td>
>                            </tr>
>
>                            <tr
height="50px"><td><asp:Label
> ID="Label5" runat="server"
Text="Price"></asp:Label></td>
>                            <td> <asp:TextBox
ID="TxtPrice"
> runat="server" Font-Names="Verdana"
Font-Size=Small></asp:TextBox></
> td>
>                            </tr>
>                            <tr
height="50px"><td><asp:Label
> ID="Label6" runat="server"
Text="Quantity"></asp:Label></td>
>                            <td><asp:TextBox
ID="TxtQnty"
> runat="server" Font-Names="Verdana"
Font-Size=Small></asp:TextBox></
> td>
>                            </tr>
>                             </table>
>                        </tr>
>        <tr>
>        </tr>
>      </table>
>        </tr>
>
>      <cc1:MaskedEditExtender
ID="MskEdtExtPrice" runat="server"
> TargetControlID="TxtPrice"
MaskType="Number" Mask="99999.99">
>         </cc1:MaskedEditExtender>
>         <cc1:MaskedEditExtender
ID="MskEdtExtQty" runat="server"
> TargetControlID="TxtQnty"
MaskType="Number" Mask="9999999">
>         </cc1:MaskedEditExtender>
>        </table>
>       </div>
>
>         </ContentTemplate>
>
>             </cc1:TabPanel>
>
>             <cc1:TabPanel ID="TbPnlData"
runat="server"
> HeaderText="Data"
OnLoad="TbDataLoad">
>             <ContentTemplate>
>             <div>
>             <table>
>                       <tr>
>             <td>
>             <dotnetCHARTING:Chart
ID="Chart2" runat="server">
>             </dotnetCHARTING:Chart>
>             </td>
>             </tr>
>             <tr>
>             <td>
>             </td>
>                 <asp:Label ID="Label8"
runat="server" Text="Label"></
> asp:Label>
>             </tr>
>             </table>
>             </div>
>             </ContentTemplate>
>                         </cc1:TabPanel>
>             </cc1:TabContainer>
>             </div>
>
> </asp:Content>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnetgooglegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )