hosting problem on webserver

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
.aspx code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NEW.aspx.cs" Inherits="runtimelinkbutton.NEW" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
<head runat="server">
    <title>Untitled Page</title>
    <form id="form1" runat="server">
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
.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)
        protected void Button1_Click(object sender, EventArgs e)

Open in new window

Who is Participating?
vavjeevaConnect With a Mentor Commented:
did you deploy your application properly on the server..

check this link for deployment options.. ..

use Publish Web site option to generate the compiled code and move that into server.. hope this helps u
HarryNSConnect With a Mentor Commented:
Go to the design view of the form check in button properties -> Events, this event is mapped or not.
psaini172000Author Commented:
yes i hav checked out. it is mapped
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

psaini172000Author Commented:
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.
CodeCruiserConnect With a Mentor Commented:
Did you upload the .aspx.cs file along with the .aspx files to the host server?
psaini172000Author Commented:
Yes ofcourse
both files are upload together.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.