Author: user user

C# Cannot save data in Access 2007

I cannot save data in access 2007. I tried the following: Add a password to my DB; didn’t work Saved the db as a 2003 file; didn’t work Here is my code: public bool ExecuteUDI(string query) { Command = new OleDbCommand(); Command.Connection = Connection; Command.CommandText = query; Command.CommandType = System.Data.CommandType.Text; try { // Open connection […]

How to reference ‘this’ from a javascript call in a JSF component?

<h:commandLink id=”#{id}” value=”#{value}” action=”#{actionBean.getAction}” onclick=”alert(this);”/> In the previous simplified example, the ‘this’ keyword used in the Javascript function won’t reference the generated A HREF element, but will reference to the global window, because JSF generates the following (simplified) code: <a onclick=”var a=function(){alert(this)};var b=function(){if(typeof jsfcljs == ‘function’){jsfcljs(document.forms[‘mainForm’],’generatedId,action,action’,”);}return false};return (a()==false) ? false : b();” href=”#” id=”generatedId”>text</a> So […]