Click here to Skip to main content
15,902,636 members

Comments by hasithakaru (Top 10 by date)

hasithakaru 12-Jun-16 12:23pm View    
ALGORITHM


CHECKOUT()

STEP 1: Start

STEP 2: FINALISE PRODUCTS

STEP 3: INPUT local_adrs, pin, cntry, cntct_no

STEP 4: IF pin, cntry, cntct_no ARE NOT VERIFIED THEN GOTO STEP 3

STEP 5: IF MODE OF PAYMENT IS CARD THEN DO STEP 6 AND GOTO STEP 11 ELSE GOTO STEP 7

STEP 6: INPUT card_name, cardno, cvc, exp_date, pin

STEP 7: IF MODE OF PAYMENT IS VIA PAYPAL THEN DO STEP 8 AND GOTO STEP 11 ELSE GOTO STEP 9

STEP 8: INPUT paypal_id, paypal_pass

STEP 9: IF MODE OF PAYMENT IS COUPONS THEN GOTO STEP 10

STEP 10: INPUT coupon_no, coupon_name

STEP 11: IF DETAILS NOT VERIFIED THEN GOTO STEP 5

STEP 12: CUNDUCT TRANSACTION

STEP 13: PURCHASE CONFIRMATION EMAIL SEND TO CUTOMER AND ORDER NOTIFICATION EMAIL SENT TO SALES AND ORDER TABLE UPDATED

i HAVE DOUBT IN ADDING FOLLOWINGS ;
• Customer contact details have already been collected, including email address, and are stored in ViewState
• The shopping cart is available and stored in the ViewState
• The sales email address and payment gateway URL are defined in the appSettings
hasithakaru 11-Jun-16 11:56am View    
Ok thanks.WHat alterntive u recommand?
hasithakaru 11-Jun-16 11:51am View    
This is assignment question.So I need to answer for this
hasithakaru 11-Jun-16 11:50am View    
Deleted
protected void Submit(object sender, EventArgs e)
{
string connectionString = ConfigurationManager.ConnectionStrings["CustomerDB"].ConnectionString;
using (SqlCommand cmd = new SqlCommand("SELECT * FROM Customers WHERE CustomerId = '" + txtCustomerId.Text + "'"))
{
using (SqlConnection con = new SqlConnection(connectionString))
{
con.Open();
cmd.Connection = con;
CustomerGridView.DataSource = cmd.ExecuteNonQuery();
CustomerGridView.DataBind();
con.Close();
}
}
}
hasithakaru 11-Jun-16 11:49am View    
What is wrong with the following code? What alternatives would you recommend?