just getting started...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ross M. Greenberg

    just getting started...

    I'm just entering the world of .Net programming. I first experimented with
    a local IIS. My ISP provides ASP.net-2 services. I'm interested in
    starting off with a simple membership-based website that provides access to
    one set of pages to members and one other set to nonmembers. Looks like
    ASP.net is the way to go!

    Although it was easy enough on IIS, I don't know where to start remotely!

    Any pointers? Any scripts? Any Web.config's?

    Thanks!

    Ross


  • Kevin Spencer

    #2
    Re: just getting started...

    Hi Ross,

    You're correct in expecting ASP.Net to provide what you need. What you need
    from ASP.Net is Membership and Role Providers. These are a set of interfaces
    and classes that allow you to implement a wide variety of security models
    for your web app with a fairly simple provider model. You can read all about
    them at the following locations:





    --
    HTH,

    Kevin Spencer
    Microsoft MVP

    Printing Components, Email Components,
    FTP Client Classes, Enhanced Data Controls, much more.
    DSI PrintManager, Miradyne Component Libraries:


    "Ross M. Greenberg" <greenber@bells outh.netNOPAMwr ote in message
    news:eOJZjHiwHH A.1208@TK2MSFTN GP03.phx.gbl...
    I'm just entering the world of .Net programming. I first experimented
    with a local IIS. My ISP provides ASP.net-2 services. I'm interested in
    starting off with a simple membership-based website that provides access
    to one set of pages to members and one other set to nonmembers. Looks
    like ASP.net is the way to go!
    >
    Although it was easy enough on IIS, I don't know where to start remotely!
    >
    Any pointers? Any scripts? Any Web.config's?
    >
    Thanks!
    >
    Ross
    >
    >

    Comment

    • Ross M. Greenberg

      #3
      Re: just getting started...

      "Kevin Spencer" <unclechutney@n othinks.comwrot e in message
      news:eRmg7ZiwHH A.1756@TK2MSFTN GP05.phx.gbl...
      Hi Ross,
      >
      You're correct in expecting ASP.Net to provide what you need. What you
      need from ASP.Net is Membership and Role Providers. These are a set of
      interfaces and classes that allow you to implement a wide variety of
      security models for your web app with a fairly simple provider model. You
      can read all about them at the following locations:
      >


      http://msdn2.microsoft.com/en-us/library/f1kyba5e.aspx

      A very interesting links! I also found the http://ASP.net site to be
      interesting. However, nobody tells me in these links how to create my
      database, remotely, what my physical connection strings should look like.

      For example: if my server is called "FTP.XYZ.co m" and my user ID is "Fred"
      and my password is "Fred2", in my database is to be called "mydatabase " and
      has a table called "members" with two columns, one of which is called
      "username" and the other is called "password", then what should my config
      script/file look like. Although I understand this is ISP dependent, how do
      I create a database with that singular table and it, and is there any decent
      administrative script available anywhere?

      Thanks!

      Ross


      Comment

      • Kevin Spencer

        #4
        Re: just getting started...

        Hi Ross,

        You must have missed the link at the bottom of one of those pages that leads
        to a sample database implementation:

        http://msdn2.microsoft.com/en-us/library/tksy7hd7.aspx and


        Now, it doesn't have to be a SQL Server, but the article shows you how to
        create a database (the schema), and how to write a custom database provider
        that connects with it.

        The general principle is fairly simple, and based upon using an interface,
        or in this case, a derived class which you write, and a static class that
        already exists in the Framework. For example, the static Roles class is the
        "connector" to the Role Provider class. It connects via the web.config entry
        that identifies the specific RoleProvider-derived class being used.

        The static class has a number of static methods that perform the various
        functions of creating and managing roles. It will call the instance methods
        in the RoleProvider-derived class that you implement. All these methods need
        to do is to perform the work of connecting to the type of data source being
        used and do the work. The .Net Framework classes that work with RoleProvider
        use this static class, and your code can too.

        --
        HTH,

        Kevin Spencer
        Microsoft MVP

        Printing Components, Email Components,
        FTP Client Classes, Enhanced Data Controls, much more.
        DSI PrintManager, Miradyne Component Libraries:


        "Ross M. Greenberg" <greenber@bells outh.netNOPAMwr ote in message
        news:u0zB3XkwHH A.736@TK2MSFTNG P06.phx.gbl...
        "Kevin Spencer" <unclechutney@n othinks.comwrot e in message
        news:eRmg7ZiwHH A.1756@TK2MSFTN GP05.phx.gbl...
        >Hi Ross,
        >>
        >You're correct in expecting ASP.Net to provide what you need. What you
        >need from ASP.Net is Membership and Role Providers. These are a set of
        >interfaces and classes that allow you to implement a wide variety of
        >security models for your web app with a fairly simple provider model. You
        >can read all about them at the following locations:
        >>
        >http://msdn2.microsoft.com/en-US/library/aa479032.aspx
        >http://msdn2.microsoft.com/en-us/library/8fw7xh74.aspx
        >http://msdn2.microsoft.com/en-us/library/f1kyba5e.aspx
        >
        >
        A very interesting links! I also found the http://ASP.net site to be
        interesting. However, nobody tells me in these links how to create my
        database, remotely, what my physical connection strings should look like.
        >
        For example: if my server is called "FTP.XYZ.co m" and my user ID is "Fred"
        and my password is "Fred2", in my database is to be called "mydatabase "
        and has a table called "members" with two columns, one of which is called
        "username" and the other is called "password", then what should my config
        script/file look like. Although I understand this is ISP dependent, how
        do I create a database with that singular table and it, and is there any
        decent administrative script available anywhere?
        >
        Thanks!
        >
        Ross
        >
        >

        Comment

        • Ross M. Greenberg

          #5
          Re: just getting started...

          "Kevin Spencer" <unclechutney@n othinks.comwrot e in message
          news:%23zBciNlw HHA.4184@TK2MSF TNGP06.phx.gbl. ..
          Hi Ross,
          >
          You must have missed the link at the bottom of one of those pages that
          leads to a sample database implementation:
          >
          http://msdn2.microsoft.com/en-us/library/tksy7hd7.aspx and

          >
          Now, it doesn't have to be a SQL Server, but the article shows you how to
          create a database (the schema), and how to write a custom database
          provider that connects with it.
          >
          The general principle is fairly simple, and based upon using an interface,
          or in this case, a derived class which you write, and a static class that
          already exists in the Framework. For example, the static Roles class is
          the "connector" to the Role Provider class. It connects via the web.config
          entry that identifies the specific RoleProvider-derived class being used.
          >
          The static class has a number of static methods that perform the various
          functions of creating and managing roles. It will call the instance
          methods in the RoleProvider-derived class that you implement. All these
          methods need to do is to perform the work of connecting to the type of
          data source being used and do the work. The .Net Framework classes that
          work with RoleProvider use this static class, and your code can too.
          >

          I'm going to have to build a MYSQL provider since my ISP charges some absurd
          amount every month for access to SQL Server!
          The Membership stuff is pretty straightforward otherwise!

          Thank you!

          Ross


          Comment

          Working...