Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

hosting problem on webserver

Posted on 2009-04-02
9
Medium Priority
?
282 Views
Last Modified: 2013-11-26
hi
my web application suppose tesst working fine on localstation. but when i upload it into webserver then it creates error.
u can see it at
http://www.supplydirectinc.com/tesst/tesst/new.aspx
Thanks
.aspx code
 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NEW.aspx.cs" Inherits="runtimelinkbutton.NEW" %>
 
<!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>
    
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    
    </div>
    </form>
</body>
</html>
 
 
 
 
.cs file code
 
 
using System;
using System.Collections;
using System.Configuration;
using System.Data;
 
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
 
 
namespace runtimelinkbutton
{
    public partial class NEW : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           //Response.Redirect("~/viewstate.aspx");
        }
 
        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/viewstate.aspx");
        }
 
       
    }
}

Open in new window

0
Comment
Question by:psaini172000
9 Comments
 
LVL 9

Accepted Solution

by:
vavjeeva earned 300 total points
ID: 24047877
did you deploy your application properly on the server..

check this link for deployment options..

http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx ..

use Publish Web site option to generate the compiled code and move that into server.. hope this helps u
0
 
LVL 6

Assisted Solution

by:HarryNS
HarryNS earned 300 total points
ID: 24049874
Go to the design view of the form check in button properties -> Events, this event is mapped or not.
0
 

Author Comment

by:psaini172000
ID: 24057456
hi
yes i hav checked out. it is mapped
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 

Author Comment

by:psaini172000
ID: 24067028
hi
pls have a look on my above question.
 i did not find any solution till the date.
pls arrange a solution.
ur help will be appricated.
Thanks
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 150 total points
ID: 24091657
Did you upload the .aspx.cs file along with the .aspx files to the host server?
0
 

Author Comment

by:psaini172000
ID: 24094178
hi
Yes ofcourse
both files are upload together.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question