CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 4/13/2005 11:42:36 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 54 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
bradleymartens
Asp.Net User
Datagrid Paging not working in module4/13/2005 11:42:36 AM

0/0

Hi Everyone,

The below code works in a normal aspx page but not in my module, in my module when I click teh second page it simply refreshes and display no datagrid at all.

Can anyone tell me why this would be happening or if my code is wrong help me fix it?

Sub grdAddressBook_PageIndexChanged(ByVal s As Object, ByVal e As DataGridPageChangedEventArgs)

grdAddressBook.CurrentPageIndex = e.NewPageIndex

grdAddressBook.DataBind()

End Sub

" NavigateUrl=''>" imageurl="~/images/edit.gif">' Runat="server">' Runat="server">" NavigateUrl=''>" imageurl="~/images/edit.gif">' Runat="server">' Runat="server">" NavigateUrl=''>" imageurl="~/images/edit.gif">' Runat="server">' Runat="server"><asp:datagrid id="grdAddressBook" runat="server" Width="98%" BorderColor="#003399" BorderStyle="None"
    BorderWidth="1px" BackColor="White" CellPadding="4" AutoGenerateColumns="False" AllowPaging="True"
    OnPageIndexChanged="grdAddressBook_PageIndexChanged" PageSize="2"> 
 <Columns>
  <asp:TemplateColumn>
   <ItemTemplate>
    <asp:HyperLink id="editAddressBook" NavigateUrl='<%# EditURL("ItemID",DataBinder.Eval(Container.DataItem,"ItemID")) %>' Visible="<%# IsEditable %>" runat="server">
     <asp:image id="editAddressBookImage" imageurl="~/images/edit.gif" visible="<%# IsEditable %>" alternatetext="Edit" runat="server" resourcekey="Edit"/>
    </asp:HyperLink>
   </ItemTemplate>
  </asp:TemplateColumn>
  <asp:BoundColumn DataField="FirstName" HeaderText="FirstName">
   <HeaderStyle CssClass="NormalBold"></HeaderStyle>
   <ItemStyle CssClass="Normal"></ItemStyle>
  </asp:BoundColumn>
  <asp:BoundColumn DataField="LastName" HeaderText="LastName">
   <HeaderStyle CssClass="NormalBold"></HeaderStyle>
   <ItemStyle CssClass="Normal"></ItemStyle>
  </asp:BoundColumn>
  <asp:TemplateColumn HeaderText="Email1">
   <HeaderStyle CssClass="NormalBold"></HeaderStyle>
   <ItemStyle CssClass="Normal"></ItemStyle>
   <ItemTemplate>
    <asp:Label ID="lblEmail" Runat="server" Text='<%# DisplayEmail(DataBinder.Eval(Container.DataItem, "Email1")) %>'>
    </asp:Label>
   </ItemTemplate>
  </asp:TemplateColumn>
  <asp:TemplateColumn HeaderText="Email2">
   <HeaderStyle CssClass="NormalBold"></HeaderStyle>
   <ItemStyle CssClass="Normal"></ItemStyle>
   <ItemTemplate>
    <asp:Label ID="lblEmail2" Runat="server" Text='<%# DisplayEmail(DataBinder.Eval(Container.DataItem, "Email2")) %>'>
    </asp:Label>
   </ItemTemplate>
  </asp:TemplateColumn>
  <asp:BoundColumn DataField="HomePhone" HeaderText="Home Phone">
   <HeaderStyle CssClass="NormalBold"></HeaderStyle>
   <ItemStyle CssClass="Normal"></ItemStyle>
  </asp:BoundColumn>
 </Columns>
 <PagerStyle HorizontalAlign="Center" Mode="NumericPages"></PagerStyle>
</asp:datagrid>

I have to admit this has got me stumped

Regards

Brad

AerosSaga
Asp.Net User
Re: Datagrid Paging not working in module4/13/2005 1:36:52 PM

0/0

Two thoughts, is your binding call in page load encompassed in a
<code>
If Not Page.IsPostBack Then
'bind data
End If
</code>
Even though it should just rebind if this were not the case instead of just showing nothing.
If its just not showing up then there could be  something wrong with the data its returning, otherwise you would get a pageindex error or such. I would look at the data its returning. Just a couple of thoughts.


Regards,

