Eugene 6/29/2007 | |
Please, advise what Cases("cUSER") stands for? |
T
|
thecomputerguy author 6/30/2007 |
Please, advise what Cases("cUSER") stands for? What would you like to get from this event?
|
Eugene 6/30/2007 | |
you can use next code in BeforeEdit event for table "Cases": |
T
|
thecomputerguy author 7/1/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 [codebox]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[/codebox] |
T
|
thecomputerguy author 4/14/2009 |
I have Version 4 for ASPRunner.net and wanted to add the user logged in tot he sustem to be saved during the UPDATE and ADD event, |
Eugene 4/15/2009 | |
I have Version 4 for ASPRunner.net e.Command.Parameters("@LoginName").Value = (CType(System.Web.HttpContext.Current.Session("User"), UserClass)).UserName when i use that i get this error Compiler Error Message: BC30456: 'Command' is not a member of 'System.Web.UI.WebControls.ObjectDataSourceMethodEventArgs'.
|
T
|
thecomputerguy author 4/15/2009 |
try to use next code: e.InputParameters("@LoginName").Value = (CType(System.Web.HttpContext.Current.Session("User"), UserClass)).UserName
|
Eugene 4/16/2009 | |
I'm sorry, I've made a mistake. |
T
|
thecomputerguy author 4/17/2009 |
I'm sorry, I've made a mistake. The right code should be: e.InputParameters("LoginName").Value = (CType(System.Web.HttpContext.Current.Session("User"), UserClass)).UserName without "@" Please, make sure that there is parameter LoginName in updateparameters/inserteparameters
|
Sergey Kornilov 4/18/2009 | |
You can have better luck asking this in PHPRunner forum. |