I have made a custom control , inhereted from System.Web.UI.Control I want to add a collection property in this control but i can't do it ... If any one have some peice of code help me ........ public class MyCollection: System.Web.UI.Control, INamingContainer { System.Collections.ArrayList _item ; public MyCollection() { _item = new System.Collections.ArrayList ; } public System.Collections.ArrayList Items { get{ if (_add==null) this._add = new System.Collections.ArrayList (); return _add; } set { this._add = value; } } }
Irfan x
Posts
-
Add Collection Property editor in custom control? -
bulk of data load problemI am developing asp.net1.1 application I have hug number of records in DB( SQLServer ) & want to show in a datagrid There are thousands of records which need to transfer to client & client can sort & search What is the best way to handle such type of situation I am also using Ajax , when I use Ajax to call a function it lock the page until the all data is transfer to client , that’s not good Did I use xml file to send on client & from xml file show data to client or if there is any good solution plz.... I will be really thankful Irfan
-
bulk of data load problemI am developing asp.net1.1 application I have hug number of records in DB( SQLServer ) & want to show in a datagrid There are thousands of records which need to transfer to client & client can sort & search What is the best way to handle such type of situation I am also using Ajax , when I use Ajax to call a function it lock the page until the all data is transfer to client , that’s not good Did I use xml file to send on client & from xml file show data to client or if there is any good solution plz.... I will be really thankful Irfan
-
bulk of data load problemI am developing asp.net1.1 application I have hug number of records in DB( SQLServer ) & want to show in a datagrid There are thousands of records which need to transfer to client & client can sort & search What is the best way to handle such type of situation I am also using Ajax , when I use Ajax to call a function it lock the page until the all data is transfer to client , that’s not good Did I use xml file to send on client & from xml file show data to client or if there is any good solution plz.... I will be really thankful Irfan
-
Data bond problemThanks Actually I have many tables and for each table I have made dropdown control to load data. (you can say these are lookup tables)
-
Data bond problemHI I have made custom dropdown controls which load data from DB one page have many contols when pages is render each control load data from DB. Each control has its own connection close method If there are 5 controls on page on load FIVE time DB connection open & close this is implemented in control class its not good approach to open & close DB connection each time PLZ GIVE ME SOME GOOD SOLUTION thanks Irfan
-
Custom control loose value on postbackThsnk for your help i have implement IPOSTBACKEVENTHandler now it is working Thanks agian Shahzad
-
Custom control loose value on postbackThanks for reply As I have experience with TextBox control, its TEXT property doesn’t lose value as we set it from serverside or from client side, on postback . It persist value I want to achieve the same behavior
-
Custom control loose value on postbackI have make a custom control it has a property the value of property can be set & get from server side & also from client side (javascript). when i set value from server side on post back control hold it value while when i set value from client side on post back control loose its value How can to persist it that control can't loose value set throgh client side on post back Thanks Shahzad This is the sample code for property [Bindable(true), Category("Appearance"), DefaultValue("block")] public string Value { get { object o = ViewState["Value"]; if (o == null) { return null; } return (string)o; } set { ViewState["Value"] = value; } }
-
Custom panel controlThanks for your reply its working now i was missing class atribute tag Now one other question how to render server side control from custom control with this MyPanel class I want to store some value in hidden box so that it can be availble on post back. but simple html control lose it value on post back Thanks
-
Custom panel controlI want to creat own custom panel control to add some features into default Panel & I donot want to inhert mypanel class from Panel i am trying to use System.Web.UI.Design.ReadWriteControlDesigner to get design time festures, drag & drop control on mypanel but can't get any success I am new in Custom Controls Can you give me any pieace of code so that i can take some guidline Actualy i want to build colapsable panel Thanks Arfan