June 2004 - Posts
General confusion most of ASP & VB Developers has...
Confusion!!
Here i have a choice to make C# or VB.NET .. i started with VB.NET and now .. i get people saying me i code in c# , iam in Asp.net and what could be the choice, i am from VB and ASP background i am with ease doing VB and now going for a strongly typed lang as c# is little burden, when Microsoft says that there is no difference using any of the languages then why are companies making their choices like C# or VB.NET .... the whole thing about .NET Framework is Multiple Language Single Platform.
Clarification!!
And.... what were those reasons, that tempt you to migrate to C# ?! :-)
Believe me ASP.NET + VB.NET is definitely a good choice for classic ASP + VB developers. Absolutely no issues, no frills attached :-)
and… yes, you may consider C# is [little] burden, this is also obvious. Do not deviate, Just go ahead.
Ok… now to the interesting part of the argument,
>> when Microsoft says that there is no difference using any of the languages then why are companies making thier choices like C# or VB.NET
>> the whole thing about .NET Framework is Multiple Language Single Platform
A correction: These are just delusions. Microsoft never stated that, there are no differences between languages and also have never stated that the IL Generated by a C#, VB, perl, python, cobol compiler would be one and the same… a subtle difference would definitely exist… If you have any pointers, do post back. The only standardizing factor here is the CLS. Microsoft just claims that .NET is language independent, to translate this into simple words, if your language is CLS compliant[standardized by ECMA], and the compiler is capable of producing .NET IL, your language would fit in the .NET World.
Yes, both C# and VB.NET share some close relations within the language semantics, but going forward, i.e. as Whidbey and further versions of .NET get released, these relations would slowly vanish, as each of the languages would try to gain its own superiority.
You would see the above statement is true, immedietly after the release of Whidbey. VB.NET is now packed with it’s own easy to code stuff e.g.: MY Namespace in VB.NET and C# is now packed with it’s own language supremacy like generics.
Anyway, don’t worry, Visual Basic is the pet language of Microsoft, and there are zillions of VB developers across the world, MS cannot leave these guys out :-)
Unless you develop some low level, system level stuff that might need to have close contacts with your Win32 World, there are not too many real time reasons that would push you c#. Just try to leverage on your existing skills and take advantage of the .NET World, that’s the smart move.
BTW a corporate would choose a language/platform based on many constraints like skill sets, training, new resources, budget, client, timelines, leveraging old skills and on and on and on…. That’s a tough job :-)
This kind of confusion is there with many of the ASP & VB Developers to choose for C#. Even though C# and VB.NET is more or like a similar with only difference of ; !!
Hurry up...Grab this opportunity quick..
Check out here
....
A strange problem in VB.NET code.
Sample code:
Dim x As Double
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
x = 4551.55 + 139978.05
MsgBox(x)
End Sub
From the above given sample code, while in break mode the value of 'x' is 144529.59999999998
but in the message box it gives 144529.6
But the same code works fine in VB6.0
Why is this happening? Any clues...
I just found the latest article in MS KB explaining about the new Hot-Fix for ASP.NET.
This hotfix rollup contains the following hotfixes. For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
816829 FIX: When i/o thread processes a slow request, completions on named pipes between Inetinfo.exe and Aspnet_wp.exe are blocked
817005 FIX: Severe performance issues when you bind session state to threads in ASPCompat mode
818537 FIX: Requests are incorrectly treated as non-postback requests
817779 FIX: Form inside of a user control generates a script error
For more information navigate to MS KB Article - 818058
In the programming world (as I am a programmer developer), new technologies are brought to our attention almost every day (more from Microsoft!). Every now and then, however, a new technology comes along that generates enough excitement in the development community that we spend our days and night mastering it. It takes a special technology to inspire this kind of commintment and for many in the development community, .NET is one of those technologies.
Community is a force in itself. Community just happens. By Community I mean here is a User Group. Almost from the moment .NET was introduced at the Professional Developer's Conference (PDC) 2000, .NET user group started popping up all over the world. Myself and my project team started working on .NET PDC version and developed many applications by then. Microsoft didn't go out and started these groups-they just happened. .NET is one of those rare technologies that has everyone motivated. These user group make their group members to share their .NET Experience with other peers. The success of the community replicated all across INDIA and around the world. Today there are user groups in almost every major cities from Chennai to Bangalore to Kolkatta to Cochin.
In the end, community does what community has always done: It captures your excitement and spreads it to others. Its a wonderful experience.
I want to mention here about activities I am involved in .Net User Groups, I am one of the Managers of .NET Bloomington User Group (we call it as .NET-BUG!!), We have started this group recently and working effectively on the improvement of the group. Currently we are colloborating with Central Illinois user group on presentations, seminars and discussions etc.
Also, I am an active member of the following .Net user groups:
.NET User Group Chennai
.NET User Group Bangalore
.NET User Group Hyderabad
.NET User Group Ahmedabad
.NET User Group Mumbai
.NET User Group Indore
I invite all my friends, .NET enthusiasts to join their local user group to feel the excitement and learn by experience.
I am sure that you will not like to miss this opportunity!
1. Apply for your own site to be listed on a Microsoft community Web site, or
2. Refer another site to be listed on a Microsoft community Web site
Check out the Community Partnership Program
Do not forget to read the Terms and Conditions first!.
I have just read about How Microsoft uses Reflection in July 2004 issue of MSDN Magazine very interesting.
Actually, this month surprisingly they introduced a change in the .NET Matters column. This amazing change (I feel this is really good and expected in future issues) brings stories from the trenches; developers in product groups within Microsoft describing how they use .NET technologies to get their jobs done and develop their products.
This month we got some true programming/development story from XBox Live Team and Core File Systems Team, very good!
After reading this, I have a suggesstion to the magazine editor that we can have such stories in alternate issues of the magazine. Because even the Q&A column is also a useful stuff and is very much needed for developers like me.
Hope someone is listening!!
Microsoft Service Pack 6 for Visual Basic 6.0, Visual C++ 6.0 with Visual SourceSafe 6.0d addresses known issues with Visual Basic 6.0, Visual C++ 6.0 and Visual Source Safe 6.0. This service pack does not contain fixes for Visual InterDev 6.0, Visual FoxPro 6.0, and Visual J++ 6.0, as the mainstream life-cycle for these products has ended. This SP replaces Service Pack 5 for developers using Visual Basic 6.0, Visual C++ 6.0, and Visual SourceSafe 6.0. Developer using Visual InterDev 6.0, Visual J++ 6.0, and Visual FoxPro 6.0 should continue using Service Pack 5.
More Details
The latest entry in Microsoft Knowledge Base article explains about a BUG: Performance counters may have inaccurate results when a user without permission runs the ASP.NET worker process. Some resolution is provided to resolve this problem.
Navigate to Microsoft Knowledge Base Article - 841554 for more details.
I was encountered with this problem during performance testing of our project. We found the same solution in one of newsgroups and resolved the problem. That's the power of newsgroups.
If you are using Microsoft IE 5 or later, you can use the behavior/HTML-Component "WebService" to access a Web service. The "WebService" behavior communicates with Web services over HTTP using Simple Object Access Protocol (SOAP).
To use the "WebService" behavior, you must attach it to an element using the STYLE attribute, as follows:
<DIV ID="GiveItAName"
STYLE="behavior:url(webservice.htc)"></DIV>
A complete example taken from the Microsoft Web site is as follows:
<html>
<head>
<script language="JavaScript">
var iCallID;
function init()
{
service.useService
("http://myserver.com/services/myservice.asmx?WSDL",
"servicename");
}
function onmyresult()
{
if ((event.result.error)&&(iCallID==event.result.id))
{
var xfaultcode = event.result.errorDetail.code;
var xfaultstring = event.result.errorDetail.string;
var xfaultsoap = event.result.errorDetail.raw;
// Add code to output error information here
alert("Error ");
}
else
{
service.innerHTML= "The method returned the result: "
+ event.result.value;
}
}
</script>
</HEAD>
<body onload="init();">
<BR>
Enter a Value <input type='text' id='param1'>
<BR>
<button onclick='iCallID = service.servicename.callService
("ProcedureName", param1.value);'>Call A Web Method</button>
<div id="service"
style="behavior:url(webservice.htc)"
onresult="onmyresult();">
</div>
</body>
</html>
More Posts
Next page »