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"].ToSt ring();
if (customerid != null) {
destination="MyAccount";
Session["destination"] = destination;
Response.Redirect("login.a spx");
}
else {
int cust = Convert.ToInt32(Session["a vailable"] );
IBuySpy.CustomersDB1 customerprofile = new IBuySpy.CustomersDB1();
MyList.DataSource = customerprofile.GetUsers(c ust);
MyList.DataBind();
IBuySpy.OrdersDB1 orderHistory = new IBuySpy.OrdersDB1();
MyList2.DataSource = orderHistory.GetCustomerOr ders(cust) ;
MyList2.DataBind();
}
}
void addcard1 (Object Sender, EventArgs e) {
public string customerid;
customerid = Convert.ToInt32(Session["c ustomerid" ]);
IBuySpy.CustomersDB1 addcard = new IBuySpy.CustomersDB1();
addcard.addcc(c1.Text, customerid);
Response.Redirect("MyAccou nt.aspx");
}
}
</script>
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"].ToSt
if (customerid != null) {
destination="MyAccount";
Session["destination"] = destination;
Response.Redirect("login.a
}
else {
int cust = Convert.ToInt32(Session["a
IBuySpy.CustomersDB1 customerprofile = new IBuySpy.CustomersDB1();
MyList.DataSource = customerprofile.GetUsers(c
MyList.DataBind();
IBuySpy.OrdersDB1 orderHistory = new IBuySpy.OrdersDB1();
MyList2.DataSource = orderHistory.GetCustomerOr
MyList2.DataBind();
}
}
void addcard1 (Object Sender, EventArgs e) {
public string customerid;
customerid = Convert.ToInt32(Session["c
IBuySpy.CustomersDB1 addcard = new IBuySpy.CustomersDB1();
addcard.addcc(c1.Text, customerid);
Response.Redirect("MyAccou
}
}
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.