ASP.NET (RSS)

ASP.NET

Calling the postback function of the parent form a child window. (ASP.NET)

I needed a way to refresh a ASP.NET page from a child window, without loosing the current state of server controls. I used the child window to retrieve som values from an ASP page, who posted the values back to an ASP.NET page, who stored them in session state on page load. Then I wanted to refresh the parent form to load the selected values into the form and close the child window. I wrote this magic javascript code inside the form tag of the aspx page after storing the values in session state..

window.opener.execScript("__doPostBack('someButton','')","JavaScript");
window.close();
It works..

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

Problem
When usign System.Data.OracleClient with Oracle9i client, i got the following message while connecting to the Oracle database from and ASP.NET application.

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.


Cause
Security permissions were not properly set when the Oracle 9i Release 2 client was installed on Windows with NTFS. The result of this is that content of the ORACLE_HOME directory is not visible to Authenticated Users on the machine; this again causes an error while the System.Data.OracleClient is communicating with the Oracle Connectivity software from an ASP.NET using Authenticated User privileges.

Solution
To fix the problem you have to give the Authenticated Users group privilege to the Oracle Home directory.

  • Log on to Windwos as a user with Administrator privileges.
  • Start Window Explorer and navigate to the ORACLE_HOME folder.
  • Choose properties on the ORACLE_HOME folder.
  • Click the “Security” tab of the “Properties” window.
  • Click on “Authenticated Users” item in the “Name” list.
  • Uncheck the “Read and Execute” box in the “Permissions” list under the “Allow” column.
  • Re-check the “Read and Execute” box under the “Allow” column
  • Click the “Advanced” button and in the “Permission Entries” verify that “Authenticated Users” are listed with permission = “Read & Execute”, and Apply To = “This folder, subfolders and files”. If not, edit that line and make sure that “Apply To” drop-down box is set to “This folder, subfolders and files”. This should already be set properly but it is important that you verify it.
  • Click the “Ok” button until you close out all of the security properties windows. The cursor may present the hour glass for a few seconds as it applies the permissions you just changed to all subfolders and files.
  • Reboot, to assure that the changes have taken effect.

Try your application again.

Team Development with Visual Studio .NET and Visual SourceSafe

I found this very usefull article on MSDN about Team Development with Visual Studio.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/tdlg_rm.asp

The article among other things explains how to use Visual Source Safe with ASP.NET project.

Bindable entity objects.

I just posted an article about how to build entity objects with designer support in Visual Studio.NET. Hope this article is usefull.