Scott Schecter
EntitySpaces
Schecter Technology Solutions
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Building Web Solutions with ASP.NET and ADO.NET Authors: Dino Esposito, Pages: 379, Published: 2002
Beginning ASP.NET 1.1 with VB.NET 2003 Authors: Chris Ullman, John Kauffman, Chris Hart, David Sussman, Pages: 888, Published: 2003
Beginning ASP.NET 1.1 with Visual C# .NET 2003 Authors: Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry, Pages: 888, Published: 2004
ASP.NET by Example Authors: Steven A. Smith, Pages: 552, Published: 2002
Flex Solutions: Essential Techniques for Flex 2 and 3 Developers Authors: Marco Casario, Pages: 872, Published: 2007
Microsoft ASP.NET Programming with Microsoft Visual Basic .NET Step by Step: Version 2003 Authors: G. Andrew Duthie, Pages: 624, Published: 2003
MCAD/MCSD: Visual Basic¿ . Net XML Web Services and Server Components Study Guide. Exam 70-310 Authors: Pamela Fanstill, Brian Reisman, Mitch Ruebush, Pages: 597, Published: 2003
Microsoft ASP.NET Programming with Microsoft Visual C# .NET Step by Step: Version 2003 Authors: G. Andrew Duthie, Pages: 624, Published: 2003
MCAD/MCSD Training Guide (70-310): Developing XML Web Services and Server Components with Visual Basic. Net and the . Net Framework Authors: Mike Gunderloy, Ed Tittel, Pages: 1024, Published: 2003
Building an ASP.NET Intranet Authors: Kourosh Ardestani, Brian Boyce, Jonathon Walsh, et al., Andy Elmhorst, Matt Gibbs, Pages: 480, Published: 2003

Web:
Advanced Datagrid Module by Efficion Consulting - ASP.NET Forums So any ideas on why this line might not be working? .... i will explain what i want. i wan to have datagrid with paging and sortign facily. ...
Paging DataGrid with ArrayList - ng.asp-net-forum.dotnetnuke ... It mimics the vendors module, datagrid, paging, and searching. ... NET ... you are not familiar with DataGrid paging, consider first reading Scott Mitchell' ...
ASP.NET.4GuysFromRolla.com: Paging In ASP.NET If you are not familiar with DataGrid paging, consider first reading Scott Mitchell's .... Downloads and eKits. 30-Day Trial: SPAMfighter Exchange Module ...
Snowcovered.com : ADG on Steroids! - Customizable Advanced ... Customizable Advanced DataGrid Module for DNN 3.x and 4.x. ... Configuration of the DataGrid is not intended for non-technical users. ...
Datagrid paging I can not get my datagrid to page. I have a datagrid that .... 'Connect to your DB and store a copy in a Module Level DataSet ...
[#FLEXDMV-1719] CLONE -Embedded font and DataGrid within Module ... CLONE -Embedded font and DataGrid within Module does not work ... It has been fixed in DataGrid, but the data does not appear with AdvancedDataGrid. ...
My First ExtJS DataGrid Pt 3: A Paging Query Supports any form in your page Obviously this is not substitute at all of full- fledged ... In the ZIP you will find teh module, a working sample with ASP. ...
Efficion Consulting- Powerful Web-Based Solutions > DotNetNuke ... -Moved style stuff to module.css -Moved Settings to DNN3 Settings page ... Configuration of the DataGrid is not intended for non-technical users. ...
CodeGuru: Creating a Custom DataGrid Paging Control Feb 6, 2007 ... Create your own custom DataGrid paging control over which you, ... a custom paging control, such as (but definitely not limited to) the one ...
asp.net ajax error exporting datagrid data to excel > DotNetNuke ... Hi All, I have a module which has different panels in a control and a ... Hi,I' ve done it according to your sugession but it's not working. ...




Search This Site:










unit testing asp.net 2.0 web application

vs 2005 and vss 6.0

error message box in visual studio

namespace

unwanted white space around asp images

asp.net mobile web

find (also "find and replace") not working in visual studio

improve source view performance

how do i get around an error when binding a checkbox to an empty data source?

design-time support questions

dynamically retreiving textbox values

built-in web server

how to configure vs 2005 to have open: project..| website?

creating a data connection to a sql instance name

bringing it back to web development style

toolbox missing tabs

clear height and width attributes from td cells

how to publish website and where is global.asax

question about error list...

i have a problem in step visual studio 2005

vb.net 2.0: problem with thread sta attribute. :(

:: grr :: more major issues with july ctp of vs2005

every time i make a table in design view, i get an error in ‘source' view?

<%@ directives keep changing their location

can't open web site from visual studio 2005

web application projects output setting

vb <<<>>> c#

asp.net unit testing of app_code folder

test project template

performance wizard

  Privacy | Contact Us
All Times Are GMT