ASP.Net Load Template Function

  • Thread starter Anbazhagan Mani via .NET 247
  • Start date
A

Anbazhagan Mani via .NET 247

(Type your message here)

--------------------------------
From: Anbazhagan Mani

Hi,
I have used the Page.LoadTemplate() function to load templatesdynamically in the DataList. I created three .ascx files forHeaderTemplate, FooterTemplater and ItemTemplate and I hadincluded basic code to bind with a dataset. It worked fine.Then, I added an user control, which has got a datagrid boundwith a datasource. I added the usercontrol in the .ascx filewhich I had created for the ItemTemplate. I executed theapplication. It loaded all the templates. But it didn't load theusercontrol which I had included in the template file. Couldanyone help me out in this problem?

Thanks,
Anbu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top