Page Pre_Init and Dynamic link buttons
-
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...
-
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...
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.
-
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...
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.
-
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.
You are the man, thanks... it is the solution and done...
-
You are the man, thanks... it is the solution and done...
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.