G
Guest
Hello.
In the good ol'ASP-days I allways handled all request vars within a class. I
want to do the same in ASP.NET. It can be done smart and maybe not so smart -
and I need help for the first part
I've the following:
public class UserSettings
{
System.Web.UI.Page _page;
public UserSettings(System.Web.UI.Page page)
{
this._page = page;
}
public DateTime Calendar1SelectedDate()
{
? this._page.FindControl("Calendar1");
}
}
But as you can see I allready stumpled across the calendarcontrol :-(
Can anybody put me in the right direction or maybe come up with a better
solution, maybe a designpattern?
Kind regards
In the good ol'ASP-days I allways handled all request vars within a class. I
want to do the same in ASP.NET. It can be done smart and maybe not so smart -
and I need help for the first part
I've the following:
public class UserSettings
{
System.Web.UI.Page _page;
public UserSettings(System.Web.UI.Page page)
{
this._page = page;
}
public DateTime Calendar1SelectedDate()
{
? this._page.FindControl("Calendar1");
}
}
But as you can see I allready stumpled across the calendarcontrol :-(
Can anybody put me in the right direction or maybe come up with a better
solution, maybe a designpattern?
Kind regards