Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 2nd, 2006, 10:29 AM
Registered User
Join Date: Jul 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to harshwardhan_kulkarni
Default allow paging problem

I have put the code
 Me.DataGrid1.CurrentPageIndex = e.NewPageIndex
            Dim StrC As New Verify
            'Dim dtr As SqlDataAdapter

            Dim SqlConn As New SqlConnection(StrC.StrConn)
            Dim SqlCmdb As New SqlCommand("SearchFltEqComp", SqlConn)
            'Dim SqlCmdb As New SqlCommand("newabc", SqlConn)
            SqlCmdb.CommandType = CommandType.StoredProcedure
            SqlCmdb.Parameters.Add("@rSt", 1)
            SqlCmdb.Parameters.Add("@rT", 5)
            SqlCmdb.Parameters.Add("@fS", 1)
            SqlCmdb.Parameters.Add("@fT", 5)
            Dim i As Integer
            i = 0
            SqlCmdb.Parameters.Add("@Times", i)
            SqlCmdb.Parameters.Add("@rfld", ".NET")

            SqlCmdb.Parameters.Add("@fld", "software")
            SqlCmdb.Parameters.Add("@bd", "Bsc")
            SqlCmdb.Parameters.Add("@md", "Msc")
            SqlCmdb.Parameters.Add("@Comp", "Abcd Pvt. Ltd")
            SqlCmdb.Parameters.Add("@appFld", "software")
            SqlCmdb.Parameters.Add("@appRole", "Sr.Programmer")
            SqlCmdb.Parameters.Add("@Role", "Programmer")
            SqlCmdb.Parameters.Add("@AppRel", ".NET")
            Dim Fdt As Date
            Fdt = "1/1/1999"
            Dim Tdt As Date
            Tdt = "12/1/2006"
            SqlCmdb.Parameters.Add("@Fdt", Fdt)
            SqlCmdb.Parameters.Add("@Tdt", Tdt)
            Dim dtr As New SqlDataAdapter(SqlCmdb)
            Me.DataGrid1.DataSource = ds.Tables(0)
            Dim x As Integer
            Dim Str As String
            For x = 0 To Me.DataGrid1.Items.Count - 1
                Str = CType(Me.DataGrid1.Items.Item(x).Cells(0).Controls (1), LinkButton).Text
        Catch ex As Exception
            Me.Label1.Text = ex.Message
        End Try
yet the mark of next button is not activated

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging Problem aneesh_sunu@yahoo.co.in PHP Databases 1 November 25th, 2006 02:25 AM
DataGrid Paging Problem hoailing22 ASP.NET 1.0 and 1.1 Basics 5 April 23rd, 2006 03:15 AM
Problem with recordset paging Stefania Classic ASP Databases 0 February 11th, 2005 08:59 AM
Problem with my paging... fung Classic ASP Databases 2 August 23rd, 2004 07:43 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.