Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to keep values in fields after ChangeMode to Insert from Edit?

Reply
Thread Tools

How to keep values in fields after ChangeMode to Insert from Edit?

 
 
R Bandeira
Guest
Posts: n/a
 
      09-06-2007
How to keep values in fields after ChangeMode to Insert from Edit? I
am implementing a re-insert type feature, after an edit.

// Change form to insert mode
FormView1.ChangeMode(FormViewMode.Insert);

// Repopulate the form
Label.Text = "12345";
TextBox.Text = "22";

// User then gets to edit form and insert data as a new
record. But controls are losing data (fetched from previous edit
mode).

I cannot set default values to controls after changing mode. The
controls are rendering blank. What is the work around please? Thanks
in advance.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
formview changeMode rodchar ASP .Net 1 12-17-2007 07:10 PM
FormView.ChangeMode and DataBind J055 ASP .Net 5 08-20-2007 02:43 AM
Formview ChangeMode Problem Trev ASP .Net 1 02-08-2007 10:40 PM
Change FormView.ChangeMode to Edit after Insert J055 ASP .Net 1 08-10-2006 05:22 AM



Advertisments