Thanks.
There isnt a table called NewClient! It's simply Clients. I changed the coding to reflect this and this is what I have:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using clientManagerTestModel;
public partial class NewClient : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void EntityDataSource1_Inserted(object sender, EntityDataSourceChangedEventArgs e)
{
Client myClients = (Client)e.Entity;
Response.Redirect(string.Format("ManageClient.aspx?Id={0}", myClients.Id.ToString()));
The page loads fine now... however, the UserId is not inserted into the table for Clients under the column UserName.
I am not getting any error other than the expected one for the next page - Manage Clients, not being available.