This topic is locked

Registration Post back/Summary page

3/18/2008 7:19:25 AM
ASPRunner.NET General questions
skemp author

Hi,
Can someone please tell me how to create a summary page that reflects entries that the user entered from the Registration page. I have users that register for membership and I would like for them to see the values they entered and have an opportunity to edit their entries before it actually goes into the database.
Any help with this is greatly appreciated,
Sheryl

Eugene 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)

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)


Thank you very much. Question... does this code presume that the user is logged in? I removed the security from it that requires a login. Will this make a difference?

Eugene 3/20/2008

This code doesn't depend on user's login.

What product version do you use? ASPRunnerPro, PHPRunner or ASPRunner.NET?

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?


Hi,
I am using ASPRunnerpro 5.1

Eugene 3/21/2008

This code is written for ASPRunner.NET.

You can ask your questions about ASPRunnerPro here: http://www.asprunner.com/forums/index.php?showforum=2