Link to home
Start Free TrialLog in
Avatar of dprasad
dprasad

asked on

} expected

Compiler Error Message: CS1513: } expected

Source Error:

Line 62:              
Line 63:      
Line 64:          void addcard1 (Object Sender, EventArgs e) {              <-- in red
Line 65:          
Line 66:          public string customerid;


ASPX source

<%@ Page Language="C#" EnableViewState="false" Debug="true" %>


<script runat="server">
   
   
    public string result ="";
      
         void Page_Load(Object sender, EventArgs e) {

             // Obtain categoryId from QueryString

               string destination;
               string customerid;
               


               
            customerid = Session["customerid"].ToString();
                  
                       if (customerid != null) {
                  
                          destination="MyAccount";
                         Session["destination"] = destination;
                  
                         Response.Redirect("login.aspx");
                           }
                          
                      else {
                  
                                  int cust = Convert.ToInt32(Session["available"]);
                                  
             IBuySpy.CustomersDB1 customerprofile = new IBuySpy.CustomersDB1();

              MyList.DataSource = customerprofile.GetUsers(cust);
              MyList.DataBind();
             
              IBuySpy.OrdersDB1 orderHistory = new IBuySpy.OrdersDB1();
             
                    MyList2.DataSource = orderHistory.GetCustomerOrders(cust);
                    MyList2.DataBind();
                               }  
                  
         }
             
     
         void addcard1 (Object Sender, EventArgs e) {
         
         public string customerid;
         customerid = Convert.ToInt32(Session["customerid"]);
         IBuySpy.CustomersDB1 addcard = new IBuySpy.CustomersDB1();
         addcard.addcc(c1.Text, customerid);
         
         Response.Redirect("MyAccount.aspx");
         
              }
         }

</script>
ASKER CERTIFIED SOLUTION
Avatar of shovavnik
shovavnik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial