Developers Archive for March, 2008

How to install and start apache service from command line

How to install and start apache service from command line Tuesday, March 25th, 2008

i.To install apache as a service from command line

Syntax:
1.start->run->type cmd->click ok
2.Type the root folder path of apache

c:/apache> cd bin
c:/apache>bin>httpd -k install -n “ServiceName”

ServiceName will be called ‘Apache’.

ii.To start,stop,restart,shutdown apache service from command line

Syntax:

c:/apache>bin>httpd -k start
c:/apache>bin>httpd -k restart
c:/apache>bin>httpd -k stop
c:/apache>bin>httpd -k shutdown

TABs Control in ASP.Net Ajax

TABs Control in ASP.Net Ajax Tuesday, March 25th, 2008

AJAX - Asynchronous Javascript and XML provides a wide range of reliability in ASP.Net 2.0 evolution.

The AJAX Controls are been provided to enable the developer to create pages will less postback and to increase the productivity.

The AJAX plays a vital role in the recent world and it happens to be the most needed thing in Web Development.

Here comes a TABContainer Control an AJAX Sample Control for ASP.Net 2.0.

DESCRIPTION

TabContainer is an ASP.NET AJAX Control which creates a set of Tabs that can be used to organize page content. A TabContainer is a host for a number of TabPanel controls.

Each TabPanel defines its HeaderText or HeaderTemplate as well as a ContentTemplate that defines its content. The most recent tab should remain selected after a postback, and the Enabled state of tabs should remain after a postback as well.

TABS CONTAINER PROPERTIES

The TABS CONTAINER is initilaized by the following code.

/>


TabContainer Properties

ActiveTabChanged (Event) - Fired on the server side when a tab is changed after a postback
OnClientActiveTabChanged - The name of a javascript function to attach to the client-side tabChanged event
CssClass - A css class override used to define a custom look and feel for the tabs. See the Tabs Theming section for more details.
ActiveTabIndex - The first tab to show
Height - sets the height of the body of the tabs (does not include the TabPanel headers)
Width - sets the width of the body of the tabs
ScrollBars - Whether to display scrollbars (None, Horizontal, Vertical, Both, Auto) in the body of the TabContainer

TabPanel Properties

Enabled - Whether to display the Tab for the TabPanel by default. This can be changed on the client.
OnClientClick - The name of a javascript function to attach to the client-side click event of the tab.
HeaderText - The text to display in the Tab
HeaderTemplate - A TemplateInstance.Single ITemplate to use to render the header
ContentTemplate - A TemplateInstance.Single ITemplate to use to render the body

Zebra PHP Framework - PHP MySQL Database Wrapper Class 1.1.0

Zebra PHP Framework - PHP MySQL Database Wrapper Class 1.1.0 Monday, March 24th, 2008

Please consider this a BETA version as no thorough tests have been done yet

What’s new in this version:

calling on a fetch method and providing a result resource from a query whos result was taken from cache would send the script in an infinite loop
improved the speed of dlookup() method by adding LIMIT to it - thanks to A.Leeming for suggesting this
added some new methods - close() - alias of mysql_close(), log_debug_info() - which will write debug information to a log file and seek() - alias of mysql_data_seek() wich works seamlessly with cached results (previously users haven’t had a method for iterating through results of a cached query)
the connect() method now returns the link identifier of the connection, which can be later used for closing the connection with the close() method
some documentation refinements (thanks to Vincent van Daal)
completely rewritten template file and stylesheet
a version with the comments stripped out is also available now to be used by those who need a smaller footprint for the classes they include. the script’s size is almost 4 times smaller than the original script. remember to rename the script to class.database.php if you want to use it

What’s this?

This PHP script is a MySQL database access wrapper. It provides a set of methods for interracting with a MySQL databases, from within PHP, easily and securely while providing a fantastic debugger [read more]


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.