473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

create buttons manually instead of AutoGeneratexxxButton ?

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.
Mar 29 '06 #1
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.

Mar 29 '06 #2

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.

Mar 29 '06 #3
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.

Mar 29 '06 #4
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.

Mar 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
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...
4
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...
2
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...
5
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,
2
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...
6
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...
6
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...
15
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...
4
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.