473,320 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CODE SIMILARITY BETWEEN VB.NET & ASP.NET

Hello evrybody,

I want to know how much similar are the Vb.Net code and ASp.Net code. Can anyone please provide mem the answer with some code examples??


Thanx
Jul 30 '07 #1
4 1184
TRScheel
638 Expert 512MB
Fundamentally they are identical. What they have access to is what is different. Also, the base security levels of each.
Jul 30 '07 #2
can i get the justification by some code samples please.........
Jul 31 '07 #3
TRScheel
638 Expert 512MB
can i get the justification by some code samples please.........
A web application has access to a session object, a request object, a response object, cookies, the list goes on.

A desktop application will have broader access to the user's settings and files. It will probably have access to change files within the users profile folder, perhaps some registry keys, and even be able to get the user's name. Also, the desktop application will be more robust in the fact that it can take immediate action on something the user does, where as a web application will be forced to wait for a postback before being able to do any changes.
Jul 31 '07 #4
'Addition in VB.Net:

Dim myNumber1 As Integer
Dim myNumber2 As Integer
Dim myNumber3 As Integer
myNumber1 = 1
myNumber2 = 17
myNumber3 = myNumber1 + myNumber2

'Addition in VB.Net running inside IIS (ASP.Net):

Dim myNumber1 As Integer
Dim myNumber2 As Integer
Dim myNumber3 As Integer
myNumber1 = 1
myNumber2 = 17
myNumber3 = myNumber1 + myNumber2

ASP.Net indicates that you're using .Net inside of IIS, which is microsoft's web server. General code functions can be identical, and if you have a well-designed application you can reuse a compiled dll for both web and windows forms functionality. The syntax will be identical since they are the same language.

It is also possible to run c#.Net in ASP.Net, or COBOL.Net in ASP.Net, and they will have different syntax than above. ASP.Net is a set of exposed objects that allow you to do web related things. Have you ever used ADO.Net? ADO.Net is a set of objects that can be used to access data, and can be called from c# or VB.Net or whatever other flavor of .Net you like. Conceptually ADO.Net and ASP.Net are similar.

ASP.Net development does have some large differences compared to windows forms development. The WYSIWYG editor in ASP.Net is a far cry from the Designer in windows forms, and there are some underlying concepts of web applications that a developer needs to know before making the switch from windows forms to web forms. Probably the most important two are inherent statelessness of web forms and the lack of control you have over the UI (Malicious users can see and do all sorts of things to the data you send them in the web world because HTML is readable. A windows forms UI will not allow users to spontaneously add new inputs or fill in values on disabled items, or see all information sent to the client like web will).
Jul 31 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Bosconian | last post by:
I'm looking for a method to compare two strings and grade them for similarity. My idea is to strip out common words and punctuation and create a checksum of each remaining string. I would then...
5
by: Achim Domma | last post by:
Hi, I have a list of lets say 100-1000 strings and want to know which one is most similar to a reference string. Does somebody know such a library for Python? I don't need complicated scientific...
5
by: Charles Law | last post by:
Hi folks Not really a .NET question, but I always think this is a good place to ask. Does anyone have a favourite algorithm for determining the similarity of, or difference between two...
12
by: Vijay Kumar R Zanvar | last post by:
Hi, I invite reviews for the following code: #include <stdio.h> #include <string.h> #include <stdlib.h> int main ( void )
0
by: Anibal Acosta | last post by:
Somebody know an algorithm for determine the similarity between two string for example: string 1: "Hello what is your name?, where are you from?" string 2: "Hello man, where are you from?" ...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
0
by: himoundary | last post by:
hi all i am using microsoft speech sdk (sapi 5.1). i have the following requirements: 1) i need to compare current input sound (through mic) with recorded sound file (say .wav). based of...
2
by: Ralf Goertz | last post by:
Hi, is there some c++ library that helps me assess the similarity of two strings? In particular, I want to match strings that describe names of institutions. For instance, one string could be a...
7
by: IanWright | last post by:
I'm trying to come up with an effective assignment algorithm to allocate nodes to a nearest outlet, where each node should be have a time slot checked against the already allocated nodes for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.