Ajaxcontoltoolkit tab container not displaying alongisde modal popup extender - asp.net

I'm using VS2010, C#, ASP.NET, I've inserted Ajax Control Toolkit Tab Container which works great, but when I insert a modal popup extender on another panel, tabs do not display! what is going wrong here? How can I have both on them as both are really cool effects
thanks
my tab container:
<cc1:TabContainer runat="server" ID="Tabs" CssClass="visoft__tab_xpie7"
ActiveTabIndex="2" Width="100%" Height="160px">
<cc1:TabPanel runat="server" ID="tab1" HeaderText="برنامه نویسی وب و اتوماسیون">
<HeaderTemplate>
<div >
<asp:Image ID="Image12" BorderStyle="None" runat="server" ImageUrl="~/Images/internet.png" /><br />
وب و اتوماسیون
</div>
</HeaderTemplate>
<ContentTemplate>
<div runat="server" id="divTab1" style="direction:rtl;">
</div>
</ContentTemplate>
<cc1:TabPanel runat="server" ID="tab2" HeaderText="تله متری" >
<HeaderTemplate>
<div >
<asp:Image ID="Image11" BorderStyle="None" runat="server" ImageUrl="~/Images/telemetry.png" /><br />
تله متری
</div>
</HeaderTemplate>
<ContentTemplate>
<div runat="server" id="divTab2" style="direction:rtl;">
</div>
<cc1:TabPanel runat="server" ID="tab3" HeaderText="">
<HeaderTemplate>
<div >
<asp:Image ID="Image10" BorderStyle="None" runat="server" ImageUrl="~/Images/mb.png" /><br />
موبایل، گرافیک، بازی
</div>
</HeaderTemplate>
<ContentTemplate>
<div runat="server" id="divTab3" style="direction:rtl;">
</div>
</ContentTemplate>
<cc1:TabPanel runat="server" ID="TabPanel1" HeaderText="">
<HeaderTemplate>
<div >
<asp:Image ID="Image13" BorderStyle="None" runat="server" ImageUrl="~/Images/flash.png" /><br />
انیمیشن و فلش
</div>
</HeaderTemplate>
<ContentTemplate>
<div runat="server" id="divTab4" style="direction:rtl;">
</div>
</ContentTemplate>
my modal popup extender:
<asp:Panel ID="pnlNews1" runat="server" CssClass="modalPopup" >
<div style="height:100% ; overflow:auto; width: 100%; top:0px; bottom:0px">
<asp:Table ID="Table10" Height="32px" Width="100%" runat="server">
<asp:TableRow HorizontalAlign="Left">
<asp:TableCell>
<asp:ImageButton ID="btnClose1" ToolTip="بستن کادر" runat="server" ImageUrl="~/Images/close.png" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow HorizontalAlign="Right">
<asp:TableCell>
<asp:Label ID="lblTitle1" runat="server" Font-Names="Tahoma" Text="Label"></asp:Label>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>
<div runat="server" id="divBody1">
</div>
</asp:TableCell>
</asp:TableRow>
</asp:Table>

I don't know if this helps, but I had a very similar problem. I had some tabs working, then added a modalpopup extender and a panel, and suddendly my tabs dissappeared.
In my case, my modal popup panel's Visible property was set to "False" (which is not really necessary). Like this:
<asp:Panel ID="ModalPopupPanel" runat="server" CssClass="ModalPopupPanel" Visible="False">
When I deleted this property, the Tabs appeared. So it looks now like this:
<asp:Panel ID="ModalPopupPanel" runat="server" CssClass="ModalPopupPanel">
I know you are not setting this property, but maybe you can try something like this to find what is causing the problem?
Sorry I cannot be of any more help.

Related

The TargetControlID of 'modalPopupExtender' is not valid. A control with ID 'tdDay' could not be found

