protected void AddProjectSubmit_Click(object sender, EventArgs e) { Guid ProjectId; ProjectId = Guid.NewGuid(); IdProjectId.Text = ProjectId.ToString(); IdProjectName.Text = TextBoxProjectName.Text; IdProjectCreator.Text = UserName; IdProjectCreatedAt.Text = DateTime.Now.ToString(); IdProjectModifier.Text = UserName; IdProjectModifierAt.Text = DateTime.Now.ToString(); ELProject obj = new ELProject(); obj.Id = ProjectId; obj.Name = TextBoxProjectName.Text; obj.Creator = Id; obj.CreatedAt = DateTime.Now; obj.Modifier = Id; obj.ModifiedAt = obj.CreatedAt; DLProject dLProject = new DLProject(); dLProject.AddProject(obj, ObjConetion.connectionstring); ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert( '" + TextBoxProjectName.Text + " ' );window.location ='ProjectViewPage.aspx';", true); }