protected void Page_PreRender(object sender, EventArgs e) { if (hdnSelectedRow.Text != "") { gvScripts.Rows[Int32.Parse(hdnSelectedRow.Text)].Attributes.Remove("onmouseout"); gvScripts.Rows[Int32.Parse(hdnSelectedRow.Text)].Style.Add("background", "lightblue"); txtName.Text = hdnSelectedScriptName.Text; ddlScriptProcessor.SelectedValue = gvScripts.DataKeys[Int32.Parse(hdnSelectedRow.Text)]["script_processor_name"].ToString(); hdnScript.Value = OSAEScriptManager.GetScript(gvScripts.DataKeys[Int32.Parse(hdnSelectedRow.Text)]["script_id"].ToString()); loadLinkage(gvScripts.DataKeys[Int32.Parse(hdnSelectedRow.Text)]["script_id"].ToString()); lblCopyScript.Text = OSAEScriptManager.GetScriptByName(hdnSelectedScriptName.Text); lblExportScript.Text = OSAEScriptManager.ExportScript(hdnSelectedScriptName.Text); } if (hdnSelectedEventScriptRow.Text != "") { gvEventScripts.Rows[Int32.Parse(hdnSelectedEventScriptRow.Text)].Attributes.Remove("onmouseout"); gvEventScripts.Rows[Int32.Parse(hdnSelectedEventScriptRow.Text)].Style.Add("background", "lightblue"); } if (hdnSelectedObjTypeEventScriptRow.Text != "") { gvObjTypeScripts.Rows[Int32.Parse(hdnSelectedObjTypeEventScriptRow.Text)].Attributes.Remove("onmouseout"); gvObjTypeScripts.Rows[Int32.Parse(hdnSelectedObjTypeEventScriptRow.Text)].Style.Add("background", "lightblue"); } }