Identified bugs and fixes for the ClubSite Starter kit

Rate It (4)

Last post 07-01-2008 4:10 PM by phoenyx33. 108 replies.

Sort Posts:

  • Re: Identified bugs and fixes for the ClubSite Starter kit

    09-12-2007, 1:05 PM
    • Loading...
    • ta4ka
    • Joined on 09-08-2007, 12:14 PM
    • Posts 17

    I guess the c# code for the same would be:

    Convert.ToInt32("0" + AlbumList2.SelectedValue), i'm trying this now and it seems ok. 

    ----------------------------------------
    http://www.shoutitonline.com/ - Website based on club site starter kit
    Web Orange Design Solutions
    http://www.web2orange.com
    http://www.weborange.com.mk
  • Re: Unable to update Email field

    09-12-2007, 1:32 PM
    • Loading...
    • ta4ka
    • Joined on 09-08-2007, 12:14 PM
    • Posts 17

     The c# code:

    protected void update_Click(object sender, System.EventArgs e) {
            MembershipUser user 
    Membership.GetUser();
            
    DataSetTableAdapters.MemberInfoTableAdapter da = new DataSetTableAdapters.MemberInfoTableAdapter();
            if 
    ((Email.Text !user.Email)) {
                user.Email 
    Email.Text;
                
    Membership.UpdateUser(user);
            
    }
            
    try {
                da.Update(((Guid)(user.ProviderUserKey)), Addr.Text, Phone.Text, fname.Text, lname.Text, ((Guid)(user.ProviderUserKey)))
    ;
                
    ContactStatus.Text "Details have been updated sucessfully.";
                
    ContactStatus.ControlStyle.ForeColor Drawing.Color.Black;
            
    }
            
    catch (Exception ex) {
                ContactStatus.Text 
    ("Error updating contact details: " + ex.Message);
                
    ContactStatus.ControlStyle.ForeColor Drawing.Color.Red;
            
    }
        }

    ----------------------------------------
    http://www.shoutitonline.com/ - Website based on club site starter kit
    Web Orange Design Solutions
    http://www.web2orange.com
    http://www.weborange.com.mk
  • Re: locations_list.aspx bad event wireup

    05-05-2008, 1:24 PM
    • Loading...
    • rrrodz
    • Joined on 04-15-2008, 12:08 AM
    • Posts 5

    I'm getting the following error when using this code:

    Server Error in '/ClubWebSite1' Application.

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    Line 87:             Dim FirstButton As Button
    Line 88:             FirstButton = CType(PageButtons.FindControl("P1"), Button)
    Line 89:             FirstButton.Style("background-color") = "#990000"
    Line 90:             FirstButton.Style("color") = "#FFFFFF"
    Line 91:         End If

    Source File: C:\Documents and Settings\rrodriguez\Personal\Visual Studio 2005\WebSites\ClubWebSite1\News_List.aspx.vb    Line: 89

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       News_List.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\rrodriguez\Personal\Visual Studio 2005\WebSites\ClubWebSite1\News_List.aspx.vb:89
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
    

  • Re: locations_list.aspx bad event wireup

    07-01-2008, 4:10 PM
    • Loading...
    • phoenyx33
    • Joined on 06-25-2008, 9:20 AM
    • Posts 1

    Because there are no pagebuttons until you get more then a page of items, they don't exist.

    Put a 'try...catch...end try' around it that sinks the exception when they aren't there.

Page 8 of 8 (109 items) « First ... < Previous 4 5 6 7 8