or


| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| LoadTemplate(); |
| } |
| } |
| protected void LoadTemplate() |
| { |
| int i = 0; |
| DataSet ds = dsTestDB.GetTemplate(Request.QueryString["templateId"], false, out i); |
| if (i > 0) |
| { |
| RadEditor1.Content = StringUtility.GetString(ds.Tables[0].Rows[0]["Template_Content"] as byte[]); |
| } |
| } |

| If e.Item.OwnerTableView.Name = "DetailTB" Then |
| If e.CommandName = RadGrid.EditCommandName Then |
| RadGrid1.MasterTableView.IsItemInserted = False |
| End If |
| End If |