Click here to Skip to main content
15,915,094 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Retaining the values Pin
aaraaayen13-Sep-06 20:55
aaraaayen13-Sep-06 20:55 
GeneralRe: Retaining the values Pin
kiran kumar[Intelligroup]13-Sep-06 21:07
kiran kumar[Intelligroup]13-Sep-06 21:07 
GeneralRe: Retaining the values Pin
aaraaayen13-Sep-06 21:28
aaraaayen13-Sep-06 21:28 
GeneralRe: Retaining the values Pin
kiran kumar[Intelligroup]13-Sep-06 22:33
kiran kumar[Intelligroup]13-Sep-06 22:33 
Questiondifference between session and application varialbles Pin
mpk197913-Sep-06 19:35
mpk197913-Sep-06 19:35 
AnswerRe: difference between session and application varialbles Pin
_AK_13-Sep-06 20:41
_AK_13-Sep-06 20:41 
QuestionCodeWar (C# vs Vb) Pin
Nikhil Bandekar13-Sep-06 19:31
Nikhil Bandekar13-Sep-06 19:31 
AnswerRe: CodeWar (C# vs Vb) Pin
_AK_13-Sep-06 19:52
_AK_13-Sep-06 19:52 
Hi,
Actually it depends up on your taste. Because using both you can develop good applications in asp.net. Although I use c# only but it is again my own preference. Here are some points which has been given by other person(in code project some time back) on why to use C#: Smile | :)

This isn't a slam on VB.NET, but rather, some positives about using C# instead of other .NET languages:

* It's at the forefront of research: most of the language innovation at MS Research is being poured into C#, trickling down to other languages: generics, language integrated query, lambda expressions, expression trees, continuations, extension methods, heck, the whole .NET FCL was written in C#. As it usually goes, other languages get these features trickled down to them, but C# is at the fore.

* The primary language: being the primary .NET language has its perks, such as tools that only work with C#, a majority of books on .NET are C#-based, demos, examples, even tools like the recently released XNA Game Studio are C#-only.

* C#, Java, C++, hey, even Javascript languages transition to one another far more easily than the verbose VB.NET. This means more devs are likely to understand your code, simply because of the fact they are all based on C-like syntax.

* No supporting libraries: VB.NET uses the Microsoft.VisualBasic library and other supporting libraries that bring a lot of ugly cruft over from VB6. No such thing in C#, and is another reason why some .NET tools won't support VB.NET. Again, look at the recent XNA Studio; you can't write VB.NET code on the XBox360 because those extra VB dependencies haven't been ported to the XBox360 platform.

* A fresh start. Unlike VB.NET, we don't have ugly, non-conforming libraries brought over from the old world of VB6, and all the bad practices that originated there.

* C# can do some things VB.NET can't easily do. Need to load a private font? Need fast access to a bitmap's pixels? Need to interop with pointers? All those things can be done natively and easily in C#, but require rather bloated work-arounds in VB.NET.


A private font? Say you've got a great font for your client app. But the font may not be installed on the end-user's system. You *could* embed the font as an app resource, but then you'd have to copy the font into %windir%\fonts directory, and that requires administrator priveleges, not to mention lots of disk access.

What you can instead do is embed the font as a resource in your app, then load it and use it in your app without having to install the font on the target system. This is accomplished through System.Drawing.Text.PrivateFontCollection object. The reason it's difficult to do in VB.NET is becausing adding a font to the private font collection object from an in-memory font requires an IntPtr to the memory location of the font. C# can do this no problem since we can use pointers, VB.NET has trouble doing this; having to resort to using the interop wrappers in the System.Runtime.InteropServices namespace.


Hope you will get some idea with this. Smile | :)



Best Regards,
Apurva Kaushal

Questiondifference between session and application variabels Pin
mpk197913-Sep-06 19:17
mpk197913-Sep-06 19:17 
AnswerRe: difference between session and application variabels Pin
_AK_13-Sep-06 20:38
_AK_13-Sep-06 20:38 
QuestionIs this possible Pin
erManish13-Sep-06 19:13
erManish13-Sep-06 19:13 
AnswerRe: Is this possible Pin
_AK_13-Sep-06 20:40
_AK_13-Sep-06 20:40 
QuestionCrosspage Posting Pin
Tiger45613-Sep-06 18:51
Tiger45613-Sep-06 18:51 
AnswerRe: Crosspage Posting Pin
Sathesh Sakthivel13-Sep-06 18:59
Sathesh Sakthivel13-Sep-06 18:59 
GeneralRe: Crosspage Posting Pin
Tiger45613-Sep-06 22:19
Tiger45613-Sep-06 22:19 
QuestionExpress Edition Pin
cisco210313-Sep-06 17:54
cisco210313-Sep-06 17:54 
AnswerRe: Express Edition Pin
Sathesh Sakthivel13-Sep-06 18:48
Sathesh Sakthivel13-Sep-06 18:48 
GeneralRe: Express Edition Pin
cisco210314-Sep-06 3:48
cisco210314-Sep-06 3:48 
QuestionHow to Pop up window base on Already Pop up Dialog? Pin
pubududilena13-Sep-06 17:27
pubududilena13-Sep-06 17:27 
AnswerRe: How to Pop up window base on Already Pop up Dialog? Pin
mbbisht13-Sep-06 18:26
mbbisht13-Sep-06 18:26 
QuestionCreating new Web on SharePoint server Pin
serious-sam13-Sep-06 16:04
serious-sam13-Sep-06 16:04 
Questionasp.net dropdownlist errors Pin
bdc60413-Sep-06 14:33
bdc60413-Sep-06 14:33 
AnswerRe: asp.net dropdownlist errors Pin
kiran kumar[Intelligroup]13-Sep-06 18:38
kiran kumar[Intelligroup]13-Sep-06 18:38 
QuestionXML Parsing Error: no element found Pin
FinnGrimw13-Sep-06 13:13
FinnGrimw13-Sep-06 13:13 
AnswerRe: XML Parsing Error: no element found Pin
kiran kumar[Intelligroup]13-Sep-06 18:46
kiran kumar[Intelligroup]13-Sep-06 18:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.