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  |  

The best choice for your web site host, email hosting, and domain registration.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  Datalist Paging On DotenetNuke(its very urgent)
Previous Previous
 
Next Next
New Post 6/24/2008 5:23 PM
User is offline suresh
15 posts
10th Ranked


Datalist Paging On DotenetNuke(its very urgent) 

HI:

    I have done Paging on  " Datalist"    in   DotnetNuke.The Paging is working fine in the normal condition....But the Problem is If  i refresh the page  or press Control+F5      I cudn't get the current page. The Event occured before refresh the page is calling ,so that the page is incremented or decremented accordingly.So i have planned to use Ajax "UpdatePanel".After Using Updatepanel while running the page i got exception.Can any one tell  me how to solve this problem.I have attached my code below.

My Code:

 

 
                                           
                                      
                                  <asp:ScriptManager ID="ScriptManager1" runat="server">
                                                </asp:ScriptManager>
                                           
                                           
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                <ContentTemplate>
                                           
                                    <table width="100%" class="border">
                                        <tr>
                                            <td style="height: 521px" align="center">
                                           
                                           
                                             
                                                <asp:DataList ID="dl1" runat="server" Width="100px" RepeatColumns="3" RepeatDirection="Horizontal"
                                                    BorderWidth="0px" BackColor="White" ForeColor="White">
                                                    <ItemTemplate>
                                                        <table border="0" width="99%">
                                                            <tr>
                                                                <td colspan="2" align="center" valign="top">
                                                                    <table>
                                                                        <tr>
                                                                            <td style="width: 100px">
                                                                                <asp:HyperLink runat="server" ID="cmdEdit2" ImageUrl="~/images/edit.gif" NavigateUrl='<%#EditUrl("ProdId",Eval("ProdId").ToString()) %>'
                                                                                    Visible="<%# IsEditable %>"></asp:HyperLink>
                                                                                <a href='<%# getTabId(Container.DataItem("ProdId"))%>'>
                                                                                    <asp:Image ID="imgProduct" Width="127" Height="136" runat="server" ImageUrl='<%# "~"+"\\"+"DesktopModules"+"\\"+"AftronProducts"+"\\"+"Images"+"\\"+(Eval("ProdImage"))%>' /></a>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" style="width: 100px">
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" style="width: 100px">
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" style="width: 100px">
                                                                                <asp:Label ID="Label1" CssClass="Itemtext" runat="server" Text='<%#Eval("ProdModelNo")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="center" style="height: 21px;width: 100px">
                                                                                <asp:Label ID="Label2" CssClass="Itemtext" runat="server" Text='<%#Eval("prodSpecific")%>'></asp:Label>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                                <td align="right" width="1%" valign="top" colspan="2">
                                                                    <asp:Panel ID="pnl" runat="server" BackColor="Silver" Height="230px" Width="1px">
                                                                    </asp:Panel>
                                                                </td>
                                                            </tr>
                                                            <tr align="center" valign="top">
                                                                <td colspan="2" align="center" valign="top" style="width: 257px">
                                                                    <hr style="width: 180px; height: 1px; color: Silver" />
                                                                </td>
                                                                <td>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="Itemtext" Wrap="True" />
                                                </asp:DataList>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr runat="server" valign="top" width="100%" id="Tr1">
                                <td colspan="4" style="width: 659px">
                                    <table width="100%">
                                        <tr>
                                            <td align="right" style="width: 40%; height: 21px;">
                                                &nbsp;&nbsp;<asp:ImageButton CssClas="handOnNextPreview" ID="btnprev" runat="server"
                                                    OnClick="btnprev_Click" ImageUrl="~/DesktopModules/AftronProducts/Images/back.gif"
                                                    Width="36" Height="9" border="0" />&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                            <td width="10%" align="center" style="height: 21px">
                                                <asp:Label ID="lbl_page" runat="server" Text="page" Style="font-family: verdena;
                                                    font-size: 12px; color: #555555;"></asp:Label>
                                                <asp:Label CssClass="Pageing" ID="lblpgnmr" runat="server"></asp:Label></td>
                                            <td width="40%" align="left" style="height: 21px; width: 40%;">
                                                <asp:ImageButton ID="btnnext" CssClas="handOnNextPreview" runat="server" OnClick="btnnext_Click"
                                                    ImageUrl="~/DesktopModules/AftronProducts/Images/next.gif" Width="38" Height="8"
                                                    hspace="15" border="0" />
                                            </td>
                                        </tr>
                                    </table>
                                   
                                   
                                    </ContentTemplate>
                                                </asp:UpdatePanel>

 
New Post 6/30/2008 2:04 PM
User is offline Mitch Sellers
5554 posts
www.mitchelsellers.com
3rd Ranked




Re: Datalist Paging On DotenetNuke(its very urgent) 

Can you share the error that you receive?


-Mitchel Sellers
MCITP, MCPD, MCTS
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Consulting Quotes, and DNN Technical Support Services

I reccomend 3Essentials for shared hosting and BaseCamp for project management
 
New Post 6/30/2008 5:22 PM
User is offline William Severance
786 posts
www.wesnetdesigns.com
7th Ranked






Re: Datalist Paging On DotenetNuke(its very urgent) 

Although it appears that some of your markup code became "scrambled" in posting to the forum, I do see that you are declaritively adding a ScriptManager control. Since there can be only one ScriptManager control on a page and since other modules or the DNN framework itself may be adding one already to the page markup, I suspect that your error message is similar to: "Multiple controls with the same ID 'ScriptManager' . . . "

Rather than adding the ScriptManager control declaritively, include code such as the following in your module control:

If DotNetNuke.Framework.AJAX.IsInstalled Then
     DotNetNuke.Framework.AJAX.RegisterScriptManager()
End If

Regarding paging, it appears that you are implementing your own paging rather than using the dnn:pagingcontrol. Unless paging information is passed in the query string, refreshing the page or hiting F5 will always take you back to the initial page.

 


Bill, WESNet Designs
 
New Post 7/1/2008 6:29 AM
User is offline suresh
15 posts
10th Ranked


Re: Datalist Paging On DotenetNuke(its very urgent) 

Dear williams:

                            Massive Thanks to u....I had a little doubt now.Can u tell me where to add that

                                      "        If    DonetNuke.Framework.AJAX.IsInstalled  " code to implement  ajax in Dotnetnuke...

 
New Post 7/1/2008 8:06 AM
User is offline William Severance
786 posts
www.wesnetdesigns.com
7th Ranked






Re: Datalist Paging On DotenetNuke(its very urgent) 

Sorry I forgot to mention that . . . the code can be placed in either the Page_Init or Page_Load handler. It needs to be called on each page request so do NOT place it within a "If Not Page.IsPostback . . . " conditional.


Bill, WESNet Designs
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  Datalist Paging On DotenetNuke(its very urgent)
 


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.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

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