User Profile

Collapse

Profile Sidebar

Collapse
guoyuanliu
guoyuanliu
Last Activity: Aug 6 '08, 07:08 PM
Joined: Jul 21 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • guoyuanliu
    replied to Membership Provider
    in .NET
    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";
    }
    }
    See more | Go to post

    Leave a comment:


  • guoyuanliu
    started a topic Problem with footer in a master page

    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:...
    See more | Go to post

  • guoyuanliu
    replied to How to use javascript in content page?
    in .NET
    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 charm
    See more | Go to post

    Leave a comment:


  • guoyuanliu
    started a topic Membership Provider
    in .NET

    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...
    See more | Go to post

  • guoyuanliu
    started a topic How to use javascript in content page?
    in .NET

    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...
    See more | Go to post
No activity results to display
Show More
Working...