I am getting error when i use fallowing code. i have provide the target control id still error is occur.
Please help
<asp:Repeater ID="repDays" runat="server" OnItemDataBound="repDays_OnItemDataBound">
<ItemTemplate>
<td id="tdDay" runat="server">
<asp:Literal ID="litDay" runat="server" />
</td>
<asp:Panel ID="Panel1" runat="server" BackColor="White" BorderColor="#43AAE4" BorderStyle="Solid"
BorderWidth="2px">
<div style="text-align: right; width: 100%">
Some text in popup
</div>
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="modalPopupExtender" runat="server" PopupControlID="Panel1"
TargetControlID="tdDay" DropShadow="true">
</ajaxToolkit:ModalPopupExtender>
</ItemTemplate>
</asp:Repeater>

how to select last page on a radlistview datapager

I have a radlistview which has the datapager enabled...
But when I launch the website it currently loads the first datapage on the listview (i.e the first page of comments). Is there a way to change this so that it opens the last page?
Here is the current radlistview...
<telerik:RadListView ID="RadListViewComments" runat="server" AllowPaging="True" DataKeyNames="ID" DataSourceID="SqlDataSourceComments" PageSize="5">
<LayoutTemplate>
<div class="RadListView RadListViewFloated RadListView_Default">
<div class="rlvFloated rlvAutoScroll">
<div id="itemPlaceholder" runat="server">
</div>
</div>
<telerik:RadDataPager ID="RadDataPager1" runat="server">
<Fields>
<telerik:RadDataPagerButtonField FieldType="Numeric" />
</Fields>
</telerik:RadDataPager>
</div>
<ItemTemplate>
<div class="rlvI" style="width: 700px; margin-bottom: 50px" margin-right: 100%>
<asp:Label ID="ownerLabel" runat="server" Text='<%# Eval("owner") %>' /> &nbsp - &nbsp
<asp:Label ID="dateLabel" runat="server" Text='<%# Eval("commentdate")%>' />
<br />
<asp:Label ID="commentLabel" runat="server" Text='<%# Eval("comment") %>' />
</div>
</ItemTemplate>
<EmptyDataTemplate>
<div class="RadListView RadListView_Default">
<div class="rlvEmpty">
There are no previous comments.</div>
</div>
</EmptyDataTemplate>
</telerik:RadListView>
Thanks
In the code-behind you can fire a command event with the "Last" argument on PageLoad to force it to go to the last page.
See
how change the RadDataPager Page# From CodeBehind (server-side)
http://www.telerik.com/help/aspnet-ajax/datapager-overview.html

Click on asp:button inside modal popup doesn't work on Win7 x64 platform

I am developing ASP.NET application and I have a modal popup dialog with asp:button on it. I was developing my application on Windows 7 x86 platform, and there, click on this button works fine. But when I deploy the exact same code on Windows 7 x64 platform, click on this button inside modal popup doesn't work. Does anybody have idea what am I missing?
This is the Panel that I am showing and ModalPopupExtender that I use to show it.
<asp:ModalPopupExtender runat="server" ID="Extender_ConfirmChange"
PopupControlID="Panel_ConfirmChange"
TargetControlID="HiddenFieldChange"
BackgroundCssClass="modalBackground"
Drag="True"
PopupDragHandleControlID="LegendChange"
OkControlID="BtnYes_ConfirmChange"
CancelControlID="BtnNo_ConfirmChange"
DynamicServicePath="" Enabled="True">
</asp:ModalPopupExtender>
<asp:HiddenField ID="HiddenFieldChange" runat="server" />
<asp:Panel runat="server" ID="Panel_ConfirmChange" Height="100px" Width="400px" style="display: none">
<div id="Div1" runat="server" class="UserData">
<fieldset class='UserPanel'>
<legend id="LegendChange" class="CursorCorrector">
<asp:Label ID="LabelChange" runat="server" meta:resourcekey="ChangeResource"></asp:Label>
</legend>
<asp:Panel runat="server" BackColor="White" >
<asp:Table runat="server">
<asp:TableRow>
<asp:TableCell>
<asp:Image ID="img" ImageUrl="../Images/Shield_Yellow32.png" runat="server"
meta:resourcekey="imageChangeResource" style="padding-right:8px"/>
</asp:TableCell>
<asp:TableCell>
<asp:Label ID="lblChange" runat="server" meta:resourcekey="lblChangeResource" ></asp:Label>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<br />
<br />
<div class="button">
<asp:Button ID="BtnYes_ConfirmChange" runat="server"
OnClick="BtnYes_ConfirmChange_OnClientClick" UseSubmitBehavior="False"
Width="70px" meta:resourcekey="BtnYes_ConfirmChangeResource"/>
<asp:Button ID="BtnNo_ConfirmChange" runat="server" Width="70px"
OnClick="BtnNo_ConfirmChange_OnClientClick"
meta:resourcekey="BtnNo_ConfirmChangeResource"/>
<asp:Button ID="BtnCancel_ConfirmChange" runat="server" Width="70px"
OnClick="BtnCancel_ConfirmChange_OnClientClick"
meta:resourcekey="BtnCancel_ConfirmChangeResource"/>
</div>
</asp:Panel>
</fieldset>
</div>
</asp:Panel>

