Code behind option in page properties
Hi
What is the 'Code behind type' option for in the page properties? Is there an example of how to use this option?
Thanks
Regards
Hi John,
Create a class which inherits from System.Web.UI.Page and use its type as a code behind of your page. It is similar like putting the code in the master page.
namespace Telerik.Sitefinity.Samples1
public class PageBaseCustom : System.Web.UI.Page
protected override void OnLoad(EventArgs e)
base.OnLoad(e);
Label lbl = new Label();
lbl.Text = "hello";
Controls.Add(lbl);
Kind regards,
Ivan Dimitrov
the Telerik team
Can you please, Elobrate more and how can redirect from page to another by using these.
Ishtiyaq Mohammed
What path I can place /hhh/sss.cs?
Hello Ishtiyaq,
You can put the file in SitefinityWebApp or inside a custom class library and make needed references between the project and class library.
Regards,
Ivan Dimitrov
the Telerik team