got it !
protected void Page_Load (Objects Sender, EventArguments e)
{
if (User.IsAuthent icated)
{
if (!User.IsInRole ("A") && !User.IsInRole( "B"))
lblMessage.Text ="You are not allowed to access";
}
}
User Profile
Collapse
-
Problem with footer in a master page
I have a .NET master page which have the overall design of header and foote, with the content dynamically change size depends on data retrieved from Database.. The problem is.. when the data grows.. the footer is not showing !
I have set the following CSS rule to the footer's div element
#footer
{
position: relative;
top:250px;
clear: both;
min-height:66px;
height: 66px;
text-align:... -
Aha got it !,
When using content page, ASP.NET cannot render the actual ClientID of the control, that's why when i tried to get a hold on it by using $get("ddl"); , .NET does not properly render it to match the actual client id (the client id of the rendered control have some prefix on it), so just use $get( '<#ddl.ClientID >' );
and it works like a charmLeave a comment:
-
Membership Provider
Hi,
I use custom membership provider and custom role provider to manage users of my application. In web.Config I use Form Authentication and define both providers as my default membership and role providers (I have implemented both providers in different class) now.. In Authorization section of web.config, i specifically state only allow roles = A, B . and i also specify for membership provider the name of the application of this web... -
How to use javascript in content page?
Hi,
I have a problem with calling javascript function that will call web service fin ASP.NET AJAX. This is the description:
When i use one page (.aspx) i place a script manager that reference to .asmx web service reference and write javascript code to call that service on client event. (onchange of a dropdownlist).. it works
but when i do the same thing in a content page with the a master page which also...
No activity results to display
Show More
Leave a comment: