Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

FormView Buttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shapper - 29 Sep 2007 03:01 GMT
Hello,

I created a FormView at runtime and implemented Insert, Edit and Item
templates through a Class (Implements ITemplate).

Since all my templates are the same, i.e., there are no differences
between them I just used the same class for all.

Can I do this?

And in my ITemplate I created 3 buttons: Insert, Update, Edit and
Cancel.

How can I make the buttons work with FormView?

And how do I have to manual hide or show the buttons depending on
FormView mode?

Thanks,

Miguel
nothingsoriginalontheinternet@gmail.com - 29 Sep 2007 23:13 GMT
You can use the CommandName property of the buttons to make them
insert, update, edit, and cancel. Just set it to one of those as
strings. You can handle the PreRender event of the buttons to
determine if the mode of the containing FormView should contain each,
and set the Visible property appropriately.

-Mike Placentra II

> Hello,
>
[quoted text clipped - 17 lines]
>
> Miguel

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.