locked
Data Surce RRS feed

  • Question

  • User2033643981 posted

    Hi

    How to can i define a datasource for my control

     

    Thanks

    IFA 

    Tuesday, March 9, 2010 3:54 AM

All replies

  • User1960438654 posted

    It depends on the nature of your potential source and the type of control you are creating.

    E.g. in case you are using standard control GridView you can use DataTable by assigning it to DataSource property.

    Appropriate example is provided within the following MSDN article: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basedataboundcontrol.datasource.aspx 

    Tuesday, March 9, 2010 6:44 AM
  • User2033643981 posted

    Hi

    Thanks for Your attention

    but 

    i create a custom server control than fill with data from database

    how to can i define a datasource property for my control and set that with any Object(sql object or linq object) 

    same gridview or other

     

    Thanks

    IFA

    Sunday, March 14, 2010 4:05 AM