Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0About the calendarAbout the calendar
Previous
 
Next
New Post
3/21/2006 2:29 PM
 
  Hi. I'm looking for a client side calendar control. I've took a look into the source files of the core admin modules (like the pagemanagment) and haven't found the place where the trick is. So how to embed the calendar control which is used in the core modules into my custom one?

Best regards, Evgeny
 
New Post
3/21/2006 3:15 PM
 

Here's a snipet from the .ascx of one of my module's edit control:

<td class="SubHead" align="right" width="20%">Membership Expires:&nbsp;</td>
<td class="NormalBold" align="left" width="30%">
       <
asp:textbox id="tbMembershipExpires" tabIndex="23" cssclass="NormalTextBox" columns="20"
            
runat="server" MaxLength="20" Enabled="False">
       </
asp:textbox>&nbsp;
      
<asp:hyperlink id="cmdMembershipExpiresCalendar" tabIndex="-1" cssclass="CommandButton" runat="server">Calendar</asp:hyperlink>
      
<asp:comparevalidator id="valMembershipExpires2" cssclass="NormalRed" runat="server" display="Dynamic"
                 
controltovalidate="tbMembershipExpires" ErrorMessage="Invalid date" type="Date" operator="DataTypeCheck">
      
</asp:comparevalidator>
</
td>

And from the corresponding vb codebehind:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Try

       If Not (Request.QueryString("CenterID") Is Nothing) Then
             
CenterID = CInt(Request.QueryString("CenterID"))
      
End If
      
DotNetNuke.Common.Globals.SetFormFocus(tbCenter)

       cmdMembershipExpiresCalendar.NavigateUrl = CType(DotNetNuke.Common.Utilities.Calendar.InvokePopupCal(tbMembershipExpires), String)

       If Not IsPostback Then

       'other code here

      End If

Catch exc As Exception   'Module failed to load
      
ProcessModuleLoadException(Me, exc)
End Try

End Sub

The key to making this work is setting the NavigateUrl of the calendar hyperlink on every page load - not within the If Not IsPostback block.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/21/2006 10:23 PM
 
Thanks a lot.

Best regards, Evgeny
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0About the calendarAbout the calendar


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out