Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  dynamic tab save state
Previous Previous
 
Next Next
New Post 2/7/2008 1:23 PM
User is offline maysam
12 posts
10th Ranked


dynamic tab save state  

hi

I wante create a  dynamic tabstrip (create tabs dynamic + =CallBack ,="ProcessPage"

 

every postback in page of module  tabstrip in my module reset and tabindex=0 set for tabstrip.

please helpe  for  tabstrip (create dynamic tabs) that save state after post back

 

) in   my module(for dnn) .

TabRenderMode

CallBackType

 
New Post 2/16/2008 3:54 AM
User is offline maysam
12 posts
10th Ranked


Re: dynamic tab save state  

hi

Ican solve this problem  with this code:

in code behinde:

Public s As String    Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent
            s = eventArgument
            Context.Session("n") = eventArgument
        End Sub
        Public Function GetCallbackResult() As String Implements System.Web.UI.ICallbackEventHandler.GetCallbackResult
            Return s
        End Function

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

               Dim cm As ClientScriptManager = Page.ClientScript
                sCallBackFunctionInvocation = cm.GetCallbackEventReference(Me, "message", "ShowServerTime", "context", "OnError", True)
                createtabdynamic()

                If Not Session("n") Is Nothing Then

                    If Not TabContainer1.Tabs.FindTab(Session("n").ToString) Is Nothing Then
                        TabContainer1.SelectedIndex = Integer.Parse(Session("n").ToString.Remove(0, 2)) - 1
                        txtbox.Text = Session("n").ToString.Remove(0, 2)
                        ''txtbox.Text = Session("n").ToString

                    End If
                     End If
End sub

and in ascx file:

<script language="javascript">
 

         function GetServerTime(evt,element)
         {
            var message =dnn.dom.getAttr(element, 'tid');
            var context = '';
           
            <%=sCallBackFunctionInvocation%>
         }
        
         function ShowServerTime(timeMessage, context) {
            var p='';
            // + message);
         }

      </script>

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  dynamic tab save state
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com
DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP