|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
building datalist programmaticaly
Hi,
How can I build datalist EditItemTemplate programmaticaly? |
|
#2
|
|||
|
|||
|
it's easy
firstly to create data list you go // create new DataList in the memory DataList dl = new DataList(); // Set DataList EditItemTemplate property // LoadTemplate Static method of Page class uses user control as its template dl.EditItemTemplate= LoadTemplate("usercontrol.ascx"); //Add the control to the page. Page.Controls.Add(dl);
__________________
Regards, James Yang .NET Developer / Network Engineer MCSE, MCDBA, MCSA, CCNA http://www.yellowpin.com/ http://www.opentechsupport.com/ |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > building datalist programmaticaly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|