You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ddlState.DataSource=OSAESql.RunSQL("SELECT state_label as Text, state_name as Value FROM osae_object_type_state ts INNER JOIN osae_object o ON o.object_type_id = ts.object_type_id where object_name = '"+hdnSelectedObjectName.Text+"'");;
229
+
ddlState.DataSource=OSAESql.RunSQL("SELECT state_label as Text, state_name as Value FROM osae_object_type_state ts INNER JOIN osae_object o ON o.object_type_id = ts.object_type_id where object_name = '"+hdnSelectedObjectName.Text.Replace("'","''")+"'");;
230
230
ddlState.DataBind();
231
231
if(ddlState.Items.Count==0)
232
232
divState.Visible=false;
233
233
else
234
234
divState.Visible=true;
235
-
236
235
237
-
ddlMethod.DataSource=OSAESql.RunSQL("SELECT method_label as Text, method_name as Value FROM osae_object_type_method ts INNER JOIN osae_object o ON o.object_type_id = ts.object_type_id where object_name = '"+hdnSelectedObjectName.Text+"'");;
236
+
237
+
ddlMethod.DataSource=OSAESql.RunSQL("SELECT method_label as Text, method_name as Value FROM osae_object_type_method ts INNER JOIN osae_object o ON o.object_type_id = ts.object_type_id where object_name = '"+hdnSelectedObjectName.Text.Replace("'","''")+"'");;
ddlEvent.DataSource=OSAESql.RunSQL("SELECT event_label as Text, event_name as Value FROM osae_object_type_event ts INNER JOIN osae_object o ON o.object_type_id = ts.object_type_id where object_name = '"+hdnSelectedObjectName.Text+"'");;
245
+
ddlEvent.DataSource=OSAESql.RunSQL("SELECT event_label as Text, event_name as Value FROM osae_object_type_event ts INNER JOIN osae_object o ON o.object_type_id = ts.object_type_id where object_name = '"+hdnSelectedObjectName.Text.Replace("'","''")+"'");;
246
246
ddlEvent.DataBind();
247
247
if(ddlEvent.Items.Count==0)
248
248
divEvent.Visible=false;
@@ -269,7 +269,7 @@ private void loadDDLs()
269
269
270
270
privatevoidloadProperties()
271
271
{
272
-
gvProperties.DataSource=OSAESql.RunSQL("SELECT property_name, property_value, property_datatype, object_property_id, last_updated FROM osae_v_object_property where object_name='"+hdnSelectedObjectName.Text+"'");
272
+
gvProperties.DataSource=OSAESql.RunSQL("SELECT property_name, property_value, property_datatype, object_property_id, last_updated FROM osae_v_object_property where object_name='"+hdnSelectedObjectName.Text.Replace("'","''")+"'");
0 commit comments