Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Page Pre_Init and Dynamic link buttons

Page Pre_Init and Dynamic link buttons

Scheduled Pinned Locked Moved ASP.NET
help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Ersan Ercek
    wrote on last edited by
    #1

    Dear All, My datalist paging is handled at page_preinit with dynamic link buttons. There is a combobox affecting the page count. So the number of pages is changed by the selected value of the combobox. However I am unable to retrieve this information at page_preinit. I tried hidden field and javascipt, however also hidden field value comes null at page_preinit. Please help me...

    C A 2 Replies Last reply
    0
    • E Ersan Ercek

      Dear All, My datalist paging is handled at page_preinit with dynamic link buttons. There is a combobox affecting the page count. So the number of pages is changed by the selected value of the combobox. However I am unable to retrieve this information at page_preinit. I tried hidden field and javascipt, however also hidden field value comes null at page_preinit. Please help me...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      your hidden field is empty precisely because you're in pre init, and you're in pre init because it runs before viewstate is restored. Why does this number change while it's on the client ? I mean, why is it that when you serve a page, you don't know when the next page is requested, what the number will be ? If you do, then put it on the URL, or in the session.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • E Ersan Ercek

        Dear All, My datalist paging is handled at page_preinit with dynamic link buttons. There is a combobox affecting the page count. So the number of pages is changed by the selected value of the combobox. However I am unable to retrieve this information at page_preinit. I tried hidden field and javascipt, however also hidden field value comes null at page_preinit. Please help me...

        A Offline
        A Offline
        Abhishek Sur
        wrote on last edited by
        #3

        use this.Request.Params["yourid"] as in Pre_Init controls are not initialized... You can only find the data in Params or Form using its id. Or you may use Page_Load. :thumbsup::thumbsup:

        Abhishek Sur


        My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

        **Don't forget to click "Good Answer" if you like to.

        E 1 Reply Last reply
        0
        • A Abhishek Sur

          use this.Request.Params["yourid"] as in Pre_Init controls are not initialized... You can only find the data in Params or Form using its id. Or you may use Page_Load. :thumbsup::thumbsup:

          Abhishek Sur


          My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

          **Don't forget to click "Good Answer" if you like to.

          E Offline
          E Offline
          Ersan Ercek
          wrote on last edited by
          #4

          You are the man, thanks... it is the solution and done...

          A 1 Reply Last reply
          0
          • E Ersan Ercek

            You are the man, thanks... it is the solution and done...

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            Thank you so much .. :thumbsup:

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups