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.0Datalist Paging On DotenetNuke(its very urgent)Datalist Paging On DotenetNuke(its very urgent)
Previous
 
Next
New Post
6/24/2008 8:23 PM
 

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 5:04 PM
 

Can you share the error that you receive?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
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 Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/30/2008 8:22 PM
 

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
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
7/1/2008 9:29 AM
 

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 11:06 AM
 

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
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
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Datalist Paging On DotenetNuke(its very urgent)Datalist Paging On DotenetNuke(its very urgent)


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