I am inheriting from an existing page.
I have a page gallery.aspx that inherits from GalleryPage. When gallery.aspx loads, I would like to pass a string to the GalleryPage constructor instead of no parameters.
Since this is the page constructor, it only wants to call the constructor with no parameters. How can I accomplish this.
I am more of a java guy myself so this asp.net stuff is killing me.
public class QContentPage : Page, ICallbackEventHandler
{
private string page;
public QContentPage(string page)
{
this.page = page;
}
}
public class GalleryPage : QContentPage
{
public GalleryPage(): base("test"){}
public GalleryPage(string var): base(var){}
}
I have a page gallery.aspx that inherits from GalleryPage. When gallery.aspx loads, I would like to pass a string to the GalleryPage constructor instead of no parameters.
Since this is the page constructor, it only wants to call the constructor with no parameters. How can I accomplish this.
I am more of a java guy myself so this asp.net stuff is killing me.
public class QContentPage : Page, ICallbackEventHandler
{
private string page;
public QContentPage(string page)
{
this.page = page;
}
}
public class GalleryPage : QContentPage
{
public GalleryPage(): base("test"){}
public GalleryPage(string var): base(var){}
}