This topic is locked
[SOLVED]

 Conditinally landing Page

12/28/2017 4:27:44 PM
ASPRunner.NET General questions
Akmedlab author

I need to goto page setup for frist time to access the System after Login, or goto Dashboard Page, anyone can help how to do that?

A
Arkie 12/28/2017

Events ->

Login Page ->

after successful login ->

add an action ( + sign and the top) and choose Redirect to another page

Akmedlab author 12/29/2017



Events ->

Login Page ->

after successful login ->

add an action ( + sign and the top) and choose Redirect to another page


Thanks, but I need but If Statment like

If (Select count(*) From...) = 0

Redirect page

ELSE

Akmedlab author 12/29/2017



Events ->

Login Page ->

after successful login ->

add an action ( + sign and the top) and choose Redirect to another page


Thank your Help I reach to this code
int limit = 1;

XVar rs = tDAL.CustomQuery("select count(*) as c from dbo.tabel");

XVar DBdata = CommonFunctions.db_fetch_array(rs);

int count = DBdata["c"];
if (count >= limit)

{

MVCFunctions.HeaderRedirect("Welcome", "");

}

else

{

MVCFunctions.HeaderRedirect("page0", "add");

}