Well...another issue which I am unable to resolve...lemme explain
I have an ascx page...which I want to load into a tab...now the issue is that I am able to load the tab in the first tab...but when I load the user control in the second tab...it goes blank and doesn't show anything...this is happening just for my user controls...
Now when I have a simple gridview with a sql datasource in another usercontrol...this time I am able to load this properly in the "child" tabs...no issues whatsoever.
The issue pertains to only loading of user controls in child tabs where I have multiple asp tools embedded in that particular user control...something like the one which is shown below.
| <asp:GridView ID="grdContent" runat="server" AutoGenerateColumns="false" Height="124px" |
| Width="577px" OnRowCommand="grdContent_RowCommand"> |
| <Columns> |
| <asp:TemplateField HeaderText="Language"> |
| <ItemTemplate> |
| <asp:Label ID="lblLanguage" runat="server" Text='<%#Bind("ActualLanguage") %>'></asp:Label> |
| </ItemTemplate> |
| </asp:TemplateField> |
| <asp:CheckBoxField HeaderText="Read" DataField="IsRead" /> |
| <asp:CheckBoxField HeaderText="Write" DataField="IsWrite" /> |
| <asp:CheckBoxField HeaderText="Speak" DataField="IsSpeak" /> |
| <asp:TemplateField> |
| <ItemTemplate> |
| <asp:LinkButton ID="lnkModify" runat="server" CommandName="Modify" CommandArgument='<%#Bind("ID") %>' |
| Text="Modify"></asp:LinkButton> |
| <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Del" CommandArgument='<%#Bind("ID") %>' |
| Text="Delete"></asp:LinkButton> |
| <asp:HiddenField ID="hdnID" runat="server" Value='<%#Bind("ID") %>' /> |
| </ItemTemplate> |
| </asp:TemplateField> |
| </Columns> |
| </asp:GridView> |
| |
| <JobsControl:LinkButton ID="lbtnNew" runat="server" OnClick="lbtnNew_Click">New</JobsControl:LinkButton> |
| <asp:Panel ID="LanguagePanel" runat="server" Visible="False"> |
| <table width="100%" border="0" cellpadding="0" cellspacing="0"> |
| <tr> |
| <td width="5%"> |
| </td> |
| <td style="width: 30%"> |
| Language |
| </td> |
| <td width="60%"> |
| <JobsControl:CompositCombo ID="ddlLanguage" runat="server" CommonCode="160" IsLoadValuesInPostBack="true" /> |
| <asp:HiddenField ID="hdnID" runat="server" /> |
| <asp:HiddenField ID="hdnLanguageID" runat="server" /> |
| </td> |
| <td width="5%"> |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| Read |
| </td> |
| <td width="60%"> |
| <JobsControl:CheckBox ID="chkRead" runat="server" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| Write |
| </td> |
| <td width="60%"> |
| <JobsControl:CheckBox ID="chkWrite" runat="server" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| Speak |
| </td> |
| <td width="60%"> |
| <JobsControl:CheckBox ID="chkSpeak" runat="server" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| <tr> |
| <td width="5%"> |
| |
| </td> |
| <td style="width: 30%"> |
| |
| </td> |
| <td width="60%"> |
| <JobsControl:Button ID="btnSave" runat="server" CausesValidation="False" OnClick="btnSave_Click" |
| Text="Save" Width="54px" /> |
| </td> |
| <td width="5%"> |
| |
| </td> |
| </tr> |
| </table> |
| </asp:Panel> |