You are hereForums & Blogs > Forums
Register   |  Log In
 Forum
Minimise
 
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 22:29
 

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
Minimise

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

 


Dynamisys is based near Swindon, Wiltshire, in the South West, and works with customers located throughout the UK. or telephone us on (+44) 1793 731225.

Learn more...
Next page(s)...
Blogs

This page
Forums

Previous Page(s)...