|
Eugene 3/18/2008 |
For this purpose you can use Before registration events: |
|
skemp author 3/18/2008 |
For this purpose you can use Before registration events: with the following code: string id = ""; ConnectionStringSettings cts = ConfigurationManager.ConnectionStrings["ConnectionString"]; SqlDataSource sds = new SqlDataSource(cts.ProviderName, cts.ConnectionString, "select max(id) as id from users"); try { sds.DataSourceMode = SqlDataSourceMode.DataReader; System.Data.Common.DbDataReader dbDr = (System.Data.Common.DbDataReader)sds.Select(System.Web.UI.DataSourceSelectArgume nts.Empty); if( dbDr.Read() ) { id = dbDr["id"].ToString(); } dbDr.Dispose(); } finally { sds.Dispose(); } Response.Redirect("users_view.aspx?id="+id) |
|
skemp author 3/18/2008 |
For this purpose you can use Before registration events: with the following code: string id = ""; ConnectionStringSettings cts = ConfigurationManager.ConnectionStrings["ConnectionString"]; SqlDataSource sds = new SqlDataSource(cts.ProviderName, cts.ConnectionString, "select max(id) as id from users"); try { sds.DataSourceMode = SqlDataSourceMode.DataReader; System.Data.Common.DbDataReader dbDr = (System.Data.Common.DbDataReader)sds.Select(System.Web.UI.DataSourceSelectArgume nts.Empty); if( dbDr.Read() ) { id = dbDr["id"].ToString(); } dbDr.Dispose(); } finally { sds.Dispose(); } Response.Redirect("users_view.aspx?id="+id)
|
|
Eugene 3/20/2008 |
This code doesn't depend on user's login. |
|
skemp author 3/20/2008 |
This code doesn't depend on user's login. What product version do you use? ASPRunnerPro, PHPRunner or ASPRunner.NET?
|
|
Eugene 3/21/2008 |
This code is written for ASPRunner.NET. |