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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


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.

 


Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com

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