|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Creating Dynamic FormView TemplatesIs 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
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 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 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
Failed to load viewstate
Automatic <%@Register of Web User Controls in a Project? Disabling certain url's in a menu? Using hyperlink control for downloading Listbox Flicker detailsView DeleteCommand "Unable to open the physical file" error html controls with same ID TableCell: BackColor Property But No BackGround Property? How do I create a Drop Down List with Hyperlinks as List Items in ASP.NET |
|||||||||||||||||||||||