Please Post all the bugs here...

Last post 07-17-2008 11:59 AM by learner01. 81 replies.

Sort Posts:

  • Re: How do i post my bug to this thread? Help I have trouble with the categories not updating how many ads are in each category

    03-15-2007, 12:28 PM
    • Loading...
    • tinwistle
    • Joined on 03-15-2007, 8:27 AM
    • Posts 3

    OK,

    What i did.

    I used 1 membership provider for both applications. I'm using SQL 2000 or possibly even a newer version.

    While it had some errors when I originally combined the 2 apps they were mostly related to creating an admin account that would be able to update/access the admin pages from both applications.

    I went through the forums and tried to clean up all of the reported bugs most of the site is starting to work pretty good now.

    So both applications run at the same level and I use 2 different master pages.  they look identical but the content areas have different names for each application.  That is basically what i changed.

    I don't think this ever worked from day one.  How ever I don't know how it updates the database table that hold the catagories totals.  Mine doesn't, it does seem though that it did one time when I first added my first category item but never updated after that.  Since then I changed that category in the databse to show a 0 instead of 1 by physically updating the databse table.

     

    Fred

  • MyProfile does not validate properly

    05-18-2007, 7:31 PM
    • Loading...
    • jroal
    • Joined on 04-12-2007, 10:50 PM
    • Chillicothe, IL
    • Posts 15

    I found a bug with the MyProfile.aspx.vb code.   It failed to validate when I made changes.  I could delete data from any of the fields and hit submit and it would save the blank fields.  You would see the validation failure but only after it actually saved the data.  The fix was to force a validation of the page just before the Page.IsValid check.  Here is my code:

     

    1    
    2    	Protected Sub SaveButton_Click(ByVal sender As Object, ByVal e As EventArgs)
    3            Page.Validate("CreateUserWizardControl")
    4            Page.Validate("ChangeProfile")
    5            If Page.IsValid Then
    6                Profile.FirstName = Server.HtmlEncode(FirstNameTextBox.Text)
    7                Profile.LastName = Server.HtmlEncode(LastNameTextBox.Text)
    8                Profile.PCAId = Server.HtmlEncode(PCAId.Text)
    9    
    10               Dim u As MembershipUser = Membership.GetUser()
    11               u.Email = Server.HtmlEncode(EmailTextBox.Text)
    12               Try
    13                   Membership.UpdateUser(u)
    14                   BackToMyAds()
    15               Catch
    16                   EmailNotValid.Text = "This Email is in use or not allowed."
    17                   EmailNotValid.Visible = True
    18               End Try
    19           End If
    20   	End Sub
    I have added the PCAId for my website so if you need to use this fix for yours, just paste lines 3 and 4 in before the If statement. 
    The Page.Validate function will make sure the validation is checked before allowing the page to be posted.
      
    http://www.jimroal.com/
  • Firefox formatting issues

    05-18-2007, 7:36 PM
    • Loading...
    • jroal
    • Joined on 04-12-2007, 10:50 PM
    • Chillicothe, IL
    • Posts 15

    I noticed that several pages like Register and MyProfile look terrible in Firefox.  I found a fix that seems to work.  Firefox does not seem to understand the <span></span> and <legend></Legend> tags.  I removed these tags and instead used paragraph breaks <p></p>.  This seems to work well.  The pages still look good in IE too.   Here is an example:

     

    1    <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" CodeFile="MyProfile.aspx.vb"
    2    	Inherits="MyProfile_aspx" Title="My Profile" %>
    3    
    4    <%@ Register TagPrefix="uc1" TagName="CategoryDropDown" src="Controls/CategoryDropDown.ascx" %>
    5    <asp:Content ID="MainContent" ContentPlaceHolderID="Main" runat="server">
    6    	<div id="body">
    7    		<div id="col_main_left">
    8    			<div id="user_assistance">
    9    				<a id="content_start"></a>
    10   				<h3>
    11   					Actions</h3>
    12   				<p>
    13   					<a href="MyAds.aspx">back to My Ads</a></p>
    14   				<h3>
    15   					Help and Other Links</h3>
    16   				<p>
    17   					Manage your profile.</p>
    18   			</div>
    19   		</div>
    20   		<div id="col_main_right">
    21   			<h2 class="section">
    22   				My Profile</h2>
    23   			<div class="content_right">
    24   				<fieldset>
    25   					<Strong>First Name:</Strong>
    26   						<asp:TextBox ID="FirstNameTextBox" runat="server" CssClass="user_info"></asp:TextBox>
    27   					<asp:RequiredFieldValidator runat="server" ControlToValidate="FirstNameTextBox" ValidationGroup="ChangeProfile"
    28   						ErrorMessage="First name is required." ToolTip="First name is required." ID="FirstNameRequired"
    29   						Display="Dynamic">
    30   					</asp:RequiredFieldValidator><p>
    31   					<asp:CustomValidator ID="FirstNameRequiredFormat" runat="server" ValidationGroup="CreateUserWizardControl"
    32   						ControlToValidate="FirstNameTextBox" ErrorMessage="First name is required and must be less than 40 characters long and contain apostrophes, spaces, or periods."
    33   						Display="Dynamic" OnServerValidate="FirstNameValidator_ServerValidate" ToolTip="A valid first name is required.">
    34   					</asp:CustomValidator></p>
    35   					<Strong>Last Name:</strong>
    36   						<asp:TextBox ID="LastNameTextBox" runat="server" CssClass="user_info"></asp:TextBox>
    37   					<asp:RequiredFieldValidator runat="server" ControlToValidate="LastNameTextBox" ValidationGroup="ChangeProfile"
    38   						ErrorMessage="Last name is required." ToolTip="Last name is required." ID="LastNameRequired"
    39   						Display="Dynamic">
    40   					</asp:RequiredFieldValidator><p>
    41   					<asp:CustomValidator ID="LastNameRequiredFormat" runat="server" ValidationGroup="CreateUserWizardControl"
    42   						ControlToValidate="LastNameTextBox" ErrorMessage="Last name is required and must be less than 40 characters long and contain apostrophes, spaces, or periods."
    43   						Display="Dynamic" OnServerValidate="LastNameValidator_ServerValidate" ToolTip="A valid last name is required.">
    44   					</asp:CustomValidator></p>
    45   					<strong>Email:</strong>
    46   						<asp:TextBox ID="EmailTextBox" runat="server" CssClass="user_info"></asp:TextBox>
    47   					<asp:RequiredFieldValidator runat="server" ControlToValidate="EmailTextBox" ValidationGroup="ChangeProfile"
    48   						ErrorMessage="Email is required." ToolTip="Email is required." ID="EmailRequired"
    49   						Display="Dynamic">
    50   					</asp:RequiredFieldValidator>
    51   					<asp:RegularExpressionValidator runat="server" ID="EmailRequiredFormat" ControlToValidate="EmailTextBox"
    52   						ValidationGroup="ChangeProfile" ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$"
    53   						ErrorMessage="A valid email is required." ToolTip="A valid email is required."
    54   						Display="dynamic">
    55   					</asp:RegularExpressionValidator>
    56   					<asp:Label ID="EmailNotValid" runat="server" Visible="False" ForeColor="red"></asp:Label>
    57                       <br />
    58                       <strong>PCA Number (optional):</strong>
    59                       <asp:TextBox ID="PCAId" runat="server"></asp:TextBox>
    60                       <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="PCAId"
    61                           Display="Dynamic" ErrorMessage="Invalid PCA ID" ToolTip="Enter Valid PCA number"
    62                           ValidationExpression="\d{10}" ValidationGroup="CreateUserWizardControl"></asp:RegularExpressionValidator><br />
    63   					<p>
    64   					
    65   						<asp:Button ID="SaveButton" runat="server" Text="Save" Width="88px" OnClick="SaveButton_Click" />
    66   						<asp:Button ID="CancelButton" runat="server" Text="Cancel" Width="88px" OnClick="CancelButton_Click"
    67   							CausesValidation="False" />
    68   					</p>
    69   					<h3 class="section">
    70   						Login Information</h3>
    71   					<asp:ChangePassword ID="ChangePasswordControl" runat="server" ContinueButtonText="Return to My Ads"
    72   						ContinueButtonType="Link" ContinueDestinationPageUrl="~/MyAds.aspx" OnChangedPassword="ChangePasswordControl_ChangedPassword"
    73   						LabelStyle-HorizontalAlign="Left">
    74   					</asp:ChangePassword>
    75   				</fieldset>
    76   			</div>
    77   		</div>
    78   	</div>
    79   </asp:Content>
    80   
    
      
    http://www.jimroal.com/
  • Re: Firefox formatting issues

    05-27-2007, 1:11 AM
    • Loading...
    • munkus33
    • Joined on 05-27-2007, 5:04 AM
    • Posts 2

    I struggled with alignment in firefox forever here is what i have come up with  very simple replace your css with this one

     

     

    #title h1 a:link, #title h1 a:visited

    {

    text-decoration: none;

    color: #0000CC;

    }

    a:link, a:visited, #search a:visited, th a:visited

    {

    color: #0000CC;

    }

    #title h1

    {

    color: #0000CC;

    }

    #color_bar

    {

    background: #0000CC;

    }

    h3

    {

    color: #0000CC;

    }

    /*

    COMMON THEME PROPERTIES FOLLOW

    (they contain no information specific to a theme color)

    */

     

    body

    {

    font-family: Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif;

    margin-top: 0px;

    margin-left: 0px;

    background: #D8D5C2 url(images/background_main.jpg) repeat-x top;

    }

    a:hover

    {

    text-decoration: none;

    }

    a:active

    {

    text-decoration: none;

    }

    .none

    {

    display: none;

    }

    #title h1

    {

    font-size: 18px;

    font-weight: bold;

    display: inline;

    }

    .item_list h3, .item_list h4, .item_list h5, .item_list h6

    {

    font-size: 1em;

    font-weight: normal;

    }

    /* begin main layout divs */

    #title

    {

    height: 100px;

    width: 770px;

    padding-top: 17px;

    padding-left: 10px;

    margin-right: 10;

    margin-left: 10;

    margin-bottom: 5px;

    background: url(images/birdzeebeta.gif) no-repeat center top;

    }

    #nav_header

    {

    margin: 0 auto;

    background: #75746E url(images/background_nav_top.gif) repeat-x top;

    line-height: normal;

    width: 780px;

    height: 40px;

    }

    #nav_header ul

    {

    margin: 0;

    padding: 0px 0;

    list-style: none;

    float: right;

    background: url(images/nav_top_filler.gif) repeat-x left top;

    }

    #nav_header li

    {

    float: left;

    background: url(images/nav_top_left.gif) no-repeat left top;

    margin: 0;

    padding: 0;

    }

    #nav_header a

    {

    color: #fff;

    text-decoration: none;

    font-size: 11px;

    font-weight: bold;

    float: left;

    display: block;

    text-decoration: none;

    font-weight: bold;

    margin-bottom: 5px;

    background: url(images/nav_top_right.gif) no-repeat right top;

    padding: 13px 25px 13px 15px;

    }

    #nav_header a span

    {

    border-bottom: #ccc 1px solid;

    padding-bottom: 54px; /* hide the underline in normal state, required for hover effect in IE */

    }

    #nav_header a:hover span

    {

    border-bottom: #c0c0c0 1px solid;

    padding-bottom: 2px;

    }

    #color_bar

    {

    font-size: 10px;

    font-weight: bold;

    width: 760px;

    border-bottom: #ccc 1px solid;

    padding-right: 10px;

    padding-left: 10px;

    margin-right: auto;

    margin-left: auto;

    height: 35px;

    padding-top: 55px;

    background: #0000CC url(images/advertiseyellow.jpg) no-repeat center top;color: #FFFFFF;

     

    }

    #crumbs

    {

    font-size: 10px;

    font-weight: bold;

    color: #FFFFFF;

    height: 26px;

    width: 760px;

    padding-right: 10px;

    padding-left: 10px;

    vertical-align: middle;

    background: #75746E url(images/background_crumbs.jpg) repeat-x top;

    margin: 0px auto 5px;

    }

    #crumbs h2, #crumbs h3

    {

    font-size: 10px;

    display: inline;

    }

    #crumbs_search

    {

    float: left;

    font-size: 12px;

    }

    #whats_new

    {

    float: right;

    font-size: 12px;

    width: 280px;

    text-align: right;

    }

    #crumbs p

    {

    display: inline;

    vertical-align: middle;

    }

    #crumbs .search_box

    {

    margin: 0px;

    padding: 0px;

    height: 15px;

    font-size: 11px;

    width: 170px;

    }

    #crumbs #category_select

    {

    margin: 0px;

    padding: 0px;

    height: 17px;

    font-size: 11px;

    width: 170px;

    }

    #crumbs select

    {

    padding: 0px;

    height: 17px;

    font-size: 11px;

    width: 160px;

    margin-top: 2px;

    }

    #crumbs .submit, #crumbs .go

    {

    margin: 0px;

    padding: 0px;

    height: 20px;

    font-size: 11px;

    margin-top: 0px;

    }

    #crumbs_text

    {

    padding-top: 5px;

    }

    input .submit

    {

    font-size: 11px;

    width: 70px;

    }

    #nav_browse

    {

    float: right;

    }

    #nav_login

    {

    float: left;

    }

    #body

    {

    width: 780px;

    border-bottom-width: 1px;

    border-bottom-style: solid;

    border-bottom-color: #B6B3A6;

    margin-right: auto;

    margin-left: auto;

    margin-bottom: 5px;

    background: #F7F6F2;

    }

    #col_main_left

    {

    width: 198px;

    float: left;

    background: #E1DFCF;

    }

    #col_main_right

    {

    border-left: 3px solid #DFDCCB;

    margin-left: 198px;

    border-right: 1px solid #CAC7B8;

    background: #F7F6F2;

    }

    #content

    {

    width: 739px;

    border-right-width: 1px;

    border-right-style: solid;

    border-right-color: #B6B3A6;

    padding: 20px;

    }

    #content .display_left

    {

    margin-top: -20px;

    }

    #content_header

    {

    font-size: 0.8em;

    color: #0000CC;

    height: 129px;

    width: 177px;

    padding-top: 10px;

    padding-right: 7px;

    padding-left: 10px;

    }

    #content_header ul

    {

    list-style-position: outside;

    margin-top: 10px;

    list-style-image: url(images/ul_bullet.gif);

    }

    #content_header li

    {

    list-style-position: outside;

    margin-left: -17px;

    }

    #content_header h2, #content_header h3

    {

    display: inline;

    font-weight: bold;

    font-size: 1em;

    }

    #featured_item

    {

    height: 200px;

    width: 176px;

    border-top-width: 1px;

    border-right-width: 1px;

    border-bottom-width: 1px;

    border-left-width: 1px;

    border-top-style: solid;

    border-right-style: solid;

    border-bottom-style: solid;

    border-left-style: solid;

    border-top-color: #FFFFFF;

    border-right-color: #A29F93;

    border-bottom-color: #A29F93;

    border-left-color: #FFFFFF;

    text-align: center;

    padding: 10px;

    font-size: 0.8em;

    margin-bottom: 3px;

    margin-right: 0px;

    background: #DCDACE url(images/background_feature.jpg) repeat-x top;

    }

    .display_left #featured_item

    {

    width: 160px;font-size: 1em;

    }

     

    #featured_item h2

    {

    font-size: 1em;

    font-weight: bold;

    display: inline;

    }

    .row1 a:link img, .row2 a:link img, .display_left a:link img, #featured_item a:link img

    {

    border: 1px solid #666;

    }

    .row1 a:visited img, .row2 a:visited img, .display_left a:visited img, #featured_item a:visited img

    {

    border: 1px solid #666;

    }

     

     

    #announcements

    {

    font-size: 0.8em;

    padding: 10px;

    height: 100%;

    background: #F7F6F2;

    }

    #announcements ul

    {

    margin-top: 0px;

    }

    #announcements li

    {

    list-style-position: outside;

    list-style-image: url(images/ul_arrow.gif);

    margin-bottom: 15px;

    margin-left: -24px;

    }

    #user_assistance

    {

    color: #7F4728;

    padding: 10px;

    font-size: 0.8em;

    float: left;

    width: 178px;

    background: #F9F9F8 url(images/background_user_assist.jpg) repeat-x top;

    }

    #user_assistance h2, #user_assistance h3

    {

    color: #0000CC;

    font-size: 1em;

    }

    .post_title

    {

    margin: 0px;

    padding: 0px;

    }

    .post_dollars

    {

    width: 50px;

    }

    #post_cents

    {

    width: 25px;

    }

    .post_url, .post_title, .post_description

    {

    width: 250px;

    }

    .post_description

    {

    height: 90px;

    }

    .section

    {

    padding: 10px;

    height: 17px;

    font-size: 0.8em;

    font-weight: bold;

    border-bottom: 2px solid #E4E2D5;

    margin-bottom: 0px;

    }

    h3.section

    {

    font-size: 1.2em;

    }

    .content_right

    {

    padding: 10px;

    font-size: 0.8em;

    }

    .content_right form, .content_right fieldset

    {

    border: none;

    padding: 0px;

    margin: 0px;

    }

    .content_right legend

    {

    color: #0000CC;

    font-size: 1em;

    font-weight: bold;

    margin: 0px;

    padding: 0px;

    padding-bottom: 5px;

    }

    .content_right td, .category_browse td

    {

    padding-right: 20px;

    }

    .category_browse td h4

    {

    font-size: 1em;

    display: inline;

    }

    .category_browse td h4 a:link, .category_browse td h4 a:visited

    {

    text-decoration: none;

    color: #666666;

    }

    .category_browse td h4 a:hover, .category_browse td h4 a:active

    {

    text-decoration: underline;

    }

    .category_browse td ul a:link, .category_browse td ul a:visited

    {

    text-decoration: none;

    }

    .category_browse td ul a:hover, .category_browse td ul a:active

    {

    text-decoration: underline;

    }

    .category_browse td ul

    {

    list-style-position: outside;

    margin-top: 10px;

    list-style-image: url(images/ul_bullet.gif);

    }

    .category_browse td li, .category_browse td li

    {

    list-style-position: outside;

    margin-left: -17px;

    }

    #search_n_browse

    {

    height: 139px;

    width: 577px;

    padding-bottom: 3px;

    padding-left: 3px;

    float: right;

    }

    #search_n_no_browse

    {

    height: 139px;

    width: 288px;

    padding-bottom: 3px;

    padding-left: 3px;

    float: right;

    background: #E1DFCF;

    }

    #search_n_browse div#search

    {

    float: left;

    background: url(images/background_search.jpg) #d6d3c4 repeat-x;

    }

    #search_n_browse div#browse

    {

    float: right;

    background: url(images/background_browse.jpg) #d2d4bf repeat-x;

    }

    #search a

    {

    font-size: 11px;

    }

    #search legend, #browse legend

    {

    color: #333333;

    font-size: 13px;

    font-weight: bold;

    }

    #search select, #search .search_box, #browse select, #browse ul

    {

    font-size: 11px;

    margin-top: 2px;

    }

    #search select, #search .search_box

    {

    width: 240px;

    }

    #browse select

    {

    width: 190px;

    vertical-align: middle;

    border: none;

    display: inline;

    }

    #search, #browse

    {

    height: 125px;

    width: 265px;

    border-top-width: 1px;

    border-right-width: 1px;

    border-bottom-width: 1px;

    border-left-width: 1px;

    border-top-style: solid;

    border-right-style: solid;

    border-bottom-style: solid;

    border-left-style: solid;

    border-top-color: #FFFFFF;

    border-right-color: #A29F93;

    border-bottom-color: #A29F93;

    border-left-color: #FFFFFF;

    background: repeat-x top;

    padding: 7px 10px 10px;

    }

    #search form, #browse form

    {

    display: inline;

    border: none;

    }

    #search .search_box, #search select

    {

    margin-bottom: 8px;

    }

    /* begin admin panel (similar to search boxes) */

    #admin_panel

    {

    width: 577px;

    padding-bottom: 3px;

    padding-left: 3px;

    float: right;

    font-size: .7em;

    }

    #admin_panel div

    {

    clear: both;

    padding-top: 5px;

    }

    #admin_panel #query span.input_label

    {

    float: left;

    text-align: right;

    width: 70px;

    }

     

    #admin_panel #query input

    {

    width: 170px;

    }

     

     

    #admin_panel #query select

    {

    width: 175px;

    }

    #admin_panel #status span.input_label

    {

    float: left;

    text-align: right;

    width: 100px;

    }

    #admin_panel #status select

    {

    width: 145px;

    }

    #admin_panel #status input

    {

    width: <