In my application, in RowDataBound event, I'm setting the event "OnClick" of each cell.

 protected void RoomSchedulingGrid_RowDataBound(object sender, GridViewRowEventArgs e)
    {
       int cellCount = e.Row.Cells.Count;

             for (int j = 1; j < cellCount; j++)
            {
                    string room = e.Row.Cells[j].Text.Substring(5, 5);

                    string onClick = "openPrisma3Program('" + room + "')";

                    e.Row.Cells[j].Attributes["onclick"] = onClick;
            }
    }

this is my javascript OpenPrisma3Program function

function openPrisma3Program(room) {
window.open("/CBRE-Properties/DynamicPages/Facilities/Process/RoomSchedulingCreate.xui?ROOM=" + room, "_blank", "fullscreen=no");
} 

The OnClick event is being completed as follows openPrisma3Program(' S001') and this value # 39; it is a problem in my other application, which does not recognize it, not identifying the method, causing the entire post process. Does anyone know how I can fix this?

Thanks.

Related posts

Recent Viewed