dotnetnuke - Redirect to another control DNN -


in page_load event of custom dnn module retrieve settings have stored using following.

 if (((string)settings["username"] != null) && ((string)settings["username"] != ""))   username = "";  {    username = (string)settings["username"]; if (((string)settings["password"] != null) && ((string)settings["password"] != "")) {   password = (string)settings["password"]; } if (((string)settings["baseserviceurl"] != null) && ((string)settings["baseserviceurl"] != "")) {   baseserviceurl = (string)settings["baseserviceurl"]; } baseserviceurl = ""; 

now question how redirect module settings(called settings.ascx) control if username, password or baseserviceurl null.

i'm sure it's not simple response.redirect('settings.ascx');

my aim replace username = "";

with snippet similar response.redirect('settings.ascx');

please help

if want load different ascx file registered in dnn (registered in module definition, via manifest file) calling either editurl method, or navigateurl method in dnn.

editurl("settings") settings controlkey defined in module definition.

edit url available off of portalmodulebase, assuming controls inherit pmb.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -