Prev: 2.0 Create User Wizard!
Next: DateTimePicker
From: ad on 29 Dec 2005 15:28 I try to provide different usr different SiteMapProvider. I write the code below in the Authenticate event of a login controls But I find it is useless, the SiteMapProvider of my SiteMapDataSource is always the default one. Why? Where is the place to chang the SiteMapProvider? myLogin_Authenticate(object sender, AuthenticateEventArgs e) .... if (Authenticated) { SiteMapDataSource sm = (SiteMapDataSource)Master.FindControl("sm"); if (sm != null) { if (sIDKeyin != DMHealth.sAd) { sm.SiteMapProvider="Teacher"; } } }
|
Pages: 1 Prev: 2.0 Create User Wizard! Next: DateTimePicker |