Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Problem


Message #1 by "Arti Mahendra Sharma" <artimams@h...> on Sat, 9 Nov 2002 12:24:15 +0530
Hi All

Finally I started with asp.net. But there is a problem. Please help - I am stuck up!!! :(

I wrote the following code in notepad and saved it in the webroot. :
<%@ Page Language="VB"%>
<html>
<head>
<title>PCQ #1.2: Hello, <Name></title>
</head>
<body>
<form id="frmWelcome" runat="server">
Enter your name here please: 
<asp:textbox id="txtName" runat="server" />
<asp:button id="btnSubmit" text="Send" runat="server" onclick="GetName"/>
<p><asp:label id="lblMsg" runat="server"/></p>
</form>
</body>
</html>

<script language="vb" runat="server">
Sub GetName(sender as Object, e as EventArgs)
lblMsg.Text = "Hello, " & txtName.Text & "! Welcome to ASP.NET." 
end Sub
</script>


But when I run it at the browser I get only the following output :
Enter your name here please: 

thats all :( 
what is the problem???

Thanks in advance for ANY help

Arti
  

Message #2 by "Hovik Melkomian" <melvik@b...> on Sat, 9 Nov 2002 15:03:49 +0330
Dear Friend:
There is no problem in ur scripts.
check ur .NET Frameworks & IIS.

Hovik.
----- Original Message -----
From: "Arti Mahendra Sharma" <artimams@h...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Saturday, November 09, 2002 10:24 AM
Subject: [aspx_beginners] Problem


Hi All

Finally I started with asp.net. But there is a problem. Please help - I am stuck
up!!! :(

I wrote the following code in notepad and saved it in the webroot. :
<%@ Page Language="VB"%>
<html>
<head>
<title>PCQ #1.2: Hello, <Name></title>
</head>
<body>
<form id="frmWelcome" runat="server">
Enter your name here please:
<asp:textbox id="txtName" runat="server" />
<asp:button id="btnSubmit" text="Send" runat="server" onclick="GetName"/>
<p><asp:label id="lblMsg" runat="server"/></p>
</form>
</body>
</html>

<script language="vb" runat="server">
Sub GetName(sender as Object, e as EventArgs)
lblMsg.Text = "Hello, " & txtName.Text & "! Welcome to ASP.NET."
end Sub
</script>


But when I run it at the browser I get only the following output :
Enter your name here please:

thats all :(
what is the problem???

Thanks in advance for ANY help

Arti






Message #3 by "Jeff Dupont" <jdupont@j...> on Mon, 11 Nov 2002 13:28:51 -0500
Hello, " & txtName.Text & "! Welcome to ASP.NET."  <===== change the &
to +


-----Original Message-----
From: Hovik Melkomian [mailto:melvik@b...] 
Sent: Saturday, November 09, 2002 6:34 AM
To: aspx_beginners
Subject: [aspx_beginners] Re: Problem

Dear Friend:
There is no problem in ur scripts.
check ur .NET Frameworks & IIS.

Hovik.
----- Original Message -----
From: "Arti Mahendra Sharma" <artimams@h...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: Saturday, November 09, 2002 10:24 AM
Subject: [aspx_beginners] Problem


Hi All

Finally I started with asp.net. But there is a problem. Please help - I
am stuck
up!!! :(

I wrote the following code in notepad and saved it in the webroot. :
<%@ Page Language="VB"%>
<html>
<head>
<title>PCQ #1.2: Hello, <Name></title>
</head>
<body>
<form id="frmWelcome" runat="server">
Enter your name here please:
<asp:textbox id="txtName" runat="server" />
<asp:button id="btnSubmit" text="Send" runat="server"
onclick="GetName"/>
<p><asp:label id="lblMsg" runat="server"/></p>
</form>
</body>
</html>

<script language="vb" runat="server">
Sub GetName(sender as Object, e as EventArgs)
lblMsg.Text = "Hello, " & txtName.Text & "! Welcome to ASP.NET."
end Sub
</script>


But when I run it at the browser I get only the following output :
Enter your name here please:

thats all :(
what is the problem???

Thanks in advance for ANY help

Arti









  Return to Index