This topic is locked

Fields Blank on Edit

4/18/2007 7:31:02 PM
ASPRunner.NET General questions
R
rob author

Hello,
I have my unique key, timestamp, and a created by field that are set to Edit As = Read Only. For some reason these fields come up blank on the edit.
Thanks!

Eugene 4/20/2007

It should be so, as far you can't edit unique key and timestamp.

R
rob author 4/20/2007

Is this asprunner.net that is doing this? If so, can I comment out the code? If not, do I have to put some code into an event?

Thanks!

Eugene 4/24/2007

Could you please send me your project (including project file, output directory and database backup) on support@xlinesoft.com? I will investigate it on my box.

T
thecomputerguy 7/5/2007

Do you have a FIX for this topic as I too have the same issue with the EDIT of the record. In the ADD my user name shows up on a field that hold the current user that is modifying the record and is a read only filed, but on the EDIT fo that record the user is empty and not been displayed.
Thank you for the response.

Eugene 7/10/2007

You can use next code in BeforeEdit event for table "Cases":
e.Command.Parameters("@cUSER").Value = (CType(System.Web.HttpContext.Current.Session("User"), UserClass)).UserID
Public Shared Function BeforeEdit(Page As System.Web.UI.Page, e As SqlDataSourceCommandEventArgs) As Boolean
'Custom code

'put your custom code here

e.Command.Parameters("@cUSER").Value = (CType(System.Web.HttpContext.Current.Session("User"), UserClass)).UserID
Return True
' return true if you like to proceed with editing this record

' return false in other case

End Function