Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Ajax
Hello,
 
I have one textbox and an calender extender inside a model popupextender. When i click on textbox then the calender extender will not display all dates. it is showing only sunday(as 'su') and monday (as 'mo').
 
Please help me...
Posted 10-Sep-12 21:18pm
Comments
Sandeep Mewara at 11-Sep-12 3:40am
   
Share the code snippet of what you tried. Use 'Improve Question' link to edit/update question.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

hello dude try this code may be help full..
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 <html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <title></title>
   <style type="text/css">
   .modalBackground
   {
      background-color:#CCCCFF;
      filter:alpha(opacity=40);
      opacity:0.5;
   }
 
   .ModalWindow
   {
      border: solid1px#c0c0c0;
      background:#f0f0f0;
      padding: 0px10px10px10px;
      position:absolute;
      top:-1000px;
   }
 
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
       <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="lnkPopup" PopupControlID="panEdit" BackgroundCssClass="modalBackground" CancelControlID="btnCancel" PopupDragHandleControlID="panEdit"></cc1:ModalPopupExtender>
      <a id="lnkPopup" runat="server">Show Popup</a>
      <asp:Panel ID="panEdit" runat="server" Height="180px" Width="400px" CssClass="ModalWindow">
        <h1>Edit</h1>
        <table width="100%">
            <tr>
                <td class="formtext" style="height: 23px; width: 150px;" align="left">
                    Fields1:
                </td>
                <td>
                    <asp:TextBox ID="txtFields1" runat="server"></asp:TextBox>
                    <cc1:CalendarExtender runat="server" ID="ss" TargetControlID="txtFields1" ></cc1:CalendarExtender>
                </td>
            </tr>
       </table>
       <br />
       <asp:Button ID="Button1" runat="server" Text="Update" />
       <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
</asp:Panel>
    </div>
    </form>
</body>
</html>
  Permalink  
v2
Comments
rhtdmrai at 12-Sep-12 1:39am
   
thanks for your quick reply
I have checked this code. although it works nice but when it is written to a page inside master page this shows the same problem. I also checked simply a textbox and ajax calender only inside a page inheriting master page the calendar shows same problem.
Please help me.....
sanwar mal jat at 12-Sep-12 3:18am
   
Hello guys what's problem occur, Because i have already checked using with master page , wit proper work . As like .
 
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeFile="Default5.aspx.cs" Inherits="Default5" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<style type="text/css">
.modalBackground
{
background-color: #CCCCFF;
filter: alpha(opacity=40);
opacity: 0.5;
}

.ModalWindow
{
border: solid1px#c0c0c0;
background: #f0f0f0;
padding: 0px10px10px10px;
position: absolute;
top: -1000px;
}
</style>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<cc1:modalpopupextender id="ModalPopupExtender1" runat="server" targetcontrolid="lnkPopup"
popupcontrolid="panEdit" backgroundcssclass="modalBackground" cancelcontrolid="btnCancel"
popupdraghandlecontrolid="panEdit">
 

<a id="lnkPopup" runat="server">Show Popup
<asp:Panel ID="panEdit" runat="server" Height="180px" Width="400px" CssClass="ModalWindow">

Edit

<table width="100%">
<tr>
<td class="formtext" style="height: 23px; width: 150px;" align="left">
Fields1:
</td>
<td>
<asp:TextBox ID="txtFields1" runat="server">
<cc1:calendarextender runat="server" id="ss" targetcontrolid="txtFields1">
</td>
</tr>
</table>
<br />
<asp:Button ID="Button1" runat="server" Text="Update" />
<asp:Button ID="btnCancel" runat="server" Text="Cancel" />

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 568
1 OriginalGriff 384
2 George Jonsson 258
3 Abdul Samad KP 135
4 Animesh Datta 130
0 OriginalGriff 6,099
1 Sergey Alexandrovich Kryukov 5,411
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 11 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100