I need to move the edit/insert/delete command buttons to a FooterTemplate in
DetailsView so I can add another button alongside them. Can anyone direct me
to sample code than indicates the event handler code for a CommandField (as
these are not available in the FooterTemplate)
Thanks much. 4 1353
You can add Buttons or LinkButtons in the FooterTemplate whose CommandName
properties are set to any of "Delete", "New", "Update", "Cancel" and they
will trigger the methods that you specified for OnItemDeleted,
OnItemInserted, OnItemUpdated, OnItemCommand respectively (as if you had used
a CommandFieldButon that generated any or all of those buttons)
--
HTH,
Phillip Williams http://www.societopia.net http://www.webswapp.com
"Dabbler" wrote: I need to move the edit/insert/delete command buttons to a FooterTemplate in DetailsView so I can add another button alongside them. Can anyone direct me to sample code than indicates the event handler code for a CommandField (as these are not available in the FooterTemplate)
Thanks much.
Thanks Phillip, that's what I was missing. When I use the AutoGenerate..
attribute the methods are created AutoMagically, I don't specify OnCommand
properties. Do I need to specify my own methods and is there a sample
somewhere of what these default methods contain?
Thanks again.
"Phillip Williams" wrote: You can add Buttons or LinkButtons in the FooterTemplate whose CommandName properties are set to any of "Delete", "New", "Update", "Cancel" and they will trigger the methods that you specified for OnItemDeleted, OnItemInserted, OnItemUpdated, OnItemCommand respectively (as if you had used a CommandFieldButon that generated any or all of those buttons)
-- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"Dabbler" wrote:
I need to move the edit/insert/delete command buttons to a FooterTemplate in DetailsView so I can add another button alongside them. Can anyone direct me to sample code than indicates the event handler code for a CommandField (as these are not available in the FooterTemplate)
Thanks much. http://www.webswapp.com/codesamples/...s/default.aspx
This FormView demo is using the LinkButtons and OnItemCommand property of
the FormView.
--
HTH,
Phillip Williams http://www.societopia.net http://www.webswapp.com
"Dabbler" wrote: Thanks Phillip, that's what I was missing. When I use the AutoGenerate.. attribute the methods are created AutoMagically, I don't specify OnCommand properties. Do I need to specify my own methods and is there a sample somewhere of what these default methods contain?
Thanks again.
"Phillip Williams" wrote:
You can add Buttons or LinkButtons in the FooterTemplate whose CommandName properties are set to any of "Delete", "New", "Update", "Cancel" and they will trigger the methods that you specified for OnItemDeleted, OnItemInserted, OnItemUpdated, OnItemCommand respectively (as if you had used a CommandFieldButon that generated any or all of those buttons)
-- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"Dabbler" wrote:
I need to move the edit/insert/delete command buttons to a FooterTemplate in DetailsView so I can add another button alongside them. Can anyone direct me to sample code than indicates the event handler code for a CommandField (as these are not available in the FooterTemplate)
Thanks much.
Thanks!
"Phillip Williams" wrote: http://www.webswapp.com/codesamples/...s/default.aspx This FormView demo is using the LinkButtons and OnItemCommand property of the FormView. -- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"Dabbler" wrote:
Thanks Phillip, that's what I was missing. When I use the AutoGenerate.. attribute the methods are created AutoMagically, I don't specify OnCommand properties. Do I need to specify my own methods and is there a sample somewhere of what these default methods contain?
Thanks again.
"Phillip Williams" wrote:
You can add Buttons or LinkButtons in the FooterTemplate whose CommandName properties are set to any of "Delete", "New", "Update", "Cancel" and they will trigger the methods that you specified for OnItemDeleted, OnItemInserted, OnItemUpdated, OnItemCommand respectively (as if you had used a CommandFieldButon that generated any or all of those buttons)
-- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"Dabbler" wrote:
> I need to move the edit/insert/delete command buttons to a FooterTemplate in > DetailsView so I can add another button alongside them. Can anyone direct me > to sample code than indicates the event handler code for a CommandField (as > these are not available in the FooterTemplate) > > Thanks much.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jonah Olsson |
last post by:
Hello guys,
I have an application which is built upon several user controls. That is, I
have a default template (default.aspx) that I load a user control into
(using placeholders in the...
|
by: Matt MacDonald |
last post by:
Hi everyone,
I'm have a table in my aspx page that has 1 row which will contain 0 or
more cells. Each cell will contain a link button. My code is something
like this:
Dim lb As New...
|
by: James P. |
last post by:
Help,
I need to display radio buttons on a form. The data is from SQL
table: each row in each table is displayed as a radio button. I have
multiple SQL tables so I understand I need to put...
|
by: Wonder |
last post by:
How can I create or use the msgobx to show a message without a default
button. The user has explicity to click on the button, so the msgbox closes
it.
Thanks,
|
by: ghadley_00 |
last post by:
Hi,
I have a database with a main table and a lookup table of customers,
and reports for each of the customers listing each transaction they
have listed.
I have a form that has buttons for...
|
by: Totto |
last post by:
Hi,
Anyone know the best solution to dynamically add buttons to a asp 2.0 page
using data from Sql server?
Are there any contols suitable for this or is it best to iterate the dataset
and...
|
by: =?Utf-8?B?L2Rldi9udWxs?= |
last post by:
Hello,
i am using visual studio 2003 enterprise architect version. I am making
apps for the .Net framework 1.1. While testing an interface, i discovered
something strange.
In this application...
|
by: lxyone |
last post by:
Using a flat file containing table names, fields, values whats the
best way of creating html pages?
I want control over the html pages ie
1. layout
2. what data to show
3. what controls to...
|
by: John Straumann |
last post by:
Hello all:
Most of my development for websites has been on test VPC images where VS is
installed on the server image. I now have a setup where I have a test server
joined to my domain, and a...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |