can Somebody send me the Simple program that just displays the title=My First Project & sonia on the Screen.
I m tryimg the program but not getting it because i m new to the ASP.net.....I do not know whether to write the code in default.aspx or default.aspx.vb.

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>My Firts Project</title>
</head>
<body>
<% response.write("Sonia")%>
</body>
</html>

Error is coming-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.


--------------------------------------------------------------------------------

A name was started with an invalid character. Error processing resource 'http://localhost/FirstWebsite/default.aspx'. Line...

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^

I save the Under under C:\Inetpub\wwwroot & mine projrct name is FirstWebsite.

I run it as -
http://localhost/FirstWebsite/default.aspx.

PLZ PLZ HELP ME OUT I WILL BE VERY GREATFULL TO U.

hi
sonia first check whether you have given the correct value in inherits attribute in the default.aspx design page in page tag.
the name must be mach with the name of the code begind class name.
to display the text in the title dynamically there are two ways. you can use document.title='some thing' with javascript on body onload event or you can write in vb code like page.title="something"
all the best

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.