473,406 Members | 2,208 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,406 software developers and data experts.

no code in webform using vs.net, but in webform using notepad

If I create a webform in notepad (save it with an .aspx extension), I can
see the VB.Net code along with the ASP.Net code in one file.

If I create an Asp.Net web application and add a web form using VS.Net, only
the Asp.Net code is behind the web form.

Where is the VB.Net code stored? And why is it stored differently than the
first way I mentioned?

Thanks.


Nov 18 '05 #1
1 1307
Hi Timmso,

VS.Net utilizes the concept of "code behind", where the code/logic to run a
webpage is stored in a class that inherits from the Page class. Your ASPX
page then inherits from this codebehind class.

The code for your file is stored in an aspx.vb file, in the same folder.
Try Project>Show All Files. The .vb files are then compiled into a DLL, and
do not need to be uploaded to the production machine.

IMO, "codebehind" is an ok idea in concept, but is doesn't work well in
practice in most scenarios -- a change to the .vb file requires rebuilding
the application. I've found it best to build middle-tier objects in vs.net,
and use dreamweaver or webmatrix to develop the application. Neither use
codebehind.

Alex Papadimoulis

"timmso" <ti**************@Yahoo.com> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
If I create a webform in notepad (save it with an .aspx extension), I can
see the VB.Net code along with the ASP.Net code in one file.

If I create an Asp.Net web application and add a web form using VS.Net, only the Asp.Net code is behind the web form.

Where is the VB.Net code stored? And why is it stored differently than the
first way I mentioned?

Thanks.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ken Adams | last post by:
Basically I want to know how you could open a txt file in notepad through c# code. I don't want to read in the data or anything like that I just want to open the file just as it would have been if...
6
by: Jiang Zhao | last post by:
Would you please tell me that some C# WebForm application (VS.NET 2002) can run/call windows executable file such as notepad.exe (use Process.Start)? if so how to do it. Jiang
4
by: mg | last post by:
How can I run an .exe (located at the server) from within a WebForm? For example, run "word.exe mydoc.txt"
2
by: John A Grandy | last post by:
for the code-behind a WebForm, it's easy to use ASP.NET session state -- just refer to the built-in Session object ... but how to write code elsewhere that utilizes this same object ? within a...
3
by: Tim Zych | last post by:
If I declare a procedure in a webform as Public and attach it to a button in the same webform, it runs fine. If I change it to Private Sub and try to click it i get the error: ...
6
by: cpnet | last post by:
I've authored a custom web component (a non-ui component kinda like a DataSet) and so far it's working. When my web component is added to the web form in the designer from the toolbox, the...
2
by: Husam | last post by:
Hi EveryBody: I have the following code which just helpfull with Notepad: Code: <DllImport("user32", CharSet:=CharSet.Auto, SetLastError:=True)> _ Public Shared Function FindWindow(ByVal...
19
by: alice | last post by:
I'm just learning php, and one of the first things in the book I'm reading has me make this file- <html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <p> <?php
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have start web form and when the user clicks a button (server.transfer) they are directed to the second webform. I was wondering if there is a way to create an instance of the first webform...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.