New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Get Settings in view.ascx

Return to previous page

Question:

naresh kumar 6 years ago

Hi Everyone,

I am creating a custom module where I am trying to open a url but I am facing some issue. I am getting values from settings in the view.ascx.cs as follow:

string fb = "www.facebook.com";

if (Settings.Contains("Facebook_Url"))

{

fb = Settings["Facebook_Url"].ToString();

}

I want to get the Facebook_Url value from settings to view.ascx (Front end - design) page if it is possible.


Is anyone knows how to get the value from settings to view.ascx file. Your help will be appreciated.

Thank you !!!

Get Settings in view.ascx

naresh kumar
naresh kumar 6 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member