Ejemplo n.º 1
0
 void buttonSubmit_Click(object sender, EventArgs e)
 {
     DDOQuery<DR_Tags> query = new DDOQuery<DR_Tags>();
     query.Object._Name = txtTagName.Text.Trim();
     DR_Tags tag = query.PerformQuery();
     if (tag != null)
     {
         phTagExists.Controls.Add(new LiteralControl("Tag name exists (<a href=\"/tags/view?id=" + tag.ID.ToString() +
             "\">View Tag Details</a>)"));
     }
     else
     {
         tag = new DR_Tags();
         tag._Name = txtTagName.Text;
         tag.SaveChanges();
         WebDirector.Instance.Redirect("/tags/view?id=" + tag.ID.ToString());
     }
 }
Ejemplo n.º 2
0
 void TagViewList_CellDataBinding(HyperLink control, DR_Tags data)
 {
 }
Ejemplo n.º 3
0
 void TagName_CellDataBinding(HyperLink control, DR_Tags dr)
 {
     control.Text = dr._Name;
     control.NavigateUrl = "/tags/view?id=" + dr.ID.ToString();
     CellDataBinding(control, dr);
 }
Ejemplo n.º 4
0
 void tagViewList_CellDataBinding(HyperLink control, DR_Tags data)
 {
     control.NavigateUrl = "/goals/addtag?id=" + goal.ID.ToString() + "&tag=" + data.ID.ToString() + "&confirm=y";
 }
Ejemplo n.º 5
0
 public TagViewMini(DR_Tags tag)
 {
     this.tag = tag;
 }