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

You are currently viewing the ASP.NET 3.5 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 February 17th, 2010, 02:04 AM
Registered User
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Post Issues while Running Aspx Page along with Asp Pages ?

Hi,

I am trying to add aspx pages to my website which already has Asp Pages. I made a virtual directory and pointed to existing website where I have placed new Aspx files along with previous Asp files.

Now when I try to execute the file. It runs good in first attempt, however, when I click a couple of times of "click me" button browser keeps on processing and does displays my message again.

Code in Default.aspx.vb
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
Label1.Text = "Heello how are you?"

Code in Default.aspx

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebApplication1._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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label> <br /><br />
<asp:Button ID="Button1" runat="server" Text="Click Me" />

</form>
</body>
</html>

I initially ran this code in Visual Studio 2008 and it executed well. Later on i transferred my files along with existing Asp Page?

Any Idea why such behavior ?

Version configured in IIS for ASp.Net is 2.0.50727

Visual Studio 2008

To clarify further, I would like to know, if I am proceeding in right direction to excute my Aspx pages along with Asp? Secondly, why does my browser keeps on processing if I click the button second or third time ? I am not getting exceptions or errors.. And have no idea of reading logs for the program..

Please help...

Last edited by replymanisha; February 18th, 2010 at 01:08 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i have .ASP & .ASPX pages in same .net Appli? vijaykumartaduri Classic ASP Basics 3 December 14th, 2006 09:42 AM
running Classic ASP pages on Unix Server crmpicco Classic ASP Basics 10 December 4th, 2006 07:55 AM
Getting problem while running an aspx page manoj.mohanty BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 May 3rd, 2006 07:29 AM
how can I use classic asp in aspx pages dcongy ASP.NET 1.0 and 1.1 Basics 4 December 1st, 2004 11:53 AM
Shall i use ASP page and ASPX pages in in .net prj bvrao VS.NET 2002/2003 4 January 5th, 2004 04:39 AM





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