protected void btnSubmit_Click(object sender, EventArgs e)
		{
			if (!string.IsNullOrEmpty(tbText.Text) && tbText.Text.Trim() != "") {

				var c = new Comment() {ModelID = ModelID, UnitID = UnitID, UserID = Global.LoggedUserID.Value, Time = DateTime.UtcNow, Text = tbText.Text};
				Global.Db.Comments.InsertOnSubmit(c);
				Global.Db.SubmitChanges();

				var evType = EventType.UnitCommented;
				if (ModelID != null) evType = EventType.ModelCommented;
				Global.AddEvent(evType, c.CommentID, UnitID, ModelID, c.Text);
				Global.Db.SubmitChanges();


				tbText.Text = "";
				Repeater1.DataBind();
			}
		}
 partial void DeleteComment(Comment instance);
 partial void UpdateComment(Comment instance);
 partial void InsertComment(Comment instance);
		private void detach_Comments(Comment entity)
		{
			this.SendPropertyChanging();
			entity.Model = null;
		}
		private void attach_Comments(Comment entity)
		{
			this.SendPropertyChanging();
			entity.Model = this;
		}