Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > FormView Custom Binding help

Reply
Thread Tools

FormView Custom Binding help

 
 
odeddror
Guest
Posts: n/a
 
      09-07-2010
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

 
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
Formview within Formview Chris ASP .Net 0 05-19-2007 04:12 PM
Binding custom object to formview =?Utf-8?B?QXNo?= ASP .Net 8 02-20-2007 05:55 PM
Formview (EditView) Money Data Type Binding problem. Help.... Sam ASP .Net Web Controls 0 06-16-2006 11:32 PM
FormView/Repeater/ Eval(FormView data) David Thielen ASP .Net Web Controls 2 06-16-2006 07:56 PM
Complex data binding question, binding child objects of a custom collection. JcFx ASP .Net Datagrid Control 0 06-01-2005 04:01 PM



Advertisments