Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 16th, 2007, 11:47 PM
Authorized User
 
Join Date: Aug 2005
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default starting problem

hello, i'm a beginner on asp.net, i've just installed vs2k5 and started learning asp.net
i wrote a small program 2 display my name, when i executed it on the browser, it iz displaying some error like XML page cannot be displayed using XSL style... i'm confused why it iz displaying such error, any aspx document i try 2 execute it displays the same error,
the program i wrote is
<%@ Page language="C#" %>
<%
Response.Write("Khurram");
%>

can n.e body help me???

 
Old July 17th, 2007, 12:29 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Default

man you are really new to this :)

ok first try this..
<%@ Page language="C#" %>
<script runat="server">
protected void Page_Load(Object Sender, EventAtgs e)
{
Response.Write("Khurram");
}
</script>

(I'm not 100% sure of the syntax)

anyway after that I suggest u try to use some code behind files (.cs files) and connect them to ur page

ur code should be like
<%@ Page language="C#" CodeFile="myPage.aspx.cs" Inherits="myPage"%>

and in this .cs file you can place your code.

contact me if you needed any help ;)


Nothing is impossible. The impossible only takes longer. "Digital Fortress, Dan Brown"
 
Old July 18th, 2007, 05:02 AM
Authorized User
 
Join Date: Aug 2005
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok thankx @zaghmout i'll do it, but question iz that whether my code wrong or right??? bcoz i have just copied the code of book, so does it mean that the code written in book book iz wrong???

 
Old July 18th, 2007, 09:26 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

kanoorani,

There is nothing technically wrong about your code, but obviously something isn't configured right on your system. the code you have should function perfectly well.

Have you looked at the HTML source in the browser? Can you provide more detail about the error? It sounds like there is something bigger going on that you need to resolve.

-Peter
 
Old July 18th, 2007, 10:50 PM
Authorized User
 
Join Date: Aug 2005
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello @planoie

i tried 2 resolve the error my self, and think i've resolved it, but now another error has occured :-(
now the error is something like

Server Error: Failed to access IIS metabase, you must have the read permission to IIS metabase, ......... or something like that

i dont know what the hell iz this, but i'm really very upset, plz help me






Similar Threads
Thread Thread Starter Forum Replies Last Post
Just starting... lozbritt9 C++ Programming 1 March 10th, 2006 12:54 PM
starting with SQL, chipset Pro VB Databases 1 September 12th, 2005 05:46 AM
Websphere App server starting problem chitrar J2EE 0 September 21st, 2004 11:27 PM
problem starting access stoneman Access 1 December 2nd, 2003 06:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.