Sign in
|
Join
|
Help
Search
.NET Hore....
simple beginner .NET geek
See also:
Other Geeks@INDC
Home
Contact
RSS
Atom
Comments RSS
Recent Posts
So, ATLAS will be dead soon....
Countdown to SNASTI 2006
Finally, My own original ATLAS powered site.....
Web 2.0 seminar
Let's Learn ATLAS !!
Tags
ASP .NET
Misc.
SQL Server
VB .NET
Visi Misi
Navigation
Home
Blogs
Forums
Photos
Downloads
Dot NET Resources
Official site of ASP.NET
World of ASP .NET
My own rings
My own sites
Where I work
Just Free books !!
Coretan Sederhana
Archives
September 2006 (1)
August 2006 (3)
June 2006 (5)
May 2006 (7)
April 2006 (6)
March 2006 (21)
February 2006 (18)
January 2006 (11)
December 2005 (3)
June 2005 (1)
May 2005 (7)
April 2005 (7)
ASP .NET 2.0 Simple Trick ( II )
How to determine amount of record, thus formview will change its mode into insert mode if there is no record, and change it back to update mode if there is some records detected :
Put it in sub
ItemCreated
:
If
FormView1.DataItemCount = 0
Then
FormView1.ChangeMode(FormViewMode.Insert)
Else
FormView1.ChangeMode(FormViewMode.Edit)
End
If
Share this post:
|
|
|
|
Posted:
Feb 16 2006, 10:02 PM
by
soetam
| with
1 comment(s)
Filed under:
ASP .NET
Comments
soetam
said:
This doesn't work. It will always choose insert mode even if there is a record.
#
April 7, 2006 12:57 PM