Home All Groups Group Topic Archive Search About

Creating Dynamic FormView Templates

Author
1 May 2006 4:46 PM
Stephen Hatfield
Is it possible to create FormView templates (EditItemTemplate,
InsertItemTemplate, ItemTemplate) dynamically by calling a separate class
file to generate the template. My attempts at this have been unsuccessful. I
am working in the ContentPlaceHolder on a page using a masterpage. I have
tried adding a PlaceHolder tag and putting the FormView control within but
still no luck. I have seen the example for doing this within a web page but
not by calling the ITemplate class within a different .cs file.

Thank you!
Steve

Author
1 May 2006 7:56 PM
Phillip Williams
http://www.webswapp.com/codesamples/aspnet20/itemplate/default.aspx
Show quote Hide quote
"Stephen Hatfield" wrote:

> Is it possible to create FormView templates (EditItemTemplate,
> InsertItemTemplate, ItemTemplate) dynamically by calling a separate class
> file to generate the template. My attempts at this have been unsuccessful. I
> am working in the ContentPlaceHolder on a page using a masterpage. I have
> tried adding a PlaceHolder tag and putting the FormView control within but
> still no luck. I have seen the example for doing this within a web page but
> not by calling the ITemplate class within a different .cs file.
>
> Thank you!
> Steve
Author
2 May 2006 11:05 AM
Stephen Hatfield
Thanks for your reply Philip! I have no problem generating templates for
Columns in a GridView. I am having problems doing the same with a FormView.

Steve

Show quoteHide quote
"Phillip Williams" wrote:

> http://www.webswapp.com/codesamples/aspnet20/itemplate/default.aspx
> --
> HTH,
> Phillip Williams
> http://www.societopia.net
> http://www.webswapp.com
>
>
> "Stephen Hatfield" wrote:
>
> > Is it possible to create FormView templates (EditItemTemplate,
> > InsertItemTemplate, ItemTemplate) dynamically by calling a separate class
> > file to generate the template. My attempts at this have been unsuccessful. I
> > am working in the ContentPlaceHolder on a page using a masterpage. I have
> > tried adding a PlaceHolder tag and putting the FormView control within but
> > still no luck. I have seen the example for doing this within a web page but
> > not by calling the ITemplate class within a different .cs file.
> >
> > Thank you!
> > Steve
Author
4 May 2006 3:41 AM
Phillip Williams
Hi Stephen,

I just added another demo within the same section on my website for the
FormView.
Show quoteHide quote
"Stephen Hatfield" wrote:

> Thanks for your reply Philip! I have no problem generating templates for
> Columns in a GridView. I am having problems doing the same with a FormView.
>
> Steve
>
> "Phillip Williams" wrote:
>
> > http://www.webswapp.com/codesamples/aspnet20/itemplate/default.aspx
> > --
> > HTH,
> > Phillip Williams
> > http://www.societopia.net
> > http://www.webswapp.com
> >
> >
> > "Stephen Hatfield" wrote:
> >
> > > Is it possible to create FormView templates (EditItemTemplate,
> > > InsertItemTemplate, ItemTemplate) dynamically by calling a separate class
> > > file to generate the template. My attempts at this have been unsuccessful. I
> > > am working in the ContentPlaceHolder on a page using a masterpage. I have
> > > tried adding a PlaceHolder tag and putting the FormView control within but
> > > still no luck. I have seen the example for doing this within a web page but
> > > not by calling the ITemplate class within a different .cs file.
> > >
> > > Thank you!
> > > Steve