Friday, May 2, 2008

Mixing ASP Classic to ASP.NET

Note:
The purpose of this demo is to test whether ASP classic can mix up with ASP.NET. Most ASP classic programmers
wanted to view themselves on .NET on how to gradually migrate their codes to ASP.NET or to the extent of defying the rule of programming by allowing the two world co-exist.In computer world, everything is possible
from hardware to software. Programmers who command the game will always do some breaking of barriers to meet their needs or just for fun. In the end , they need a lot of work-around. As we always say, its a matter of coding and everything boils on CODES.

Still i strongly believe to follow standards and encourage/suggest if it is not really need to maintain old-codes, better yet MIGRATE YOUR CODES.

Because of Sir Voodz encouragement and JP curiousity smile, I've got to challenge again myself which I found it very
interesting and cool. This is the only way I refresh my mind and not burying my brain to office works. I miss teaching and I miss the everyday challenges we have in the school.
Happy Coding!!!

For the whole discussion
please visit our group forum here about this topic:

http://www.baguiocityonline.com/daforum/
viewtopic.php?pid=217616#p217616

;)

Thursday, April 10, 2008

Smartclient

Ever wanted to make a program that would let the user work and feel the desktop UI
while on the background it is accessing the webserver/application server . Having conflicts on Ajax and lot of scripts in browser.
Try the following:

ClickOnce .NET
---------------------
Requirements:
VS 2005/above with .NET 2.0
* cons - the client machine where you want the program to be run must have .NET 2.0 framework installed,
i think not really cons smile
Java Web Start
---------------------
Requirements:
Any editor you can do java programming big_smile
* not really cons - the client machine where you want the program to be run must have
Java Web Start engine installed. Installed Java Runtime (JRE 1.5 above)

PROS - Both would allow the developer to update the program on the server and let the client
update their program as well.
- Deployment is very easy as oppose to client-server.
- combines thin & thick client.
- Developer who is at ease of doing Win Forms or Java Forms/Swing and still wanted to have
the look & feel, and UI desktop operation as opposed to Browser (Thin) based client program
(of course if you are Ajax/RIA masters you can defy the barriers of the browser UI big_smile )

Happy coding ... smile

Tuesday, May 22, 2007

Creating Array of Class in C#

At last I was able to determine the problem I had the other nite and was able to solve it :). As I am moving all my previous codes in ASP.NET (in-line) to code-behind I face a lot of changes. But one good thing I really appreciate is I am really enjoying Bill Gates codes again huh!

I created my class as follows:

//Name: baseMenu.cs
using System;
using System.Collections.Generic;
using System.Text;

namespace AbstractLayer
{
public class baseMenu
{
private string mobjName;
private string mobjLink;
private int mobjNew;
public string objName
{
set
{
this.mobjName = value;
}
get
{
return this.mobjName;
}
}
public string objLink
{
set
{
this.mobjLink = value;
}
get
{
return this.mobjLink;
}
}
public int objNew
{
set
{
this.mobjNew = value;
}
get
{
return this.mobjNew;
}
}
}
}


Then I've got error when I was trying to use it and declare an array of class:

AbstractLayer.baseMenu[] objMenus = new AbstractLayer. baseMenu[2];

objMenus[0].objName = "Adhoc #1";

The compiler gives me the error like this "Object reference not set to the instance of the object " and because I would say I am not yet as good as I am in other languages but have the foundation of OOP, I tried to look on the rule of the object. Of course I need to consult uncle Google and lot of forums.
Out of 10 visits , I found out 6 is telling me that my array is not initialized that is why is having a null value which gives the error.

It really makes me freaky a bit for whole day work until this dawn I managed to realised and understood (huh!) that I needed to declare every instance of the array.

objMenus[0] = new AbstractLayer.baseMenu();
objMenus[0].objName = "Adhoc #1";

then it follows ...

objMenus[nth] = new AbstractLayer.baseMenu();
objMenus[nth] = "Adhoc nth";

I really enjoy coding on C# as I wonder on how I will be more on C++ .NET Native code ... as I have few Java projects hanging around :)

Monday, December 4, 2006

I Admit Its Too Late Than Never!

Well its long overdue ... I've been thinking of doing my own blog to whatever topic I wish to but now I decided to make it general and concise. I will be blogging about things I am doing, about my passion on technology and anything about infocomm.