|
Question 1: Which language is given more preference c# or vb .net ?
Question 2: Which is faster c# or vb .net ?
I have on the net but i didn't get any reasonable reply for this.
With Regards,
Sakthi
|
|
|
|
|
|
Thanks Venkatesh.
With Regards,
Sakthi
|
|
|
|
|
concerning web applications C# is the best choice.it is powerfull language just like java.when it comes to windows applications,i think better option is VB.
|
|
|
|
|
Thanks accessred.
With Regards,
Sakthi
|
|
|
|
|
accessred wrote: when it comes to windows applications,i think better option is VB.
Any specific reason for that?
Apurva Kaushal
|
|
|
|
|
see,C# is epecially designed for web projects.even though updation is on progress,VB is not proper for web deployment. more over XML compatibility is important in web applications.thus we choose C#.
"I am burning...the only thing rest in me is you..."
|
|
|
|
|
C# is the Best Language.
C# is fast and good when we go for Web Based Application.
VB is good when we go for the Windows Based Application.
Regards,
Satips.
|
|
|
|
|
Thanks Satips.
With Regards,
Sakthi
|
|
|
|
|
depends upon the project C# and VB can be used.
C# is better in web based applications(OOPS concept like java)
Vb is better in windows based applications.
you can use these two at any where in applications and both can be replaced
by each other's code.
there are some disadvantages and advantages with C# and vb.
you must know before using them
all the best.
Sathesh Pandian
|
|
|
|
|
sathesh_pandian wrote: some disadvantages and advantages with C# and vb.
Let me Know it in Detail?
With Regards,
Sakthi
|
|
|
|
|
One of the most obvious differences is that C# has XML documentation and VB
does not (I think this is going to be rectified in the next version -but
dont count on it)
Essentially it could be argued (and is true to an extent) that if you can
program in one then you can program in the other.
I used to program on and off in VB6 but went for C# because it is cleaner
and a true OO language.
If you have the time then learn C# -you will always be able to use VB for
any quirks it may have but quite honestly I doubt you will want to or need
to.
VB.net programmers will probably champion that language (quite
understandibly) but I have yet to find one good reason to learn it over
C# -except perhaps that there are slightly more jobs for VB.net than C# (Im
in INDIA) at the moment -but this is changing quickly.
Whatever you decide will not be a mistake, since learning the framework and
real OO is perhaps the biggest obstacle you face.
Regards,
Satips.
|
|
|
|
|
Thanks Satips.
But i am in USA. Herealso there are lot of Openings.
With Regards,
Sakthi
|
|
|
|
|
|
Thanks Sathesh.
With Regards,
Sakthi
|
|
|
|
|
|
Which language is better depends entirely on where, when, why and how you use them. Neither of your questions are specific enough to show any differences:
Sakthi Sat wrote: Question 1: Which language is given more preference c# or vb .net ?
That depends entirely on who you ask.
Sakthi Sat wrote: Question 2: Which is faster c# or vb .net ?
They both compile to IL code, and that code becomes identical for equivalent program code, so there is no speed difference in the compiled code. They both use the .NET framework, so there is no speed difference in library calls.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks Guffa.
With Regards,
Sakthi
|
|
|
|
|
|
That's like asking which religion is better. The correct answer depends on who you ask. The best language is the one you are most proficient in...in my opinion.
|
|
|
|
|
Hi guys,
I've been working on a simple user control that creates a table, filled with images from piecing together bits of HTML.
Using Response.Write() to display every line, this takes about 3-4 seconds to execute. The obvious problem with this is that the table appears at the top of the page, not at the position of the user control. Using a label and buffering all the HTML to a string takes around 2-3 times as long! No extra code or anything just something along the lines of...
<br />
string buffer = "";<br />
<br />
buffer+=...;<br />
buffer+=...;<br />
<br />
Label1.Text = buffer;<br />
What is causing this massive performance hit when making such minor changes and how can I get around it? Thanks.
FinnG -
|
|
|
|
|
Constantly appending to a string is very inefficient, and may be what is slowing it down. If you still want to use that approach, you may want to look into using a System.Text.StringBuilder, which will allow you to do that, but more efficiently.
HTH
|
|
|
|
|
When I have Forms authentication for my c# web application, is it possible to run an exe by impersonating the thread with logged in windows user.
At present, when I try to run an exe from the web application, it says "Access is denied".
Is it possible to run the exe without changing the web.config to windows authentication or changing the IIS Settings.
TIA
Ananth
|
|
|
|
|
Make sure EXE is having proper rights i mean a.exe should have all rights for ASPNET account....Try this but i am not 100% sure. We did something very similar to your req in our last year project. Thanks!!
|
|
|
|
|
Hi Amit,
The problem is solved. Actually I was able to execute the code without impersonating any user. I had written my process starting code as
1 using (process = Process.Start(psi))<br />
2 {<br />
3
4 }
Application was erring out at line 1. So I thought starting the process needs some permission to the user. Then by chance, I tried commented line 1 and started the process outside without using "using". It worked.
I do not understand why it fails when the process is started in "using".
If you know why using creates problem, do reply.
Thanks for your suggestion!
Ananth
|
|
|
|