FormView Custom Binding help

Discussion in 'ASP .Net Web Controls' started by odeddror, Sep 7, 2010.

  1. odeddror

    odeddror Guest

    Hi there,

    I'm using VWD 2010 ASP.NET 4.0 and SQL Server 2008
    Also I have login page with the ASP.NET configuration

    one of my page has FormView with Update feature

    Evryting works fine user login go to my FormView page and update the record.

    Now I created a simple function

    Protected Function GetUserName() As String
    Return User.Identity.Name
    End Function

    and one of my coloumn call EditedBy

    I replaced the Bind("EditedBy") field binding with

    Custom binding GetUserName()

    When user update it show the current user login name on the screen
    But it won't show in the table itself (it show null value when i do select
    statement)

    I used to do this with ASP.NET 2.0 with no problem?

    How do I fix that?

    Thanks,
    Oded Dror
     
    odeddror, Sep 7, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QXNo?=

    Binding custom object to formview

    =?Utf-8?B?QXNo?=, Feb 19, 2007, in forum: ASP .Net
    Replies:
    8
    Views:
    611
    =?Utf-8?B?QXNo?=
    Feb 20, 2007
  2. Chris

    Formview within Formview

    Chris, May 19, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    532
    Chris
    May 19, 2007
  3. JcFx
    Replies:
    0
    Views:
    279
  4. David Thielen

    FormView/Repeater/ Eval(FormView data)

    David Thielen, Jun 16, 2006, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    646
    David Thielen
    Jun 16, 2006
  5. Sam
    Replies:
    0
    Views:
    198
Loading...

Share This Page