Sunday, November 14, 2010

Migrating from PHP to ASP.NET- part4

Output
The typical way of outputting data in PHP is through the echo() language construct.
closest analogue to this in ASP.NET is the Response.Write() method, or the
'

Code Sample 3. Basic output in PHP




$hello = "hi how are you\n";

echo $hello;

?>

Code Sample 3. Basic output in Visual Basic .NET

However, these methods for sending output to the browser exist primarily for backwards compatibility with classic ASP. ASP.NET's new control-based, event-oriented model allows for data to be output to the browser by simply setting properties on server controls. This technique allows for clean separation of layout and code and can make maintenance easier, requiring significantly less code in complex situations than PHP.



The current date is:

This example declares a server-side Label control called TheDate, and during the page's Load event, sets the Text property of the label to the current date and time. The HTML output of this code is identical to the other two versions, except that the Label control renders itself as a span tag containing whatever was set as the label's text.

Conditional Processing

IF/ELSE

PHP has several conditional processing expressions such as for, while, switch, and foreach but the most common is the if/else expression. Visual Basic .NET has very similar constructs with similar syntax. Code Sample 4 provides a comparison of equivalent conditional logic in PHP and Visual Basic .NET.

Code Sample 4. Basic conditional logic in PHP

if ($a > $b) {

print "a is bigger than b";

} elseif ($a == $b) {

print "a is equal to b";

} else {

print "a is smaller than b";

}



Code Sample 4. Basic conditional logic in Visual Basic .NET

If a > b

Response.Write ("a is bigger than b")

ElseIf a = b Then

Response.Write ("a is equal to b")

Else

Response.Write ("a is smaller than b")

End If



Switch

Switch statements are common language constructs for most programming languages when you wish to test a single expression for multiple values. They are commonly used to replace if statements that contain multiple elseif/else blocks.

Code Sample 5 shows a comparison between PHP's switch statement and Visual Basic's Select Case statement.

Code Sample 5. A switch statement in PHP

switch ($i) {

case 0:

print "i equals 0";

break;

case 1:

print "i equals 1";

break;

case 2:

print "i equals 2";

break;

default:

print "i is not equal to 0, 1 or 2";

}



Code Sample 5. A Select Case statement in Visual Basic .NET

Select Case Number i

Case 0

description = "0"

Wesponse.Write ("i equals 0")

Case 1

description = "1"

Response.Write ("i equals 1")

Case 2

description = "2"

Response.Write ("i equals 2")

Case Else

description = " i is not equal to 0, 1 or 2"

Response.Write ("i is not equal to 0, 1 or 2 ")

End Select

Thursday, November 11, 2010

Application Developer

Job Code 45249


Job Title Application Developer

Country Egypt

Job Category System Analyst

Job Type Full Time

Description This position will be responsible for new application development, as well as maintaining and supporting existing applications. We are looking for individual contributors with strong sense of accountability, strong analytical & problem solving skills and effective communication skills. He/she must be quick learners and should be able to grasp new concepts quickly. The candidate will be responsible for performing VB6, VS.NET 2003, 2005 and ASP.NET development in both VB.NET (is Must) and C#, HTML java script Ajax technology (Preferred) and SQL Server (2000 and 2005) in the backend and CRYSTAL REPORT at least 9, SQL reporting service as reporting tools. At least 1 year experience -Ability to learn quickly Summary of technical Requirement- A Bachelor’s Degree in Computer Engineering, Computer Science, Information Technology or equivalent education in a related discipline is preferred

Qualifications Management skills and leadership The ability to analyze and solve problems The ability to communicate Computer skills The ability to make decisions Organizational skills

Gender Any

Experience 3 - 5 Years.

Salary (L.E.) Negotiable

Comments PLEASE SEND YOUR C.V with your photo & Type in the subject COD:-ERP01

Job Contact Person Tarek Milad

Job Contact Email hr@nationalpaints.com.eg

Job-Contact Information

Training Center need Oracle and Unix Instrucotr

Training Center is seeking Oracle and Unix Instructor with 3 years experience.


Send your CV on:

It.courses@yahoo.com



Oracle Instructors

Job Requirements Oracle 10g Developer instructor.




Job_Type Full Time & Part Time.

instructors Excellent command in English and computer.

Education Level University Degree.



Computer Skills Excellent.



Additional Requirements Oracle certified professional( OCP)preferred.



Forward detailed CV along with certificates by email to:

jobs_ctp@yahoo. com

Email subject : Oracle Developer Instructor.

Location:CTP Training Center.



C/C++ Developer Vacancy

Application Developer, programming C/C++ under Mac OS.


Experience: 2-3 years

Language: fluent English

Send your CV: skillsit@skills-it.com



Open Vacancies : Junior / Senior PHP Developers

If you are a self motivated, fast learner, team player interested in joining highly skilled and fast growing team, email your resume toJobs@gcssd.com quoting the job title and code in the subject.




Senior PHP Developer - CODE: (SPHPDEV)



4-6 years experience developing in a production PHP / MYSQL / Apache environment for Sr.

Ability to work in a team and independently

Knowledge and understanding of Rest and RSS Feeds Highly desirable

Extensive knowledge of scalable PHP development

Background in building AJAX UI components using JSON and PHP

Proficient in UI web standards, including CSS and XHTML and multi-browser compatibility

Extensive knowledge of ORM in PHP with CAKEPHP or Symphony or other similar models

Knowledge of PHP encryptions desired

Application and DB architecture using MySQL

Exposure to source management tools, including VSS and Subversion

Ability to test-drive development in a small team environment Offshore and Onshore

Capable of building XML-based web services

Experience with shell-scripting languages Preferred

Junior PHP Developers - CODE: (JPHPDEV)

Very Good grasp of Object Oriented concepts, techniques.

Experience in building Web applications using PHP/MySQL.

Knowledge of client side Web technologies including HTML, CSS, Javascript

Junior PHP Developers required @ EraCore.NET

Experience in web application development . Experience in PHP/MySQL Web Development (CSS, Ajav, Javascript, XHMTL). Strong PHP programming experience (OO programming).


Ability to work on Linux PCs (especially Ubuntu)

Please send your CV to

webmaster@eracore.net