Advertisement
Guest User

asd

a guest
Jun 29th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. HTTP/1.1 200 OK Cache-Control: private Content-Type: application/octet-stream Server: Microsoft-IIS/7.0 Content-Disposition: attachment; filename=payment.aspx.cs X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET Date: Wed, 29 Jun 2016 13:35:08 GMT Content-Length: 2877 using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Mwri.Workshop.VulnApp.BusinessObjects; using Mwri.Workshop.VulnApp.DataAccess; public partial class payment : BasePage { protected void Page_Load(object sender, EventArgs e) { base.Authenticate(); rptCards.ItemDataBound += new RepeaterItemEventHandler(rptCards_ItemDataBound); rptCards.DataSource = CardDetail.GetList(base.CurrentUser.ID); rptCards.DataBind(); // display the card error message if (Session["carderror"] != null) { pnlError.Visible = true; Session.Remove("carderror"); } } void rptCards_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { CardDetail detail = (CardDetail)e.Item.DataItem; Literal lblRadioButton = (Literal)e.Item.FindControl("lblRadioButton"); Image imgCardType = (Image)e.Item.FindControl("imgCardType"); Literal lblCardHolder = (Literal)e.Item.FindControl("lblCardHolder"); Literal lblCardNo = (Literal)e.Item.FindControl("lblCardNo"); Literal lblValidFrom = (Literal)e.Item.FindControl("lblValidFrom"); Literal lblExpiry = (Literal)e.Item.FindControl("lblExpiry"); string ischecked = string.Empty; string message = "Use this card"; if (e.Item.ItemIndex == 0) { ischecked = "CHECKED"; message += " (Default)"; } lblRadioButton.Text = string.Format("<input type=\"radio\" name=\"cardID\" value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement