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  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

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.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


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
5269 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
Director of Development
IowaComputerGurus Inc.
View Mitchel Sellers's profile on LinkedIn

Visit mitchelsellers.com for DotNetNuke tutorials, modules and technical help

Custom DotNetNuke Services Available (Development, etc).

My sites are hosted with 3Essentials
 
New Post 6/30/2008 5:22 PM
User is offline William Severance
676 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
676 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.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

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