how to stop refreshing of current page when any server side event of web user control being fired

I'm building a web user control.
Now i need to fire some server side events on web user control.
And also need to stop page refreshing.
Can any one tell me how can i fire server side event on web user control without refreshing hole page.
Edit-1
My control (.ascx)
<%--Control designer start--%>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div style="position:relative;border:none;" id="divComboContainer" runat="server" >
<%--Hidden fields for datacombo values--%>
<asp:HiddenField ID="Hidden_Value" Value="" runat="server" />
<asp:HiddenField ID="Hidden_SorDir" Value="" runat="server" />
<asp:HiddenField ID="Hidden_RowIndex" Value="" runat="server" />
<asp:HiddenField ID="hfScrollPosition" Value="" runat="server" />
<%--Seleted text display textbox--%>
<asp:TextBox ID="txtDisplay" runat="server" CssClass="tb10" autocomplete="off" ToolTip="Type for search"></asp:TextBox>
<%--Panal and controls for dropdown--%>
<asp:Panel ID="DropPanel" runat="server" CssClass="ContextMenuPanel" Width="1000px"
style="display :none;
visibility: hidden;
border:2px solid #E5E5E5;
padding-bottom:-1px;
margin-top:-28px;
background-color:#83ACF3;
overflow:hidden;
height:auto;
max-height:700px;
max-width:1000px;">
<%--<asp:Button ID="Button1" runat="server" Text="Button" />--%>
<%--Search textbox div--%>
<div class="ddeSerch">
<div style="padding-top:5px;float:left;">
Look-Up
</div>
<asp:TextBox runat="server" ID="txtSearch" autocomplete="off" CssClass="tb10" BackColor="White" Width="50%" MaxLength="150"
onclick="return false;"
style="background: url(GridViewCSSThemes/Images/tia.png) no-repeat top right;background-color:White;padding-right:25px;">
</asp:TextBox>
<div style="padding-top:5px;float:right;cursor:pointer;" runat="server" id="dcmbClose" >
Close
</div>
</div>
<%--Datacombo header--%>
<asp:Table ID="Table1" runat="server" CssClass="header" GridLines="Vertical" Width="100%">
</asp:Table>
<%--Datacombo body(records)--%>
<div id="divGrid" runat="server" style="max-height:615px;width:100%;overflow-X:auto;overflow-Y:auto;">
<asp:GridView ID="gridEdit" GridLines="Vertical" runat="server" Width="100%"
ShowFooter="false" AutoGenerateColumns="false" ShowHeader="false" AllowSorting="true"
Font-Size = "11pt" Font-Names = "Arial" style="color:Black;"
AlternatingRowStyle-BackColor="#CCDDFB"
RowStyle-BackColor="WhiteSmoke"
OnRowCreated="gridEdit_RowCreated" OnRowDataBound="gridEdit_RowDataBound" OnSorting="gridEdit_Sorting">
<HeaderStyle HorizontalAlign="Left" CssClass="header" Font-Bold="false" />
<RowStyle CssClass="rowstyle"/>
<Columns>
</Columns>
</asp:GridView>
</div>
<%--Datacombo footer--%>
<table class="footer" id="tblfooter" runat="server">
<tr>
<td style="text-align:left;">
<asp:TextBox Enabled="false" autocomplete="off" ID="lblOrd" CssClass="footer" runat="server" Width="100%"></asp:TextBox>
</td>
<td style="text-align:right;">
<asp:TextBox Enabled="false" autocomplete="off" ID="lblTot" CssClass="footer" style="text-align:right;" runat="server" Width="100%"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
<ajaxToolkit:DropDownExtender runat="server" ID="DDE"
TargetControlID="txtDisplay"
DropDownControlID="DropPanel" HighlightBorderColor="Transparent">
</ajaxToolkit:DropDownExtender>
</div>
</ContentTemplate>
</asp:UpdatePanel>
Use on aspx page
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<uc1:UCDataCombo runat="server" ID="UCDataCombo4"/>
</ContentTemplate>
</asp:UpdatePanel>
When user clicks on header of gridview it fires some events.
And hole page got refreshed.
I need to stop refreshing of hole page.
UpdatePanel enables sections of a page to be partially rendered without a postback.
You can have a full understanding by reading here.
-EDIT-
I don't if this will help but you gotta try this:
Check if is set in your web.config, if it is there you may want to remove it.
Go to this link for more details.
Hope it helps!
Problem i solved by setting clientIDMode to Static.
clientIDMode="Static".
Now update panel works fine.

