Check out this MS knowledgebase article:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q322336
Category Archives: Tips
Basics needed for Getting Started with ASP.Net
You need:
The DotNet Framework (available here)
An operating system that can handle it (Win2kPro or Server w/SP2, WinXPPro or Win .Net Server)
Then, any text editor(Notepad/ASP Express, etc) can get you started with development
Re-Usable Class with Server/Response/Request Objects
In order to use these objects in a VB class, you can access them this way:
HttpContext.Current.Response
HttpContext.Current.Request
HttpContext.Current.Server
Error – "Type '(SQL or OleDb)Connection' is not defined."
When you get this error, generally, you haven’t imported the correct Namespace in your page.
For SQL Server, it’s:
<%@ Import Namespace=”System.Data.SQLClient” %>
For MS Access – it’s :
<%@ Import Namespace=”System.Data.OleDb” %>
All your code can be totally correct, but without importing the namespace, it won’t work.
No line breaks in returned data
You’ll need to replace those line break characters for HTML-recognizable characters..
For instance – - –
let’s say you have assigned the data from that field to the variable named sData….
An enter key would equate to a vbcrlf (carriage return/line feed) – - SO – since a browser can’t recognize this, but it can recognize “<br>” – - you would do this:
sData=sData.Replace(vbcrlf, “<br>”)
then – label1.text=sData
There are many different ways to do this, but this is the general way it’s done
ODBC in ASP.Net
You can download the ODBC.Net driver from here:
http://www.microsoft.com/downloads/details.aspx?FamilyId=6CCD8427-1017-4F33-A062-D165078E32B1&displaylang=en
There’s a link to download the ODBC.Net driver
Compilation Error – (Control) is not a member of (Page)
If you get this error – you probably either have a server control, or a Script Tag that needs the ‘Runat=”Server”‘ designation added.ng weight by dancing videopersonal trainers costherb natural quit smokingdeviance in the eyes of functionalistscheated boyfriends vengeance photosoccupations use morse codebiblio com partners and affiliated companiesmensa genius iq testabilities of a psychicpast life regressions louisianacollin wayne dexter date of deathkidney to lung cancer
How to open a new web page with a button click
You can use Javascript to do so.
e.g.
<input type=”Button” Value=”Open New” onclick=”Javascript:window.open(‘webform1.aspx’);”>
QuickStart Tutorials/Class Browser Locally
You may not know this, but when you install the framework, the QuickStart Tutorials, along with the great Class Browser Application, are on your computer and can be accessed through your localhost.
Navigate through your file system to:
C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\StartSamples.htm
or, for v1.1 –
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\startsamples.htm
Assuming you already have either MSDE or SQL Server installed on your computer, just click the link at
Step 2: Set up the QuickStarts
Then – anytime you want to access the QuickStarts – just go to:
http://localhost/quickstart/default.aspx
Check DataReader to see if it's Empty
To be able to check and see if there are no records in