Forum
 
ForumForumDiscussions and...Discussions and....Net framework ....Net framework ...HowTo:Get a FormView to display a suggested value in Insert ModeHowTo:Get a FormView to display a suggested value in Insert Mode
Previous Previous
 
Next Next
New Post
 26/02/2009 17:59
 

This code...

Protected Sub SeqTextBox_OnDataBinding(ByVal sender As Object, ByVal e As EventArgs)

CType(sender, TextBox).Text = "999"

End Sub

Called from this addition to the TextBox control...

OnDataBinding="SeqTextBox_OnDataBinding"

In the InsertTemplate.  Will do the trick.  No AddHandler needed, no Handles clause.  Works just the same in C#


Cheers,
- Richard
If this post helped you over a problem, or taught you something new, please login and rate it. Ratings are in the drop down in the top left corner
Previous Previous
 
Next Next
ForumForumDiscussions and...Discussions and....Net framework ....Net framework ...HowTo:Get a FormView to display a suggested value in Insert ModeHowTo:Get a FormView to display a suggested value in Insert Mode

Forum Usage Guidelines

The forums are a place for all to exchange ideas and techniques, and to post and answer questions.  All are welcome to read, registration is required to post. 

If you learn somthing new, discover or acquire a new technique, then please take a moment to register and rate the post that just helped you.  This site does not send spam and it does not release your personal details.  Full details in the site privacy policy.

We have some simple posting guidelines to keep the forums a pleasant and informative environment.

  • No flames, no trolls
  • No profanity, no racism
  • Site management has the final word on approving or removing any thread, post, or comment
  • English language only please

 

Copyright 2002-15 by Dynamisys Ltd