admin 2/12/2019 | |
Themes work exactly the same way in PHPRunner and ASPRunner.NET. You need to explain what exactly you tried and what exactly didn't work. |
D
|
DennisB author 2/12/2019 |
Themes work exactly the same way in PHPRunner and ASPRunner.NET. You need to explain what exactly you tried and what exactly didn't work.
|
D
|
DennisB author 2/14/2019 |
I found this link on the PHP forum: Bootstrap Selector I create the tables, copied files, etc. But the code seemed not to work with .net $sql = "SELECT theme AS mytheme FROM theme_chooser WHERE status = 'ACTIVE'"; $rs = CustomQuery($sql); $data = db_fetch_array($rs); $_SESSION["MyCoolTheme"] = $data["mytheme"]; guessing the $ were a problem I tried: sql = "SELECT theme AS mytheme FROM theme_chooser WHERE status = 'ACTIVE'"; rs = CustomQuery(sql); data = db_fetch_array(rs); x_SESSION["MyCoolTheme"] = data["mytheme"]; still no joy I also think I am missing something in the layoutbuilder.cs changes I think this would work and be pretty cool if I figure the .php to .net changes I need to make.
|
T
|
Tim 2/15/2019 |
Hi Dennis, |
D
|
DennisB author 2/15/2019 |
Hi Dennis, I'm not sure I fully understand what you are trying to do, or that I know how to help, but I can take a stab at changing your code to work in ASP.Net. Here is what you had: sql = "SELECT theme AS mytheme FROM theme_chooser WHERE status = 'ACTIVE'"; rs = CustomQuery(sql); data = db_fetch_array(rs); x_SESSION["MyCoolTheme"] = data["mytheme"]; It looks to me like it should be this: string sql = "SELECT theme AS mytheme FROM theme_chooser WHERE status = 'ACTIVE'"; XVar rs = tDAL.CustomQuery(sql); XVar data = CommonFunctions.db_fetch_array(rs); XSession.Session["MyCoolTheme"] = data["mytheme"].ToString(); Hope this helps. Good luck! Tim
|