473,387 Members | 3,801 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,387 software developers and data experts.

Page to Create New Record/FormView

One thing I've spent a lot of time doing is creating a page where the user
enters data for a new database record. I need to layout all the controls,
implement any validation controls, and handle a submit button.

For my current project, I'd like to be more efficient. So I'm playing with
the FormView a little. I'm able to display a record. And if I select the
Edit template in the designer, I can see edit boxes for each field, but I
haven't figured out how to use this control to enter a new record at
runtime.

Any tips? And I assume validation must still be done manually?

Thanks!

Jonathan

Aug 14 '08 #1
1 1072
I found the DefaultMode property. Looks like that's the answer. And any
validation must be done manually.

Jonathan

"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:OI*************@TK2MSFTNGP06.phx.gbl...
One thing I've spent a lot of time doing is creating a page where the user
enters data for a new database record. I need to layout all the controls,
implement any validation controls, and handle a submit button.

For my current project, I'd like to be more efficient. So I'm playing with
the FormView a little. I'm able to display a record. And if I select the
Edit template in the designer, I can see edit boxes for each field, but I
haven't figured out how to use this control to enter a new record at
runtime.

Any tips? And I assume validation must still be done manually?

Thanks!

Jonathan
Aug 14 '08 #2

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

Similar topics

0
by: Jawahar | last post by:
All, I have a form view that allows edit (updates) and Inserts (Add a new detail row) . THe formview is populated via a SqlDatasource that is fitered by value that is passed to the SqlDatasource...
8
by: jenileo | last post by:
Hello! I'm fairly new to asp.net and I am struggling with getting my form to post to the database and transfer the user to a new page. I am using the FormView control. After the user completes...
2
by: Dabbler | last post by:
What's the best way to return to GridView after editing a detail record in a FormView so the GridView shows the page with the edited record on it? I'm using GridView with standard...
0
by: Islamegy® | last post by:
After inserting a new Record in FormView it switch to the old Page not the last inserted page.. I need to position it on the last inserted row.. How could i do so?? thanx
0
by: davidgreen24 | last post by:
Suppose I have a SQLDataSource object that returns 20 rows. I have a FormView object bound to this control. Now when I click a hyperlink (with querystring param called productID) I want the row...
1
by: Chris | last post by:
I have a treeview control, which I use to select a row in a table which will be used to populate a formview. Depending on what node is selected in the treeview I want the formview to be either in...
3
by: sudhashekhar30 | last post by:
hi all i am using formview control(asp.net 2.0) 1rst time. don't know much about it. i want to display record in it from different tables at different time. like 1rst time form view is showing...
1
by: dan | last post by:
Hi, I think I need a gridview, formview, another gridview, and another formview on a single page. There is a parent-child relationship between the first gridview and the formview and then...
2
by: pankajsingh5k | last post by:
Dear All, Please help me... I had read an article to lazy load a tab in a tabcontainer using an update panel on http://mattberseth.com/blog/2007/07/how_to_lazyload_tabpanels_with.html ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.