Last active
December 14, 2015 23:19
Revisions
-
JasonOffutt revised this gist
Mar 14, 2013 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ protected void btnNext_Click( object sender, EventArgs e ) { var firstTrans = _transactions.First(); lName.Text = person.FullName; lTotal.Text = _transactions.Sum( t => t.Amount ).ToString("C"); lCardType.Text = firstTrans.CardType; lLastFour.Text = firstTrans.CardNumber.Substring( firstTrans.CardNumber.length - 4 ); rptGifts.DataSource = _transactions; rptGifts.DataBind(); pnlDetails.Visible = false; pnlConfirmation.Visible = true; -
JasonOffutt revised this gist
Mar 14, 2013 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ <ul> </HeaderTemplate> <ItemTemplate> <li><%# Eval("Amount").ToString("C") %> to the <%# Eval("Fund") %>.</li> </ItemTemplate> <FooterTemplate> </ul> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ protected void btnNext_Click( object sender, EventArgs e ) { var firstTrans = transactions.First(); lName.Text = person.FullName; lTotal.Text = transactions.Sum( t => t.Amount ).ToString("C"); lCardType.Text = firstTrans.CardType; lLastFour.Text = firstTrans.CardNumber.Substring( firstTrans.CardNumber.length - 4 ); rptGifts.DataSource = transactions; -
JasonOffutt created this gist
Mar 14, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <h3 class="header-text" >Confirm your Contribution: </h3> <p><b><asp:Literal ID="lName" runat="server" /></b>, thank you for your generosity! You are about to give a gift totalling <b><asp:Literal ID="lTotal" runat="server"/></b> to the following funds:</p> <asp:Repeater ID="rptGifts" runat="server"> <HeaderTemplate> <ul> </HeaderTemplate> <ItemTemplate> <li><%# Eval("Amount") %> to the <%# Eval("Fund") %>.</li> </ItemTemplate> <FooterTemplate> </ul> </FooterTemplate> </asp:Repeater> <p>Your gift will be paid using your <b><asp:Literal ID="lCardType" runat="server"/></b> credit card ending in <b><asp:Literal ID="lLastFour" runat="server"/></b>.</p> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ protected void btnNext_Click( object sender, EventArgs e ) { var firstTrans = transactions.First(); lName.Text = person.FullName; lTotal.Text = transactions.Sum( t => t.Amount ); lCardType.Text = firstTrans.CardType; lLastFour.Text = firstTrans.CardNumber.Substring( firstTrans.CardNumber.length - 4 ); rptGifts.DataSource = transactions; rptGifts.DataBind(); pnlDetails.Visible = false; pnlConfirmation.Visible = true; }