| | |
VB.NET Error
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 18
Reputation:
Solved Threads: 0
Using notepad, I created VB.NET code and saved it as a file named Jack.aspx in C:\ASP.NET (the whole path to the file is C:\ASP.NET\Jack.aspx). Then I launched IE, then clicked on File, Open, Browse, C:\ASP.NET\Jack.aspx and I got the following error:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. Reference to undeclared namespace prefix: 'asp'. Error processing resource 'file:///C:/ASP.NET/Jack.aspx'. Line 10, Positi...
<asp:Label id="lblTest" runat="server" />My Code is shown here as well:<html><script language="VB" runat="server"> Private Sub Page_load() lblTest.Text = "Hello, the Page.Load event occured." End Sub</script><body><form id="Form" runat="server"> <asp:Label id="lblTest" runat="server" /></form></body></html> What is the problem?
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. Reference to undeclared namespace prefix: 'asp'. Error processing resource 'file:///C:/ASP.NET/Jack.aspx'. Line 10, Positi...
<asp:Label id="lblTest" runat="server" />My Code is shown here as well:<html><script language="VB" runat="server"> Private Sub Page_load() lblTest.Text = "Hello, the Page.Load event occured." End Sub</script><body><form id="Form" runat="server"> <asp:Label id="lblTest" runat="server" /></form></body></html> What is the problem?
You can't just open/run an aspx page like that -- it has to go through IIS and the .NET engine.
Did you install .NET Framewrok and set up IIS on your machine?
Did you install .NET Framewrok and set up IIS on your machine?
Google is your friend. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit http://www.kaelisspace.com/
Bored? Visit http://www.kaelisspace.com/
![]() |
Similar Threads
- Updated : Simple ASP.Net Login Page (ASP.NET)
- GPMC not installing: .NET framework required? (Windows NT / 2000 / XP)
- ASP.Net Error with C# Coding (C#)
- ASP.Net Error (ASP.NET)
- Error opening a project (ASP.NET)
- Really Bad ERROR(dat i don noe) (Windows NT / 2000 / XP)
- New user with Bridge.DLL error (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: Windows script host and filesystemobject - pls help
- Next Thread: VB.NET Code
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