popup is getting disaapeared after dropdown selection

<asp:Panel id="container" CssClass="container" runat="server" style="width:850px">
<asp:Panel runat="server" id="header" cssClass="header" >
<div class="msg"> </div>
<asp:LinkButton ID="LinkButton1" runat="server" CssClass="close" OnClientClick="clearDataKey()" />
</asp:Panel>
<div runat="server" id="whatup">
<asp:Panel ID="Panel2" runat="server" >
<uc1:messageBox ID="InfoBox" runat="server" />
</asp:Panel>
</div>
<asp:updatepanel ID="upcsconfirmation" runat="server">
<ContentTemplate>
<cc1:ModalPopupExtender ID="popupCS" runat="server" BehaviorID="popupCS" TargetControlID="btnTargetCS"
PopupControlID="pnlPopupCS" BackgroundCssClass="modalBackground"/>
<asp:Button ID="btnTargetCS" runat="server" Text="Button" cssClass="hide" />
<cc1:DragPanelExtender ID="DragPanelExtenderCS" TargetControlID="pnlPopupCS" runat="server"></cc1:DragPanelExtender>
<asp:Panel ID="pnlPopupCS" runat="server" SkinID="modal"></asp:Panel>
</ContentTemplate>
</asp:updatepanel>
<div class="body" >
<div class="contentarea" style="height:200px;">
<asp:TextBox ID="datakeyholder" runat="server" style="display:none" Enabled="False" />
<asp:ObjectDataSource ID="odsCopyCustRequirements" runat="server" InsertMethod="InsertSearchRequirement"
TypeName="SearchRequirementsDataObject"
oninserting="Requirements_Inserting" >
</asp:ObjectDataSource>
<div style="height: 100%; width: 100%">
<div id="Div1" style="float: left; width: 45%; padding-left:10px">
<div class="column130">
<asp:Label ID="lblSearch1" runat="server" Text="FAST Region:"></asp:Label></div>
<asp:UpdatePanel ID="UpnlCust" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<div class="column130">
<asp:DropDownList ID="ddSearch1" AutoPostBack="true" DataTextField="Name"
OnSelectedIndexChanged="ddSearch_SelectedIndexChanged" DataValueField="id"
runat="server" Width="150px">
</asp:DropDownList>
</div>
<div class="column130">
<asp:Label ID="lblSearch2" runat="server" Text="Owning Office:"></asp:Label></div>
<div class="column130">
<asp:DropDownList ID="ddSearch2" DataTextField="Name" DataValueField="fastid"
runat="server" Width="150px">
</asp:DropDownList>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddSearch1" />
</Triggers>
</asp:UpdatePanel>
<div class="column">
</div>
</div>
</div>
</div>
<p></p>
The upper update panel (upcsconfirmation) containing modal popup extender should have UpdateMode = "Conditional" - otherwise, asynchronous post-back from bottom update panel will also update its content restoring the modal popup to hidden state.
Yet another way to solve your issue is to use Show method of popup extender on server side when the bottom update panel posts back (for example, you can put the call popupCS.Show() in ddSearch_SelectedIndexChanged to keep the modal popup open).

Resources